I have connected a ESP8266-01 to PCF8574 in order to control four relays and using two input for getting the status from my GaragePort. All is working, but the status of the two inputs is being sent to my Domoticz server every 30 sec via rules:
n GaragePortStatusClose#Switch=0.00 do
SendToHTTP 192.168.6.44,8080,/json.htm?type=command¶m=switchlight&idx=74&switchcmd=On
endon
on GaragePortStatusClose#Switch=1.00 do
SendToHTTP 192.168.6.44,8080,/json.htm?type=command¶m=switchlight&idx=74&switchcmd=Off
endon
on GaragePortStatusOpen#Switch=0.00 do
SendToHTTP 192.168.6.44,8080,/json.htm?type=command¶m=switchlight&idx=73&switchcmd=On
endon
on GaragePortStatusOpen#Switch=1.00 do
SendToHTTP 192.168.6.44,8080,/json.htm?type=command¶m=switchlight&idx=73&switchcmd=Off
endon
Note that active is 0.00 on and off is 1.00
I'll like to have a system, where the changes is sent when there is a change in input, and not every 30 sec. It's messing up my log on Domoticz.
Can someone give a hint on how to get the correct rules to solve my issue?
I'm using ESPMega v. mega-20181001
Big thanks in advance

Lars