Difference between revisions of "Driver Object"

From Hubitat Documentation
Jump to: navigation, search
(Created page with "== <code>installed</code> == This method is called when the device is first created. '''Signature:''' void installed() == <code>updated</code> == This method is called wh...")
 
m (Cschwer moved page Driver to Driver Object)
(No difference)

Revision as of 23:13, 11 October 2018

installed

This method is called when the device is first created.

Signature:

void installed()

updated

This method is called when the preferences of a device are updated.

Signature:

void updated()

Additional to be documented

Map getState()
Zwave getZwave()
Zigbee getZigbee()
Object getParent()
void updateDataValue(String name, String value)
String getDataValue(String name)
String getDeviceDataByName(String name)
HubAction response(String cmd)
HubAction response(hubitat.zwave.Command cmd)
HubMultiAction response(List cmds)
Short getZwaveHubNodeId()
void sendEvent(Map properties)
List<Event> eventsSince(Date startDate, Map options = null)
void telnetConnect(Map options, String ip, int port, String username, String password)
void telnetConnect(String ip, int port, String username, String password)
void telnetClose()
Map createEvent(Map options)
List<String> delayBetween(List<String> cmds, Long delay)
List<String> delayBetween(List<String> cmds)
ChildDeviceWrapper addChildDevice(String typeName, String deviceNetworkId, Map properties = [:])
ChildDeviceWrapper addChildDevice(String namespace, String typeName, String deviceNetworkId, Map properties = [:])
List<ChildDeviceWrapper> getChildDevices()
ChildDeviceWrapper getChildDevice(String deviceNetworkId)
void deleteChildDevice(String deviceNetworkId)