question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Technical Support] General discussion regarding Tuya TRVs - for people implementing the quirks

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:50 (33 by maintainers)

github_iconTop GitHub Comments

4reactions
jacekk015commented, Nov 26, 2021

All tuya TRVs is being looked on only the original Moes is not completely rewritten but is also in the pipe if all is going well.

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#

2reactions
jacekk015commented, Nov 28, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found