ESPEasy firmware

Thanks, i will check that out later.

Do you have any idea for now?

I created a ‘Switch input’ in ESPEasy on the same GPIO as my relay (GPIO5). I can see in the ESPEasy interface that it turns to ‘1’ and ‘0’ when i turn the relay on and off. I can also see the status being sent to MQTT now mqtt@mqtt-vm:~$ mosquitto_sub -h 192.168.4.14 -p 1883 -v -t '/WemosD1/relais/state' /WemosD1/relais/state 0 /WemosD1/relais/state 1 /WemosD1/relais/state 0 /WemosD1/relais/state 1 /WemosD1/relais/state 0 /WemosD1/relais/state 1

I can turn the relay on with HASS, but directly after that, the toggle switch in HASS jumps back to the ‘off’ position. However, the relay itself stays on. I don’t know what to try next now… This is the HASS code i use now:

`- platform: mqtt
name: “Wemos D1 MQTT”
command_topic: “/WemosD1/gpio/5”
state_topic: “/WemosD1/relais/state”
payload_on: “1.0”
payload_off: “0.0”
qos: 1
retain: true

I also tried with payload_on: "1" payload_off: "0"
but that didn’t make a difference.

I’m pulling my hairs out, because i have the feeling that i am so close!