Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103366

Problem with mqtt hvac thermostat

$
0
0

I’m having trouble with mqtt hvac integration. The thing is: I have 2 of them and one works fine and the other one doesn’t. And almost everything was copy-paste.

As you can see there is no feedback information (temperature & mode) visible on the right thermostat. It also doesn’t get colored when put into heat or cool mode.
This info comes from the “mode_state_topic” and “temperature_state_topic” topics, right?

Here is the code of the right side one in yaml

type: vertical-stack
title: Zolder
cards:
  - type: thermostat
    entity: climate.zolder_ac
    name: ' '
  - type: entities
    entities:
      - entity: light.acremote_zolder_led
    state_color: true
    show_header_toggle: false
  - type: entities
    entities:
      - entity: sensor.tmpl_last_acremote_zolder_status
      - entity: sensor.mqtt_acremote_zolder_status
      - entity: sensor.mqtt_acremote_zolder_mode
      - entity: sensor.mqtt_acremote_zolder_temp
    show_header_toggle: false

Here are both devices in configuration.yaml

climate:
  - platform: mqtt
    name: "gang_ac"
    unique_id: "gang_ac"
    precision: 1.0
    modes:
      - "off"
      - "fan_only"
      - "cool"
      - "heat"
      - "dry"
#      - "auto"
    min_temp: 16
    max_temp: 25
    power_command_topic:        "acremote/gang/power/set"
    mode_command_topic:         "acremote/gang/mode/set"
    temperature_command_topic:  "acremote/gang/temperature/set"
    fan_mode_command_topic:     "acremote/gang/fan/set"
    swing_mode_command_topic:   "acremote/gang/swing/set"
    mode_state_topic:           "acremote/gang/mode/state"
    mode_state_template:        "{{ value_json.mode }}"
    temperature_state_topic:    "acremote/gang/temperature/state"
    temperature_state_template: "{{ value_json.temp }}"
    current_temperature_topic:  "homeassistant/sensor/temperature/ouders/stat"

  - platform: mqtt
    name: "zolder_ac"
    unique_id: "zolder_ac"
    precision: 1.0
    modes:
      - "off"
      - "fan_only"
      - "cool"
      - "heat"
      - "dry"
#      - "auto"
    min_temp: 16
    max_temp: 25
    power_command_topic:        "acremote/zolder/power/set"
    mode_command_topic:         "acremote/zolder/mode/set"
    temperature_command_topic:  "acremote/zolder/temperature/set"
    fan_mode_command_topic:     "acremote/zolder/fan/set"
    swing_mode_command_topic:   "acremote/zolder/swing/set"
    mode_state_topic:           "acremote/zolder/mode/state"
    mode_state_template:        "{{ value_json }}"
    temperature_state_topic:    "acremote/zolder/temperature/state"
    temperature_state_template: "{{ value_json }}"
    current_temperature_topic:  "homeassistant/sensor/temperature/zolder/stat"

When I check the mode state and the temparature state mqtt topics, I see data coming in (in json format).

Outgoing data works too. If I press that LED button, the LED on my ESP device goes on.

What could be wrong here?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>