The first version of zwave-js-ui I installed was already the latest which includes the change (12.4.0). But I believe this only added the options in the webinterface of zwave-js-ui, where I could set the modes manually. The discovery templates used by home assistent and domoticz don't include the other modes. I don't know how or where the discovery templates are generated in zwave-js-ui, but after testing a few extra edits I finally made one that works.
To use it I went to the specific valve in zwave-js-ui. I navigated to home assistent>climate_thermostat and changed these lines in hass device JSON:
Zwave-js-ui default version:
Code: Select all
"values": [
"64-0-mode",
"49-0-Air temperature",
"67-0-setpoint-1",
"67-0-setpoint-11"
],
"mode_map": {
"off": 0,
"heat": 1,
"cool": 11
},
"setpoint_topic": {
"1": "67-0-setpoint-1",
"11": "67-0-setpoint-11"
},
"default_setpoint": "67-0-setpoint-1",
"discovery_payload": {
"min_temp": 8,
"max_temp": 28,
"modes": [
"off",
"heat",
"cool"
],
"mode_state_template": "{{ {0: \"off\", 1: \"heat\", 11: \"cool\"}[value_json.value] | default('off') }}",
}
replaced with:
Code: Select all
"values": [
"64-0-mode",
"49-0-Air temperature",
"67-0-setpoint-1",
"67-0-setpoint-11",
"67-0-setpoint-15",
"67-0-setpoint-31"
],
"mode_map": {
"off": 0,
"heat": 1,
"Energy heat": 11,
"Full power": 15,
"Manufacturer specific": 31
},
"setpoint_topic": {
"1": "67-0-setpoint-1",
"11": "67-0-setpoint-11",
"15": "67-0-setpoint-15",
"31": "67-0-setpoint-31"
},
"default_setpoint": "67-0-setpoint-1",
"discovery_payload": {
"min_temp": 8,
"max_temp": 28,
"modes": [
"off",
"heat",
"Energy heat",
"Full power",
"Manufacturer specific"
],
"mode_state_template": "{{ {0: \"off\", 1: \"heat\", 11: \"Energy heat\", 15: \"Full power\", 31: \"Manufacturer specific\"}[value_json.value] | default('off') }}",
I then pressed update in zwave-js-ui, deleted the thermostat switch in domoticz and pressed rediscover in zwave-js-ui and it works.