Page 1 of 1

Update status of switch?

Posted: Monday 14 December 2015 17:50
by burton666
I can control my wemo leds from wall-switch and from domoticz and it updates the status of the lamp correctly. But I also can control the wemo led from my phone and then ofcourse the status of the light gets wrong and it might show on but the light is actually off.

I can use my raspberry pi to poll the wemo-link for statuses but how can I change the state of the switch icon without actually toggeling it?

Re: Update status of switch?

Posted: Monday 14 December 2015 18:36
by gizmocuz
I think you should use the json api with the 'udevice' command

Re: Update status of switch?

Posted: Wednesday 16 December 2015 12:35
by shkaff
Is there a way to make Domoticz perform such the poll requests? Which component or module of Domoticz should be used for?

I understand that I may use cron daemon at Linux level, it could be done from RPi 2 where Domoticz is run. However I guess it would be more logical and elegant to have it done from Domoticz