Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Home Assistant - breaking changes to climate integration #153

Closed
renehonig opened this issue Jul 18, 2019 · 3 comments
Closed

Home Assistant - breaking changes to climate integration #153

renehonig opened this issue Jul 18, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@renehonig
Copy link

@proddy :

Home Assistant v 0.96 has changed the behaviour of the climate integration:
https://developers.home-assistant.io/blog/2019/07/03/climate-cleanup.html

This breaks the HA integration for the warm water control.
I have made some quick fixes and have extracted the relevant pieces of code (quicker than a pull request as my setup is somewhat different).

The approach I have taken is to add 'auto' as a synonym for 'on', as not to break existing configurations. Not sure if this is the best approach, but it should work.

HA file:


climate nefit_boiler:
  platform: mqtt
  name: boiler
  modes:
   - "auto"
   - "off"
  min_temp: 40
  max_temp: 60
  temp_step: 1
  current_temperature_topic: "home/ems-esp/boiler_data"
  temperature_state_topic: "home/ems-esp/boiler_data"
  temperature_command_topic: "home/ems-esp/boiler_cmd_wwtemp"
  current_temperature_template: "{{ value_json.wWCurTmp }}"
  temperature_state_template: "{{ value_json.wWSelTemp }}"
  mode_state_template: "{% if value_json.wWActivated == 'off' %} off {% else %} auto {% endif %}"
  mode_state_topic: "home/ems-esp/boiler_data"
  mode_command_topic: "home/ems-esp/wwactivated"


ems-esp.cpp:

    // wwActivated
    if (strcmp(topic, TOPIC_BOILER_WWACTIVATED) == 0) {
        if (message[0] == '1' || strcmp(message, "on") == 0) {
            ems_setWarmWaterActivated(true);
        } else if (message[0] == '1' || strcmp(message, "auto") == 0) {
            ems_setWarmWaterActivated(true);
        } else if (message[0] == '0' || strcmp(message, "off") == 0) {
            ems_setWarmWaterActivated(false);                
        }
    }
@renehonig renehonig added the bug Something isn't working label Jul 18, 2019
@proddy
Copy link
Collaborator

proddy commented Jul 18, 2019

thanks, I noticed HA 0.96 had some refactors to the climate component. I'll test on my system and see if we can make it work for all thermostats

@proddy
Copy link
Collaborator

proddy commented Jul 18, 2019

added to dev branch

@proddy
Copy link
Collaborator

proddy commented Aug 17, 2019

@renehonig any idea how to go about fixing #172 ?

@renehonig
Copy link
Author

Hi Paul, I made some comment in issue below:

#172 (comment)

1 similar comment
@renehonig
Copy link
Author

Hi Paul, I made some comment in issue below:

#172 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants