public class MyISYInsteonClient extends ISYInsteonClient
UD_BATCH_MODE_CHANGED_ACTION, UD_BATTERY_DEVICE_WRITE_MODE_CHANGED_ACTION, UD_CLIENT_HEART_BEAT_EVENT, UD_DEVICE_SPECIFIC_EVENT, UD_DISCOVERING_NODES_ACTION, UD_DISCOVERING_NODES_COMPLETE_ACTION, UD_FOLDER_ADDED_ACTION, UD_FOLDER_REMOVED_ACTION, UD_FOLDER_RENAMED_ACTION, UD_GROUP_ADDED_ACTION, UD_GROUP_REMOVED_ACTION, UD_GROUP_RENAMED_ACTION, UD_INTERNET_ACCESS_DISABLED_ACTION, UD_INTERNET_ACCESS_ENABLED_ACTION, UD_INTERNET_ACCESS_EVENT, UD_INTERNET_ACCESS_FAILED_ACTION, UD_LINKER_EVENT, UD_LINKER_EVENT_CLEAR, UD_LINKER_EVENT_DEVICE_STATUS, UD_NETWORK_RENAMED_ACTION, UD_NODE_ADDED_ACTION, UD_NODE_CHANGE_LINK_ACTION, UD_NODE_CLEAR_ERROR_ACTION, UD_NODE_DEVICE_ID_CHANGED, UD_NODE_DEVICE_PROPERTY_CHANGED, UD_NODE_ENABLED_ACTION, UD_NODE_HAS_PENDING_DEVICE_WRITES_ACTION, UD_NODE_IN_ERROR_ACTION, UD_NODE_MOVED_ACTION, UD_NODE_PARENT_CHANGED_ACTION, UD_NODE_POWER_INFO_CHANGED_ACTION, UD_NODE_REMOVED_ACTION, UD_NODE_REMOVED_FROM_GROUP_ACTION, UD_NODE_RENAMED_ACTION, UD_NODE_REVISED_ACTION, UD_NODE_WRITING_TO_DEVICE_ACTION, UD_NODES_UPDATED_EVENT, UD_NOTIFICATION_SETTINGS_UPDATED_ACTION, UD_NTP_COMM_FAILED_ACTION, UD_NTP_SETTINGS_UPDATED_ACTION, UD_PROGRESS_EVENT_UPDATE, UD_PROGRESS_UPDATED_EVENT, UD_SYS_CONFIG_UPDATED_EVENT, UD_SYSTEM_BUSY_EVENT, UD_SYSTEM_IS_BUSY_ACTION, UD_SYSTEM_IS_IDLE_ACTION, UD_SYSTEM_IS_IN_SAFE_MODE_ACTION, UD_SYSTEM_IS_NOT_BUSY_ACTION, UD_TIME_CHANGED_ACTION, UD_TIME_CONFIG_CHANGED_ACTION, UD_TRIGGER_EVENT_GET_STATUS, UD_TRIGGER_EVENT_INFO_STRING, UD_TRIGGER_EVENT_KEY_CHANGED, UD_TRIGGER_EVENT_LEARN_IR, UD_TRIGGER_EVENT_SCHEDULE, UD_TRIGGER_EVENT_STATUS, UD_TRIGGER_EVENT_VAR_INIT, UD_TRIGGER_EVENT_VAR_STATUS, UD_TRIGGER_UPDATED_EVENT
Constructor and Description |
---|
MyISYInsteonClient()
Constructor
Registers this class as IModelChangeListener
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Implement any cleanup Routines necessary here
|
void |
onDeviceOffLine()
This method is invoked with the library does not receive announcements from ISY and considers it offline
|
void |
onDeviceOnLine()
This method is invoked when a currently known ISY (UDProxyDevice) is back on line
|
void |
onDeviceSpecific(java.lang.String arg1,
java.lang.String node,
XMLElement arg2)
Notifies the client of any device specific changes.
|
void |
onDiscoveringNodes()
This method is invoked when ISY goes into Linking mode
|
void |
onFolderRemoved(java.lang.String folderAddress)
This method is called when a Folder is removed
|
void |
onFolderRenamed(UDFolder folder)
This method is called when a Folder is renamed
|
void |
onGroupRemoved(java.lang.String groupAddress)
This method is invoked when a group/scene is removed
|
void |
onGroupRenamed(UDGroup group)
This method is invoked when a group/scene is renamed
|
void |
onInternetAccessDisabled()
This method is invoked when internet access is disabled on ISY
|
void |
onInternetAccessEnabled(java.lang.String url)
This method is invoked with internet access is enabled on ISY
|
void |
onLinkerEvent(UDProxyDevice arg0,
java.lang.String arg1,
XMLElement arg2)
Notifies the client of a change during device linking
|
void |
onModelChanged(UDControl control,
java.lang.Object value,
UDNode node)
This method is invoked everytime there's a change in the state of a control for
a node (Insteon Device)
|
void |
onNetworkRenamed(java.lang.String newName)
This method is invoked when the network is renamed.
|
void |
onNewDeviceAnnounced(UDProxyDevice device)
This method is called when a new ISY is announced or discovered
on the network.
|
void |
onNewFolder(UDFolder folder)
This method is called when a new folder is created
|
void |
onNewGroup(UDGroup newGroup)
This method is called when a new group/scene has been created
|
void |
onNewNode(UDNode newNode)
This method is called when a new node (Insteon Device) has been added
|
void |
onNodeDeviceIdChanged(UDProxyDevice device,
UDNode node)
Notifies the client that the address of the device represented by this
node has changed.
|
void |
onNodeDevicePropertiesRefreshed(UDProxyDevice device,
UDNode node)
Notifies the client that all the devices properties for a node were refreshed
|
void |
onNodeDevicePropertiesRefreshedComplete(UDProxyDevice proxyDevice)
Called after the properties for one or more nodes has been refreshed.
|
void |
onNodeDevicePropertyChanged(UDProxyDevice device,
UDNode node,
com.universaldevices.common.properties.UDProperty<?> property)
Notifies the client that a node property has changed
|
void |
onNodeDiscoveryStopped()
This method is invoked when ISY is no longer in Linking mode
|
void |
onNodeEnabled(UDNode node,
boolean b)
This method is called with a node is enabled or disabled
|
void |
onNodeError(UDNode node)
This method is called when an Insteon Device does not correctly communicate with ISY
|
void |
onNodeErrorCleared(UDProxyDevice arg0,
UDNode arg1)
Notifies the client that a node (device) in the system no longer has
an error (communications or otherwise)
|
void |
onNodeHasPendingDeviceWrites(UDNode node,
boolean hasPending)
This method is called when the node has pending device writes
|
void |
onNodeIsWritingToDevice(UDNode node,
boolean isWriting)
This method is called when the device associated with the node
is being programmed (written to)
|
void |
onNodeMovedAsMaster(UDNode node,
UDGroup group)
This method is invoked when a node (Insteon Device) has been moved to a scene as controller/master
|
void |
onNodeMovedAsSlave(UDNode node,
UDGroup group)
This method is invoked when a node (Insteon Device) has been moved to a scene as responder/slave
|
void |
onNodeParentChanged(UDNode node,
UDNode newParent)
This method is called when the parent of a node has changed
|
void |
onNodePowerInfoChanged(UDNode node)
This method is called when the power information has changed for a node
|
void |
onNodeRemoved(java.lang.String nodeAddress)
This method is called when a node (Insteon Device) has been permanently removed from ISY
|
void |
onNodeRemovedFromGroup(UDNode node,
UDGroup group)
This method is called when a node (Insteon Device) is removed from a scene
|
void |
onNodeRenamed(UDNode node)
This method is invoked when a node (Insteon Device) is renamed
|
void |
onNodeRevised(UDProxyDevice device,
UDNode node)
Notifies the client of the revision of a node (device) to the system.
|
void |
onNodeToGroupRoleChanged(UDNode node,
UDGroup group,
char new_role)
This method is called when a node's role changes in the given group (master/slave role)
|
void |
onProgress(java.lang.String arg1,
XMLElement arg2)
Notifies the client of the progress of actions currently being taken.
|
void |
onSystemConfigChanged(java.lang.String event,
XMLElement eventInfo)
Notifies the client that system configurations have change
|
void |
onSystemStatus(boolean busy)
This method is invoked when the state of the system (whether or not busy) is changed
|
void |
onTriggerStatus(java.lang.String arg1,
XMLElement arg2)
This method is invoked when trigger status changes
|
addNewScene, brightenDevice, brightenScene, dimDevice, dimScene, getDevicesSceneAttributesForAController, getDevicesSceneAttributesForAScene, isLinking, moveNodeToSceneAsMaster, moveNodeToSceneAsSlave, setDeviceOnLevel, setDeviceOnLevelForAScene, setDeviceOnLevelForASceneController, setDeviceRampRate, setDeviceRampRateForAScene, setDeviceRampRateForASceneController, setMasterLinkingMode, setSlaveLinkingMode, start, startDeviceManualChangeDown, startDeviceManualChangeUp, startLinking, startSceneManualChangeDown, startSceneManualChangeUp, stopDeviceManualChange, stopLinking, stopSceneManualChange, turnDeviceFastOff, turnDeviceFastOn, turnDeviceOff, turnDeviceOn, turnSceneFastOff, turnSceneFastOn, turnSceneOff, turnSceneOn
addFolder, addGroup, addNode, cancelNodesDiscovery, changeGroupState, changeNodeState, disableInternetAccess, discoverNodes, enableInternetAccess, getCurrValue, getLog, getNumPendingNotifications, getSystemDateTime, getSystemOptions, getSystemStatus, isISYReady, moveNode, onDeviceOffLine, onDeviceOnLine, onDeviceSpecific, onDiscoveringNodes, onFolderRemoved, onFolderRenamed, onGroupRemoved, onGroupRenamed, onInternetAccessUpdated, onModelChanged, onNetworkRenamed, onNewFolder, onNewGroup, onNewNode, onNodeDiscoveryStopped, onNodeEnabled, onNodeError, onNodeHasPendingDeviceWrites, onNodeIsWritingToDevice, onNodeMoved, onNodeParentChanged, onNodePowerInfoChanged, onNodeRemoved, onNodeRemovedFromGroup, onNodeRenamed, onNodeToGroupRoleChanged, onProgress, onSystemConfigChanged, onSystemStatus, onTriggerStatus, queryGroup, queryNode, reboot, removeeFolder, removeFromGroup, removeGroup, removeNode, renameFolder, renameGroup, renameNetwork, renameNode, resetAllNotifications, resetLog, saveSystemDateTime, saveSystemOptions, setParent, start, updateUserCredentials
addUDErrorListener, addUDModelChangeListener, authenticate, getControls, getDevice, getGroups, getNodes, isStarted, onNewDevice, removeUDErrorListener, removeUDModelChangeListener, setStarted, start, stop
public MyISYInsteonClient()
IModelChangeListener
public void onNewDeviceAnnounced(UDProxyDevice device)
onNewDeviceAnnounced
in class UDClient
UDClient.getDevice()
,
UDClient.onNewDevice(UDProxyDevice)
public void onDiscoveringNodes()
onDiscoveringNodes
in class ISYClient
public void onNodeDiscoveryStopped()
onNodeDiscoveryStopped
in class ISYClient
public void onGroupRemoved(java.lang.String groupAddress)
onGroupRemoved
in class ISYClient
groupAddress
- - the group's addresspublic void onGroupRenamed(UDGroup group)
onGroupRenamed
in class ISYClient
group
- - the UDGroup
UDGroup
public void onModelChanged(UDControl control, java.lang.Object value, UDNode node)
onModelChanged
in class ISYClient
control
- - the UDControl
's namevalue
- - the UDAction
value for the UDControl
node
- - the UDNode
to which the change appliesUDNode
,
UDControl
,
UDAction
public void onNetworkRenamed(java.lang.String newName)
onNetworkRenamed
in class ISYClient
newName
- - the new name for the networkpublic void onNewGroup(UDGroup newGroup)
onNewGroup
in class ISYClient
newGroup
- - the new UDGroup
UDGroup
public void onNewNode(UDNode newNode)
public void onNodeError(UDNode node)
onNodeError
in class ISYClient
node
- - the UDNode
in errorUDNode
public void onNodeEnabled(UDNode node, boolean b)
onNodeEnabled
in class ISYClient
node
- b
- UDProxyDevice
,
UDNode
public void onNodeRemoved(java.lang.String nodeAddress)
onNodeRemoved
in class ISYClient
nodeAddress
- - the address of the UDNode
removedUDNode
public void onNodeRemovedFromGroup(UDNode node, UDGroup group)
onNodeRemovedFromGroup
in class ISYClient
node
- - the UDNode
removedgroup
- - the UDGroup
from which the node was removedUDNode
,
UDGroup
public void onNodeToGroupRoleChanged(UDNode node, UDGroup group, char new_role)
onNodeToGroupRoleChanged
in class ISYClient
node
- - the UDNode
whose role changedgroup
- - the UDGroup
whose role to the node changednew_role
- - the new role which the node plays in the group; currently this value
is restricted to Constants.NODE_IS_MASTER
i.e. this node is either
a master/controller of this group or a slave/responderpublic void onNodeRenamed(UDNode node)
onNodeRenamed
in class ISYClient
node
- - the UDNode
which was renamedUDNode
public void onNodeMovedAsMaster(UDNode node, UDGroup group)
onNodeMovedAsMaster
in class ISYClient
node
- - the UDNode
which has just movedgroup
- - the UDGroup
to which the node moved toUDNode
,
UDGroup
public void onNodeMovedAsSlave(UDNode node, UDGroup group)
onNodeMovedAsSlave
in class ISYClient
node
- - the UDNode
which has just movedgroup
- - the UDGroup
to which the node moved toUDNode
,
UDGroup
public void onDeviceOffLine()
onDeviceOffLine
in class ISYClient
UDProxyDevice
public void onDeviceOnLine()
onDeviceOnLine
in class ISYClient
UDProxyDevice
public void onSystemStatus(boolean busy)
onSystemStatus
in class ISYClient
busy
- - whether or not ISY is busypublic void onInternetAccessDisabled()
onInternetAccessDisabled
in class ISYClient
public void onInternetAccessEnabled(java.lang.String url)
onInternetAccessEnabled
in class ISYClient
url
- - the external fully qualified url through which ISY can be accessedpublic void onTriggerStatus(java.lang.String arg1, XMLElement arg2)
onTriggerStatus
in class ISYClient
arg1
- - the statusarg2
- - extra informationpublic void onDeviceSpecific(java.lang.String arg1, java.lang.String node, XMLElement arg2)
ISYClient
onDeviceSpecific
in class ISYClient
arg1
- The action to perform based on this eventarg2
- Detailed status informationpublic void onProgress(java.lang.String arg1, XMLElement arg2)
ISYClient
onProgress
in class ISYClient
arg1
- The action to perform based on this eventarg2
- Detailed status informationpublic void cleanUp()
public void onSystemConfigChanged(java.lang.String event, XMLElement eventInfo)
ISYClient
onSystemConfigChanged
in class ISYClient
event
- - can be any of eventInfo
- - the extra event information XMLElement
IModelChangeListener.UD_TIME_CHANGED_ACTION
IModelChangeListener.UD_TIME_CONFIG_CHANGED_ACTION
IModelChangeListener.UD_NTP_SETTINGS_UPDATED_ACTION
IModelChangeListener.UD_NOTIFICATION_SETTINGS_UPDATED_ACTION
IModelChangeListener.UD_NTP_COMM_FAILED_ACTION
public void onFolderRemoved(java.lang.String folderAddress)
ISYClient
onFolderRemoved
in class ISYClient
folderAddress
- - the address for the folderUDFolder
public void onFolderRenamed(UDFolder folder)
ISYClient
onFolderRenamed
in class ISYClient
folder
- - the UDFolder
which has been renamedUDFolder
public void onNewFolder(UDFolder folder)
ISYClient
onNewFolder
in class ISYClient
folder
- - the UDFolder
which has been renamedUDFolder
public void onNodeHasPendingDeviceWrites(UDNode node, boolean hasPending)
ISYClient
onNodeHasPendingDeviceWrites
in class ISYClient
node
- - the UDNode
which has pending device writeshasPending
- - whether or not there's pending device writesUDNode
public void onNodeIsWritingToDevice(UDNode node, boolean isWriting)
ISYClient
onNodeIsWritingToDevice
in class ISYClient
node
- - the UDNode
which might be programmedisWriting
- - whether or not the node is being programmedUDNode
public void onNodeParentChanged(UDNode node, UDNode newParent)
ISYClient
onNodeParentChanged
in class ISYClient
node
- - the UDNode
for which the parent has changednewParent
- - the UDNode
which is the parent for the nodeUDNode
public void onNodePowerInfoChanged(UDNode node)
ISYClient
onNodePowerInfoChanged
in class ISYClient
node
- - the UDNode
which might be programmedUDNode
public void onNodeDeviceIdChanged(UDProxyDevice device, UDNode node)
IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
public void onNodeDevicePropertiesRefreshed(UDProxyDevice device, UDNode node)
IModelChangeListener
node
- The UDNode
that changedpublic void onNodeDevicePropertiesRefreshedComplete(UDProxyDevice proxyDevice)
IModelChangeListener
public void onNodeDevicePropertyChanged(UDProxyDevice device, UDNode node, com.universaldevices.common.properties.UDProperty<?> property)
IModelChangeListener
node
- The UDNode
that changedproperty
- The property that changed.public void onNodeRevised(UDProxyDevice device, UDNode node)
IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the new UDNode
which was revisedpublic void onNodeErrorCleared(UDProxyDevice arg0, UDNode arg1)
IModelChangeListener
arg0
- - the UDProxyDevice
originating this eventarg1
- - the UDNode
that was in errorpublic void onLinkerEvent(UDProxyDevice arg0, java.lang.String arg1, XMLElement arg2)
IModelChangeListener
arg0
- The UDProxyDevice
originating this eventarg1
- The action to perform based on this eventarg2
- Detailed status information