help please with Code Device
Posted: 21 Feb 2017 18:05
can somebody help me
i need to create virtual device
that will be triggered 'on' when value from one of mine TEMPERATURE SENSOR < X
i was thinking to use for this solution Code Device module
i have created binarySwitch type, but i dont understand how i can access to TEMPERATURE SENSOR value
can somebody help me what JS code i can use in "Code to get value" field
i need to create virtual device
that will be triggered 'on' when value from one of mine TEMPERATURE SENSOR < X
i was thinking to use for this solution Code Device module
i have created binarySwitch type, but i dont understand how i can access to TEMPERATURE SENSOR value
can somebody help me what JS code i can use in "Code to get value" field