tempsensors()
tempsensors(id) → object
Read the current value of an attached one wire temp sensor.
Sensors can be addressed by the index # (relating to the order defined on the sensors configuration page) or the UID (unique sensor id on sensor label)
Result Format: {"lastUpdated":3,"avg":14.900000,"inst":15.125000}
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| id | label | number | string | yes | — | Index, UID or Label (string) |
Returns
object
Return result
Example
let indoorTemp = tempsensors(0).inst;