ON / OFF / AUTO-button card for Sonoff switch

Hi,

I have a Sonoff switch controlling a heater, integration via HACS / https://github.com/AlexxIT/SonoffLAN

I also have HA Automation:

  • If temp is under 5, activate scene “Sonoff ON”
  • If temp is over 6, active scene “Sonoff OFF”

I can control the switch OK and I have a button card to enable/disable the automation. Works fine.

I’d like to have a switch / button card, where you can switch it on / off or to AUTO-mode?

ON = automation off, switch ON
OFF, automation off, switch OFF
AUTO = Automation on, switch will be controlled by automation script.

Is this possible in HA? I used to do “real life” building automation, where this kind of switches are really common.

Thnx

Don’t know if this is what you are looking for, but i found the custom lovelace card state-switch which might be useful

I think you could in there make it so when AUTO is on, it hides the other buttons, and when AUTO is off, the ON / OFF switches appear again + a way to set it back to AUTO.

But haven’t used this card myself so not sure