I’ve just bought a Moes ZigBee TRV (see here), However, when I try to add it to my ZHA ZigBee network, although it’s discovered and added to the network as other ZigBee devices, the only entity that’s available for it is update.name_firmware
. I have other ZigBee TRVs and they have plenty of other entities. Has anyone had one of these TRVs and got it to work with ZHA?
Since posting, I’ve discovered and learnt a little about custom quirks for ZHA. I’ve copied the file ts0601_trv.py and edited it to add this line for my TRV to the MoesHY368_Type1 thermostat class:
("_TZE204_9mjy74mp", "TS0601"),
This allowed me to see the current and set to temperatures of my TRV and has an on/off switch. However, although it’s recognised as a thermostat, I can’t change the set to temperature, can’t switch it on or off and can’t change the mode.
Note I tried every other thermostat class in the file and they gave worse results.
I’d be happy to try and develop a specific quirk for this TRV but I don’t know where to start! If someone could point me at how to do this I’d appreciate it.
You didn’t pick an easy device to write your first quirk for.
Looks like Z2M is starting support, so someone has already identified that datapoints, New device: Moes , Thermoestatic Valve · Issue #23206 · Koenkk/zigbee2mqtt (github.com) you’d need to go through the list and compare them to the existing quirk to see what needs to change, it might be that simple.
Do any of the controls or sensors work?
Exactly what I thought! At the moment I can’t make heard nor tail of it! A step-by-step guide would help!
I’ve looked at the link you gave but I can’t cross reference that to the quirk, it’s like trying to compare English and Chinese, with a blindfold! Any pointers greatly appreciated.
Whoops, missed your question. Yes, I can see the current temperature and the temperature setpoint and they update too.
By complete luck I have found a quirk that provides some support for this valve. It allows me to change the temperature setting (which is really all I need) although it doesn’t seem a perfect fit. I may try and have a look to see how to improve it (although the learning curve is Matterhorn steep!).
You can find it here and just add a row for this device to the MODELS_INFO section.
This head works for me with quirks ts0601_trv_rtitek.py. However, I can’t switch it in system mode: Comfort mode.
Can anyone help me how to do this?
I think the quirk needs to be updated for the TRV. I would like to do this but I need to find the time but first I need to understand how the quirks work. It’s a very steep learning curve unfortunately.