The Hub object is composed of methods that allow you to interact with the settings and values of a hub. This object is available to apps and drivers via the Hub object getLocation().getHub()
method or simply using the property location.hub
.
id
Long: An id for the hub. (Usually the value is 1 but not guaranteed)
name
String: The name of the hub as a String.
data
Map: A Map of data for the hub
zigbeeId
String: The Zigbee EUI
zigbeeEui
String: The Zigbee EUI
hardwareID
String: The hardware ID of the hub
type
String: The type of hub, always returns "PHYSICAL"
localIP
String: The local ip address of the hub
localSrvPortTCP
String: The local tcp port of the hub (always returns 39501)
firmwareVersionString
String: The current firmware version that the hub is running.
uptime
BigInteger: The uptime of the hub in seconds.
updateSystemTime
Update the date/time of the Hub.
boolean updateSystemTime(Date date)
date
The date/time to update to.boolean
- true
if update time is successful, false
otherwise.