Hi all
I am looking for the best way to set a dropdown helper to a particular state based on a sensor’s value Multiple automations seems messy to me and it feels like there must be a better way.
Essentially, I have a helper called input_select.cabin_fireplace_state
which I am going to use as a state machine to store the state of my fireplace (Off/On/Low Heat/High Heat). This will be based on the wattage recorded by another sensor (A smart plug).
>2w < 800w - On
>800w < 1800w - Low Heat
> 1800w - High Heat
I will then have templated switches to control the different modes and lock/unlock options depending on what is possible from a particular state. For example, the fireplace must transition from Off to On before either heat option is available.