Having an issue where the mode of the thermostat is always ‘Off’ (operation dropdown). It seems to pull that value from the operating state maybe? I haven’t found good docs on the thermostat json and how that value flows through so any help would be great. Screen and mqtt json included.
{
"type": "climate",
"object_id": "climate",
"discovery_payload": {
"min_temp": 5,
"max_temp": 40,
"temp_step": 0.5,
"modes": [
"off",
"heat",
"cool",
"auto",
"dry",
"fan_only"
],
"mode_state_template": "{{ {\"0\": \"off\", \"1\": \"heat\", \"2\": \"cool\", \"3\": \"auto\"}[value_json.value] | default('off') }}",
"current_temperature_topic": "zwave/Living_Room/Thermostat/49/1/Air_temperature",
"current_temperature_template": "{{ value_json.value }}",
"temperature_state_topic": "zwave/Living_Room/Thermostat/67/1/setpoint/2",
"temperature_state_template": "{{ value_json.value }}",
"temperature_command_topic": "zwave/Living_Room/Thermostat/67/1/setpoint/2/set",
"mode_state_topic": "zwave/Living_Room/Thermostat/64/1/mode",
"mode_command_topic": "zwave/Living_Room/Thermostat/64/1/mode/set",
"action_topic": "zwave/Living_Room/Thermostat/66/0/state",
"action_template": "{{ {0: \"idle\", 1: \"heating\", 2: \"cooling\", 3: \"fan\", 4: \"idle\", 5: \"idle\", 6: \"fan\", 7: \"heating\", 8: \"heating\", 9: \"cooling\", 10: \"heating\", 11: \"heating\"}[value_json.value] | default('idle') }}",
"temperature_unit": "F",
"precision": 0.1,
"device": {
"identifiers": [
"zwavejs2mqtt_0xf5baed9b_node7"
],
"manufacturer": "Radio Thermostat Company of America (RTC)",
"model": "Z-Wave Thermostat (CT80)",
"name": "Living Room-Thermostat",
"sw_version": "9.0"
},
"name": "Living Room-Thermostat_climate",
"unique_id": "zwavejs2mqtt_0xf5baed9b_Node7_climate"
},
"values": [
"49-1-Air temperature",
"64-1-mode",
"67-1-setpoint-1",
"67-1-setpoint-2",
"67-1-setpoint-11",
"67-1-setpoint-12",
"66-0-state"
],
"mode_map": {
"off": 0,
"heat": 1,
"cool": 2,
"auto": 3
},
"setpoint_topic": {
"1": "67-1-setpoint-1",
"2": "67-1-setpoint-2",
"11": "67-1-setpoint-11",
"12": "67-1-setpoint-12"
},
"default_setpoint": "67-1-setpoint-1",
"action_map": {
"0": "idle",
"1": "heating",
"2": "cooling",
"3": "fan",
"4": "idle",
"5": "idle",
"6": "fan",
"7": "heating",
"8": "heating",
"9": "cooling",
"10": "heating",
"11": "heating"
},
"discoveryTopic": "climate/Living_Room-Thermostat/climate/config",
"persistent": false,
"ignoreDiscovery": false,
"id": "climate_climate"
}