I would like to target a different entity with the same set of actions, depending on time of year (cooling in Summer, heating in Winter). Is there a way for me to define a variable/pointer called seasonal_thermostat, that can point to different entities?
I’m planning to have use an input_select to condition on, so the logic is if input_select.cooling _mode == "Cooling" then seasonal_thermostat == climate.office_ac.
Would you be able to provide a sample template for this? I’m generally comfortable with them, but unsure of how to implement them upstream of my automation (I don’t want to input the template each time I write an automation). Thanks!
With the recently introduced Template Macros it is possible to have the entity ID available without an independent script, but you would still need to to call the climate.turn_on service with a templated target, so it wouldn’t be any more concise and it wouldn’t be usable in core dashboard card actions.