I followed this link https://espeasy.readthedocs.io/en/lates ... /P029.html to add a relay on my ESP8266 (except the switch part).
I also tried on ESP32. So here is the screenshot of my devices tab (in attachment). I have a dummy switch in Domoticz with the idx 280. When I use it, I can see the values in ESP EASY (state and output) change from 1 to 0 (or 0 to 1).
So I think my MQTT link works. I also checked with MQTT explorer I have the messages IN and OUT with ON and OFF state.
Actually I have no rules.
Unfortunately, the physical relay switched 1 time and nothing else. It seems it took the value ON and refuses to toggle to OFF

When I disconnect the data wire from the relay, it toggles to OFF. When I connect the data wire again, it toggles to ON.


And I don't see where I made a mistake.
If anyone has an idea to help me... I am stucked with that for 2 days...

Thanks in advance !