Available on: Flexs Q5 Pro

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

NameTypeRequiredDefaultDescription
id | label number | string yes Index, UID or Label (string)

Returns

object Return result

Example

let indoorTemp = tempsensors(0).inst;