bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
85 stars 23 forks source link

[schedy] Warnings about unsupported HVAC mode #41

Closed chbndrhnns closed 4 years ago

chbndrhnns commented 4 years ago

I am using Homematic IP thermostates and when following your tutorial, I see these warnings for each thermostate:

2019-12-11 18:41:43.076734 WARNING schedy_heating: !!! [R:arbeitszimmer] [A:climate.arbeitszimmer] Thermostat doesn't seem to support the HVAC mode off, supported modes are: ['auto', 'heat']. Please check your config!
2019-12-11 18:41:43.082500 ERROR schedy_heating: !!! [R:arbeitszimmer] [A:climate.arbeitszimmer] Unknown HVAC mode 'auto', ignoring thermostat.

The state YAML for these thermostates looks like that:

hvac_modes:
  - auto
  - heat
current_temperature: 19.9
min_temp: 5
max_temp: 30
temperature: 17
preset_mode: null
preset_modes:
  - none
  - boost
model_type: HmIP-Heating-Group
is_group: true
friendly_name: Arbeitszimmer
supported_features: 17

Am I doing something wrong or what is your advice on these warnings?

bob1de commented 4 years ago

Hi,

This is no bug. It simply tells you that your thermostat doesn't support to be turned off by setting it to some specific HVAC mode. Some thermostat models simply do so.

You should disable HVAC mode support in your case and always leave the thermostat in a fixed mode. The docs tell you how to do this.

Best regards Robert

u20p17 commented 3 years ago

Hi, I am trying to use schedy for my zwave thermostats, which I already can manually control via Home Assistant. @efficiosoft : I looked at the liked docs you send a long time ago, but I couldn't solve my question...

I Started with the official tutorial and now have a question. If I add

# In the following config block, you may define templates with
  # settings that affect multiple actors in your setup. These can then be
  # used as a starting point for the configuration of individual actors.
  # Nested inclusion of templates is possible as well.
  actor_templates:

    # By default, an actor inherits its settings from the "default" template.
    default:
    #delta: 0.0
      off_temp: 7
      **supports_hvac_modes: true**
      hvac_mode_on: heat
      hvac_mode_off: 'OFF' 

I recieve the following warning:

2021-05-24 08:34:39.317374 INFO schedy: --> [R:buero] [A:climate.devolo_thermostat_09356_2] Received value of 17.0��.
2021-05-24 08:34:39.300505 WARNING schedy: !!! [R:buero] [A:climate.devolo_thermostat_09356_2] Thermostat doesn't seem to support the HVAC mode OFF, supported modes are: ['heat']. Please check your config!

If I put supports_hvac_modes: false then the waring looks like this:

2021-05-24 08:37:23.130981 INFO schedy: --> [R:buero] [A:climate.devolo_thermostat_09356_2] Received value of 17.0��.
2021-05-24 08:37:23.118350 WARNING schedy: !!! [R:buero] [A:climate.devolo_thermostat_09356_2] HVAC mode support has been disabled, but the modes ['heat'] seem to be supported. Maybe disabling it was a mistake?

Now I am not sure if I should deactivate it and just irgnore the warning? Or is there a cleaner solution for this?

BR

bob1de commented 3 years ago

@u20p17 The Devolo thermostats support only one HVAC mode, which means that they can't be turned off and you have to use supports_hvac_modes: false.

Such a situation is pretty unusual. Schedy sees that you disabled HVAC mode support but there apparently are HVAC modes advertised by the thermostat, hence it emits a warning to inform you about a possible configuration mistake. I'll extend the check so that it only warns if there is more than one HVAC mode advertised. Thanks for reporting.