TheNoctambulist / hass-airtouch

Home Assistant integration for the Polyaire AirTouch AC Controllers
MIT License
15 stars 0 forks source link

Setting the control_method for a zone #7

Closed nagelm closed 4 hours ago

nagelm commented 5 days ago

Checklist

Proposal

I would like a way to create an automation which sets the control_method for a zone back to 'temperature' if it has been left as 'damper' for x period. Ideally, I would like to do this without knowing or changing the temperature of the zone.

I am fairly early in my HA journey so forgive me if this function already exists.

Additional context

No response

TheNoctambulist commented 4 days ago

I haven't added a specific service call for changing the control method, but you could just call the climate.set_temperature service using the current target temperature, for example:

service: climate.set_temperature
metadata: {}
data:
  temperature: "{{ state_attr(\"climate.my_zone\", \"temperature\") }}"
target:
  entity_id: climate.my_zone
nagelm commented 20 hours ago

Thanks I'll use your suggestion. I guess if the zone is off it could still be handy to have the service to change the control method without turning on the zone so I will leave my feature request standing.

TheNoctambulist commented 19 hours ago

Calling the set temperature service shouldn't cause a zone that is turned off to turn on. Are you having zones turn on when the temperature is changed?

TheNoctambulist commented 17 hours ago

I've created an automation blueprint that will change the control method for any zones from damper back to temperature control after a configured delay. I've tested it with a zone that was turned off and it remains turned off. You can import it with the following link:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.