Get status in Python

Moderator: leecollings

Post Reply
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Get status in Python

Post 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
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Get status in Python

Post 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 .....
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest