ESPHome Trigger if Wifi disconnects
I want to control water valves with relays on a Wmos mini with Esphome. Therefore, its important to ensure that the waterflow definitely stops if e.g. the Wifi connection to the home assistant breaks down. How can I implement something like
In my esp.yaml
switch:
- platform: gpio
pin: GPIO13 #D0
name: "IN1"
id: IN1
- platform: gpio
pin: GPIO12 #D6
name: "OUT2"
id: IN2
- platform: gpio
pin: GPIO14 #D5
name: "OUT3"
id: IN3
- platform: gpio
pin: GPIO16 #D5
name: "OUT4"
id: IN4