I've a switch input connected to dz with MQTT Helper like this I've found that the behavior is different when used from dz than from the hardware switch
From the switch, On then Off
Code: Select all
272215: EVENT: Button4#State=0
272232: ACT : gpio,15,=!0
272235: GPIO : port#15: set to 1
272318: EVENT: Relay4#State=1
274514: EVENT: Button4#State=1
274532: ACT : gpio,15,=!1
274535: GPIO : port#15: set to 0
274622: EVENT: Relay4#State=0
274647: ACT : LogEntry,'*** Relay4=0'
274649: *** Relay4=0
Code: Select all
285203: inputswitchstate is deprecatedinputSwitchState,7,1.00
285207: GPIO : port#15: set to 1
285229: EVENT: Relay4#State=0
285247: ACT : LogEntry,'*** Relay4=0'
285248: *** Relay4=0
285307: EVENT: Pump#Output=1
285409: EVENT: Relay4#State=1
288303: inputswitchstate is deprecatedinputSwitchState,7,0.00
288307: GPIO : port#15: set to 0
288326: EVENT: Relay4#State=1
288409: EVENT: Pump#Output=0
288507: EVENT: Relay4#State=0
288525: ACT : LogEntry,'*** Relay4=0'
288526: *** Relay4=0
Which cause issue in my code because the code do the reverse to what I need!
ESP_Easy_mega_20210223_normal_ESP8285_1M
It is a "normal" behavior ?
If yes how could I do to trigger the good event?