SOLVED Domoticz not responding on Publish action
Posted: 13 Aug 2019, 21:28
I have a ESP8266-01 (512Kb) running espeasy build 148. In rules I send de state of the switch in the following way.
("schak3" is the relais and "toets" is a touch sensor connected to the esp8266.)
on schak3#switch do
if [schak3#switch]=1
is closed
gpio,1,0
else
gpio,1,1
endif
endon
on toets#switch do
if [toets#switch]=1
gpio,0,0
Publish /schak3/GPIO,0,0
else
gpio,0,1
Publish /schak3/GPIO,0,1
endif
endonn
Via Domoticz I can contol the switch. With the touch sensor connected to Gpio3 I can do that too.
I expect Domoticz to update the state of the switch after I touched the sensor but that does not happen. (actually it did happen for a short period with long delays of more than 3 seconds)
Any ideas what is causing the problem?
("schak3" is the relais and "toets" is a touch sensor connected to the esp8266.)
on schak3#switch do
if [schak3#switch]=1
is closed
gpio,1,0
else
gpio,1,1
endif
endon
on toets#switch do
if [toets#switch]=1
gpio,0,0
Publish /schak3/GPIO,0,0
else
gpio,0,1
Publish /schak3/GPIO,0,1
endif
endonn
Via Domoticz I can contol the switch. With the touch sensor connected to Gpio3 I can do that too.
I expect Domoticz to update the state of the switch after I touched the sensor but that does not happen. (actually it did happen for a short period with long delays of more than 3 seconds)
Any ideas what is causing the problem?