Replies: 1 comment
-
I have figured out a way around the problem, see code below. To do so I have reproduced several of the thermostat routines and uses endpoint.write/endpoint.read instead of entity.read/write. However I believe it should be an easier way of doing this than to reproduce much of the routines, it should be (and probably is) a way of telling the system that the hvacThermostat cluster is located at endpoint 2 and not endpoint 1. But I have not figured out how to do that... The code:
// if (value=='off') { numSysMode=0; }
// tz.thermostat_occupied_heating_setpoint,
|
Beta Was this translation helpful? Give feedback.
-
I am trying to modify the converter for a Namron thermostat plug that I have to operate in thermostat mode, not only as a pure on/off plug. (It is possible to get the plug operate as thermostat is in ZHA, but not in Z2M.)
I have been able to make the changes in an external converter that changes the operation mode from on/off to thermostat, bu I am struggling with how to change the thermostat settings. I don't find the documentation to be that intuitive (but that might be me). The challenge as I believe it is the thermostat cluster is at endpoint 2. Through the dev console I am able to change the settings (occupied_temperature and operation_mode) but not when I try to do the same with my own converter.
The error message I see is:
_Zigbee2MQTT:error 2024-01-21 13:34:42: Publish 'set' 'system_mode' to '0x7fff0001000002c5' failed: 'Error: Write 0x7fff0001000002c5/1 hvacThermostat({"systemMode":0}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
Zigbee2MQTT:error 2024-01-21 13:34:54: Publish 'set' 'system_mode' to '0x7fff0001000002c5' failed: 'Error: Write 0x7fff0001000002c5/1 hvacThermostat({"systemMode":4}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'_
Does the 0x7fff0001000002c5/1 means that Z2M tries to send this to endpoint 1?
Removed the code example, since there is a newer version below in my comment
Beta Was this translation helpful? Give feedback.
All reactions