Hello,
I have the following config for on mqtt thermostat that works very good, but after 2023.12 action mode idle and off, are not dispayed at all
hear is the config that i am using
mqtt:
- climate:
name: 1st Floor Thermostat
unique_id: 1st_floor_thermostat
availability_topic: "1st_floor_thermostat/thermostat/properties"
availability_template: "{{ value_json.alive }}"
payload_available: true
payload_not_available: false
temperature_command_topic: "1st_floor_thermostat/thermostat/set/targetTemperature"
temperature_state_topic: "1st_floor_thermostat/thermostat/properties"
temperature_state_template: "{{ value_json.targetTemperature }}"
current_temperature_topic: "1st_floor_thermostat/thermostat/properties"
current_temperature_template: "{{ value_json.temperature }}"
action_topic: "1st_floor_thermostat/thermostat/properties"
action_template: >
{% if value_json.deviceOn == true %}
{% if value_json.state == "off" %}
heating
{% else %}
idle
{% endif %}
{% endif %}
{% if value_json.deviceOn == false %}
off
{% endif %}
mode_state_topic: "1st_floor_thermostat/thermostat/properties"
mode_state_template: >
{% if value_json is defined and value_json['deviceOn'] is defined %}
{% set deviceOn = value_json['deviceOn'] %}
{% else %}
{% set deviceOn = false %}
{% endif %}
{% if value_json is defined and value_json['schedulesMode'] is defined %}
{% set schedulesMode = value_json['schedulesMode'] %}
{% else %}
{% set schedulesMode = 'off' %}
{% endif %}
{% if deviceOn == true %}
{% if schedulesMode == 'auto' %}
auto
{% else %}
heat
{% endif %}
{% else %}
off
{% endif %}
mode_command_topic: "1st_floor_thermostat/thermostat/set"
mode_command_template: >
{% if value == 'auto' %}
{{ {'deviceOn':true,'schedulesMode':'auto'} | to_json }}
{% endif %}
{% if value == 'heat' %}
{{ {'deviceOn':true,'schedulesMode':'off'} | to_json }}
{% endif %}
{% if value == 'off' %}
{{ {'deviceOn':false,'schedulesMode':'off'} | to_json }}
{% endif %}
modes:
- "auto"
- "heat"
- "off"
min_temp: 5
max_temp: 35
temp_step: 0.5
precision: 0.5
retain: true
any help is appreciated
Thank you