This is probably very simple for those who know, unfortunately I'm not one of those
But how do I get the status for a switch in Domoticz, from a Python script.
Regds
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
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 .....
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus plus series of 'satellites' for dedicated interfacing, monitoring & control.