Page 1 of 1

CodeDevice

Posted: 29 Aug 2016 11:14
by 10der
hi!

why my sensorBinary cannot be updated outside?

Code: Select all

 if (command === "on" && (vDevType === "toggleButton" || vDevType === "switchBinary")) 

Code: Select all

http://127.0.0.1:8083/ZAutomation/api/v1/devices/Code_Device_sensorBinary_34/command/on
nothing todo.

or m.b. wrong idea here?
I have external sensor. I do not want poll this sensor from ZWay controller, my sensor can call ZWay via ZAutomation/api/v1 and set right status.
my question is - how I can create such virtual sensorBinary

Thanks!

Re: CodeDevice

Posted: 31 Aug 2016 02:38
by gsaw
use dummy device instead

Re: CodeDevice

Posted: 31 Aug 2016 10:56
by 10der
gsaw wrote:use dummy device instead
yeah, dummy device can't be r/o (without switcher)