Page 1 of 1

Get status in Python

Posted: Saturday 02 April 2016 23:29
by Xroads
This is probably very simple for those who know, unfortunately I'm not one of those :oops:
But how do I get the status for a switch in Domoticz, from a Python script.
Regds

Re: Get status in Python

Posted: Sunday 03 April 2016 14:49
by Toulon7559
One possible way may be to apply the sValue reported for a switch.
See tab Settings, and then further downselect Options > Events > Show Current States
Next job is then to extract in a Python-script the selected sValue .....