[Technical Support] General discussion regarding Tuya TRVs - for people implementing the quirks
See original GitHub issueHi,
As @MattWestb and @jacekk015 suggested I open a technical topic for all the tech questions regarding the implementation of the quirks for Tuya TRV.
And to start off here is a first one: Changing the range of available temperature settings. For current Saswell quirk (https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_trv_sas.py) the temp range is set to 7-30 (default) however the device uses 5 -30. The setting used in quirk is not being applied.
The way I managed to change this is:
class SaswellThermostatCluster(TuyaThermostatCluster):
"""Thermostat cluster for Tuya thermostats."""
# cluster_id = Thermostat.cluster_id
def __init__(self, *args, **kwargs):
"""Init."""
super().__init__(*args, **kwargs)
self._update_attribute(self.attridx["min_heat_setpoint_limit"], 500)
self._update_attribute(self.attridx["max_heat_setpoint_limit"], 3000)
this is not working:
_CONSTANT_ATTRIBUTES = {
MIN_HEAT_SETPOINT_ATTR: 500,
MAX_HEAT_SETPOINT_ATTR: 3000,
CTRL_SEQ_OF_OPER_ATTR: Thermostat.ControlSequenceOfOperation.Heating_Only, # the device supports heating mode
}
Do you know of any other/better way of doing this?
PS. Check if this is working correctly for Moes/Beca TRV as those seem to read those values from TRV but, are those values implemented in HA?
Issue Analytics
- State:
- Created 2 years ago
- Comments:50 (33 by maintainers)
Top Results From Across the Web
Tuya smart radiator valves (TRV) - Devices & Integrations
Hi, I've got some Tuya Zigbee radiator valves (TRVs) and I haven't yet received my Tuya bridge, but I thought I'd give it...
Read more >Can we have 'bad zigbee devices/do not buy' list? - Reddit
OP is talking specifically about ZigBee Tuya devices. The fact you talk about local device access being poor suggests you have Wi-fi Tuya...
Read more >2022.2: Let's start streamlining! - Home Assistant
Starting 2022 with media and device tracker improvements, diagnostics, added states to scenes, and streamlining lots of things!
Read more >U.S. Plots Economic Sanctions On Russia if It Attacks Ukraine
“Now, it's being discussed on the nightly news,” she said. The most recent confusion centers on how long people should isolate after testing....
Read more >My thermostats do not stop their radiators when they reach ...
The overshooting could be a few things, has the valve finished calibrating? If not, wait until it has. Is the valve oriented correctly?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s actually wrong since 20 minutes or so: https://github.com/zigpy/zha-device-handlers/issues/1178#issuecomment-980294492 Rewritten Moes is in above comment. Next is Maxsmart cosmetics + schedule. Next in queue is: TS0601 _TZE200_a4bpgplm tuya trv - this weekend for sure. https://github.com/zigpy/zha-device-handlers/issues/1159#
@PLTorrent Nicely coded, nice code re-usage. I feel a bit lazy looking now 😉 I’m tuning my Maxsmart with 126 schedule attributes. TRV -> HA already working. Need to create reverse communication and it should be the end.