Controlling Thermostats

@nickrout

I think the generic thermostat was presenting a cooling and heating setpoint that wasn’t really ideal.

@neliss

Thanks for the help, that was what I was thinking. This link was helpful.

I am very impressed with the configurability of zigbee2mqtt!! This link was also helpful

I was able to reconfigure the thermostat and after a couple of days of testing I believe that it is working with just one setpoint. This seems to allow both the Simple Thermostat and Scheduler Integration to function properly.

For those coming after you need to add similar to your home assistant configuration.yaml

climate:
- platform: "mqtt"
  unique_id: "0x000d6f000ad9a2ff_climate_zigbee2mqtt"
  name: "master_bedroom_thermostat_heat"
  availability_topic: "zigbee2mqtt/bridge/state"
  min_temp: "13"
  max_temp: "25"
  modes:
    - "off"
    - "heat"
  mode_state_topic: "zigbee2mqtt/master_bedroom_thermostat_heat"
  mode_state_template: "{{ value_json.system_mode }}"
  mode_command_topic: "zigbee2mqtt/master_bedroom_thermostat_heat/set/system_mode"

  current_temperature_topic: "zigbee2mqtt/master_bedroom_thermostat_heat"
  current_temperature_template: "{{ value_json.local_temperature }}"

  temperature_state_topic: "zigbee2mqtt/master_bedroom_thermostat_heat"
  temperature_state_template: "{{ value_json.occupied_heating_setpoint }}"
  temperature_command_topic: "zigbee2mqtt/master_bedroom_thermostat_heat/set/occupied_heating_setpoint"

  temp_step: 0.5

  action_topic: "zigbee2mqtt/master_bedroom_thermostat_heat"
  action_template: "{% set values = {'idle':'off','heat':'heating'} %}{{ values[value_json.running_state] }}"

Thanks for the help.

1 Like