Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.26k stars 234 forks source link

`Enhancement` Add hvac_mode: auto to addon_climate #1936

Open klatka opened 3 months ago

klatka commented 3 months ago

Enhancement Summary

Add support for hvac mode auto

Detailed Description

My bosch room thermostat looks like this:

hvac_modes: off, heat, auto
min_temp: 5
max_temp: 30
target_temp_step: 0.5
current_temperature: 22.4
temperature: 22
hvac_action: idle
friendly_name: Bodenheizung Wohnbereich
supported_features: 385

The NSPanel climate entity looks like this:

hvac_modes: off, heat
min_temp: 15
max_temp: 30
target_temp_step: 0.5
preset_modes: home, Off
current_temperature: 21.7
temperature: 19.5
hvac_action: off
preset_mode: home
friendly_name: Bodenheizung Eingang
supported_features: 401

If temperature is above current_temperature the NSPanel should start heating if set to auto. Mode off means that it won´t do that. If set to auto and temperature is below current_temperature the NSPanel's hvac_action should be idle (look at the Bosch one).

Additional Context

No response

edwardtfn commented 3 months ago

As per Home Assistant code, the auto mode is defined by:

https://github.com/home-assistant/core/blob/3ec9312f0e42079786fc352606c51d371d93cc8e/homeassistant/components/climate/const.py#L31

    # The temperature is set based on a schedule, learned behavior, AI or some
    # other related mechanism. User is not able to adjust the temperature
    AUTO = "auto"

This will require the implementation of this advanced engine, as we don't have anything like this implemented now. Later I will search the web for some existing implementation that could inspire us and reduce the efforts.

klatka commented 3 months ago

Maybe a schedule set in ESPHome is enough?