Python example using the Philips Hue API and the Philips Hue motion sensor. The motion sensor this is using has temperature information in celcius available in the sensor's state information.
The Philips Hue API has a list of sensors that are supported. The Philips Hue motion sensor includes the ZLLTemperature sensor. You can find details about the sensor here. The information that we want to retrieve from the sensor state is in the temperature property.
| Property | Data Type | Description |
|---|---|---|
| temperature | int32 | Current temperature in 0.01 degrees Celsius. (3000 is 30.00 degree) Bridge does not verify the range of the value. |
| Short Option | Long Option | Description |
|---|---|---|
-b |
--bridge |
Bridge, or hub, IP address |
-u |
--username |
Username created for interacting with the Hue Bridge |
-i |
--interval |
Interval in seconds to check motion sensor temperature value |
-s |
--sensors |
Comma separated list of Sensor IDs to monitor |