I have an ESP8266 light switch that the button input can run a HA automation when everything is online.
But when HA has become offline for whatever reason. Like this morning lol.
The button input can’t run the automation(certain lights won’t turn on.)
Can I run different yaml in the ESP8266 device that makes it like a normal light switch?
HA online yaml in the ESPhome device
vs.
HA offline yaml in the ESPhome device
this is easier: wifi.connected
on gpio:
when connected → esp device calls homeassistant service api to toggle switch (relay)
when disconnected-> toggle switch (relay)
1 Like