I think I have a problem with the understanding of the 'Code to get value' functionality.
What I want to to with the code device:
-state on: My smartphone is connected to my wireless lan.
-state off: My smartphone isn't connected
So I created a new code device and added to 'Code to get value' an Python script. At the moment, the script contains only:
Code: Select all
sys.stdout.write('on')
The z-ware logfile shows an new entry:
Code: Select all
[2017-04-15 13:34:50.819] [I] [core] Notification: device-info (device-OnOff): {"dev":"test return","l":[0,"on"]}
Can anybody help me?
Thanks and best regards
Tobias