Difference between revisions of "Driver Object"

From Hubitat Documentation
Jump to: navigation, search
(Replaced content with " <big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big> <big> This document is available at: http://docs2.hubitat.com/en/devel...")
(Tag: Replaced)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==<code>installed</code>==
 
  
This method is called when the device is first created.
+
<big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big>
  
'''Signature:'''
+
<big>
void installed()
+
This document is available at: http://docs2.hubitat.com/en/developer/driver/driver-object
 
+
</big>
==<code>updated</code>==
 
 
 
This method is called when the preferences of a device are updated.
 
 
 
'''Signature:'''
 
void updated()
 
 
 
==<code>sendHubCommand</code>==
 
 
 
Use this method to send a HubAction immediately.
 
 
 
'''Signature:'''
 
void sendHubCommand(HubAction hubAction)
 
 
 
'''Parameters:'''
 
 
 
: hubAction - The HubAction object to send.
 
 
 
'''Returns:'''
 
 
 
none
 
 
 
 
 
==<code>Additional to be documented</code>==
 
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)
 

Latest revision as of 04:05, 25 September 2022

We're moving! Please visit http://docs2.hubitat.com for the latest documentation.

This document is available at: http://docs2.hubitat.com/en/developer/driver/driver-object