Page 1 of 1

help please with Code Device

Posted: 21 Feb 2017 18:05
by deg026
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

Re: help please with Code Device

Posted: 24 Feb 2017 23:50
by tomshuette
use a logic modul ,
set trigger condition multilevel with Temp sensor,
set action our virtual binary switch

good luck