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.
Hello,
Can someone help me out how to use the quirks and see if I can get more entities from this device? at tthe moment I only have the 2 first.
I just installed Home Assistant on the weekend, and I am using conbee II.
Please provide me some guidance.
Here is the log:
[<Task pending name=‘global-updater_GlobalUpdater’ coro=<periodic..scheduler..wrapper() running at /usr/local/lib/python3.12/site-packages/zha/decorators.py:78> cb=[set.remove()]>] executing periodic task [zha.application.helpers::GlobalUpdater.update_listeners]
Global updater interval starting
Global updater interval finished
Feeding watchdog
[<Task pending name=‘device-availability-checker_DeviceAvailabilityChecker’ coro=<periodic..scheduler..wrapper() running at /usr/local/lib/python3.12/site-packages/zha/decorators.py:78> cb=[set.remove()]>] executing periodic task [zha.application.helpers::DeviceAvailabilityChecker.check_device_availability]
Device availability checker interval starting
How to setup local ZHA quirks explains how to use custom quirks. Make sure you add the device to the quirk as I said above. As for updating the quirk, it’s complicated and I really need a course on it!!
I am unfortunately very poor at programming. I hope you can do it
I’ve just seen that another quirk now explicitly includes this thermostat. It’s here (it has a suffix of 2 over the last one. I’d started looking into modifying the original quirk but came across this one.
I don’t know how good it is. Be good if someone who also connects to the valve via the Tuya app can provide some feedback.