nyffchanium / argoclima-integration

Home Assistant integration for Argoclima (Argo) climate control devices
MIT License
22 stars 5 forks source link

Obsolete climate.turn_on /climate.turn_off through using hvac_mode #4

Open linux-guru-com opened 2 years ago

linux-guru-com commented 2 years ago

Is your feature request related to a problem? Please describe. This integration obviously needs an additional service call _climate.turnon to finally turn on the device. (Addon-) Integration(s) such as scheduler-card @ do not support this and state, that this is also no common practice within Home Assistant (which I don't dare to judge).

Describe the solution you'd like _hvacmode already supports all operational modes as well as the "off" state. This should met all technical requirements for operation and obsolete the additional service call. So the final solution would be, to start the device automatically by selecting any other _hvacmode than "off" and switching it off if selecting the latter.

Describe alternatives you've considered I do currently work around this issue (in terms of automations) with having different scheduler scripts for turning on (scripted approach via scheduler-card) and turning off (simple automation containing the _climate.turnoff service call) the device, which is some overhead.

Additional context ./.

nyffchanium commented 2 years ago

I'm not sure what you're on about. Service calls to entity platforms are managed by Home Assistant and are not part of the interface to integrations. Home Assistant merely calls async_set_hvac_mode() on the climate entity of the integration to let it know what hvac_mode it should be in. There is no other way that signals "turn on" or "turn off".

I got the scheduler component to turn on ("cool" / "fan only" etc.) / turn off the Ulisse without any problems. HA 2022.6.7 scheduler-component v3.2.10 scheduler-card v2.3.5