Disable OFF and TOGGLE actions in UI switch but keep the ON action

Hi,

I have added switches to the washer, dryer and dishwasher in order to monitor their load, but not intending to switch them on or off. Therefore I left the switch function out of the UI to prevent turning them off accidentally during their cycle.

After a recent power outage I found the switches were turned off and there was of course no way for normal users to turn them on directly in the UI.

Now I’m looking for a way to have the switches in the UI with the possibility to turn them on, but not off. I’ve found this post on disabling all actions, but I want to still have ON enabled. What is a good way to go about that?

Thanks,
Mike

Hello Michael,

Many ZWave devices have this built in. If you are not using ZWave, you might find it some other places like Tasmota, but there is another way.

Simply build an automation that triggers with off or toggle for these devices and the action is turn them on. May need to do this for home assistant start-up as well.
Possibly from unavailable…

In the new UI sections you have a Visibility rule you should be able to set to show only when the switch is off

image

I’m using Wifi for those and a couple of my switches have a “state on startup” setting, but not all do. It’s something I’ll consider when I replenish my supply.

Thanks, I’ll take a look at Button Card.