(Custom?) Switch gate command with status indicator
Posted: Wednesday 14 November 2018 17:31
Hi all,
I want to open & close my entry portal with a Swicth on Domoticz web inerface, i've tested many differents things, without good result:
Currently My entry portal is drived with a Raspberry:
Open/close : I send an http request to RsPi (it's still working)
Detect portal position : I can send a specific http request to the RsPi and RsPi server return JSON status with numeric variable corresponding to the portal position: (1=open/2=close/3=moving/stopped/4=position error) (this working well)
Where I am today:
I'm using a (ON/OFF) Domoticz Switch to Open /close the portal .
I've a Lua script polling freqyently the RsPi for the JSON status, so i've, in the (Domoticz log file) the numeric value of the portal position
What i attempted (without success):
Have the Pushbutton command, with a picture representing the portal position depending the numeric JSON value (scirpt Lua), and have a text indicating the portal position.
See below what i expect :
Many thx
I want to open & close my entry portal with a Swicth on Domoticz web inerface, i've tested many differents things, without good result:
Currently My entry portal is drived with a Raspberry:
Open/close : I send an http request to RsPi (it's still working)
Detect portal position : I can send a specific http request to the RsPi and RsPi server return JSON status with numeric variable corresponding to the portal position: (1=open/2=close/3=moving/stopped/4=position error) (this working well)
Where I am today:
I'm using a (ON/OFF) Domoticz Switch to Open /close the portal .
I've a Lua script polling freqyently the RsPi for the JSON status, so i've, in the (Domoticz log file) the numeric value of the portal position
What i attempted (without success):
Have the Pushbutton command, with a picture representing the portal position depending the numeric JSON value (scirpt Lua), and have a text indicating the portal position.
See below what i expect :
Many thx