emsesp / EMS-ESP

ESP8266 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
https://emsesp.github.io/docs
GNU Lesser General Public License v3.0
303 stars 97 forks source link

Home Assistant - Climate thermostat not working #190

Closed majdzik84 closed 5 years ago

majdzik84 commented 5 years ago

Version 1.9.1b7

Climate configuration is not working properly.

When I try the following configuration I get an empty thermostat card. I also tried on HC2 - the same

 - platform: mqtt
   name: Thermostat HC1
   modes:
     - "auto"
     - "heat"
     - "off"

   mode_state_topic: "home/ems-esp/thermostat_data1"
   current_temperature_topic: "home/ems-esp/thermostat_data1"
   temperature_state_topic: "home/ems-esp/thermostat_data1"

   temperature_command_topic: "home/ems-esp/thermostat_cmd_temp1"
   mode_command_topic: "home/ems-esp/thermostat_cmd_mode1"

   mode_state_template: "{{ value_json.thermostat_mode1 }}"
   current_temperature_template: "{{ value_json.thermostat_currtemp1 }}"
   temperature_state_template: "{{ value_json.thermostat_seltemp1 }}"

1 When I delete the numbers indicating the circuit. I am able to switch HC1. When I add the numbers 1 or 2, there is no reaction.

Below are data from mqtt explorer for HC2 3

proddy commented 5 years ago

looks like a typo, try removing the 1s

   mode_state_template: "{{ value_json.thermostat_mode }}"
   current_temperature_template: "{{ value_json.thermostat_currtemp }}"
   temperature_state_template: "{{ value_json.thermostat_seltemp }}"
majdzik84 commented 5 years ago

After deleting the digits, the thermostat card appeared and shows the current temperatures. However, I cannot change the temperature or mode. nothing happens.

The putty also does not display information about the change of mode or temperature

proddy commented 5 years ago

probably a bug. To be honest I never tested this :) Will do this week

majdzik84 commented 5 years ago

@Proddy You do a really great job.

I tested the modes quickly.

1

Could you still check the status of the current program? On the thermostat there is always automatic mode (in earlier versions it was also). It would be great if it showed if the mode currently turned on is auto, heat or off 2

proddy commented 5 years ago

try 1.9.1b8 again. I added "heat"

as for HA showing the string, I can't change that as its a default component within Home Assistant.

You could try using another card component, like https://github.com/nervetattoo/simple-thermostat which I've tried before. Its much more configurable. For example I added this to the lovelace UI file for my old RC30

         - type: custom:thermostat-card
           title: Living Room
           entity: climate.thermostat
           pending: 1
           chevron_size: 50
           no_card: false
           hvac:
             states:
               low: off
               manual: manual
               auto: auto
           attribute: operation_mode
           highlight_tap: true