Hello community,
I am currently facing the problem of integrating a water sensor with an ESP8266 01-S into Home Assistant via MQTT.
As soon as water is reported, I also get the corresponding message (via binary_sensor on/off) on Home Assistant.
Since the ESP 01-S only sends the message once and then goes to sleep again, I would like to set the binary_sensor back to “off” via a “Helper Button” after it has been set to “on”.
This can be done via “Set State” in the “Developer Tools”, but I would like to do it via a button on the LoveLace.
Can you help me with this?
I know that it is supposed to work via the “Shell”, but I just can’t get it to work… I’ve been despairing about this project for almost 3 weeks now…
Many thanks in advance
binary_sensor:
- name: "Waschkueche Wassermelder Alarmkontakt"
unique_id: 220920221
state_topic: "WaschkuecheWassermelder/water_detected"
payload_on: 'on'
payload_off: 'off'
qos: 1
device_class: problem
value_template: "{{ value_json.state }}"