Automate helper switch

New to HA, coming from Openhab.
I’m used to build elaborate scripts but HA works a little differently.
I have a Helper switch where i switch between HOME / SLEEP / AWAY / HOLIDAY.
These modes switch automatically based on who is home and how far we are away.
I’m trying to do the same with HA
I have created an input.select with the 4 values, and i noticed I can’t modify a helper with automation.

Is there another way in HA I can automate this 4 way switch?

Thanks.

You can modify helpers with automations, you just need to use a Call Service action. The specific service to set the value for an input select would be input_select.select_option.

Input Select: Services

1 Like

That worked. Thank you !

Make sure you use input_select.select_option, not input_select.set_options… “Set Options” is for setting the available options the Input Select, and will overwrite any options you originally set it up with.

Instead of a helper, I’d suggest a template sensor.

I was going to include the code for a mode manager sensor I use, but I’m on my phone right now, and apparently copying and pasting from the file editor is a mess (the pasted code is filled with …&20&20&20…)