ESPHome Dead Mans Switch


I’ve been trying to see if it is possible with ESPHome to reset the device back to it’s original state .

While ESPHome has been solid for me and I try to build in redundancy, I’m mindful that if I was no longer around, my family may run into problems at some stage with either HA no longer working or a router needing replacing and now ESPHome no longer talks to HA or vice versa; you get the picture.

Is there a way to, say, set a button combo in ESPHome code to restore, for example, a 3 button light switch back to it’s original/factory setup of,

  • if top button pressed, toggle top relay;
  • if middle button pressed, toggle middle relay etc