claudegel / sinope-zha

This is a custom quirks for sinope zigbee devices for testing before it is added to zha-device-handlers. It also explain how to setup those quirks in Home Assistant to use and test them before they are merged in zha-device-handlers
GNU General Public License v2.0
26 stars 5 forks source link

TH1123ZB config_2nd_display enum #17

Closed arno1801 closed 8 months ago

arno1801 commented 8 months ago

I noticed that the enumerations 0x01 & 0x02 for 2nd display with TH1123ZB & TH1123ZB-G2 are swapped. The good order is 1 = outside 2 = set point.

claudegel commented 8 months ago

in thermostat.py I have

    class Display(t.enum8):
        """config_2nd_display values."""

        Auto = 0x00
        Outside_temperature = 0x01
        Setpoint = 0x02

Where did you see the error ?

claudegel commented 8 months ago

I think it should be

    class Display(t.enum8):
        """config_2nd_display values."""

        Auto = 0x00
        Setpoint = 0x01
        Outside_temperature = 0x02
arno1801 commented 8 months ago

I'm sorry, it's should be like you said

I think it should be

    class Display(t.enum8):
        """config_2nd_display values."""

        Auto = 0x00
        Setpoint = 0x01
        Outside_temperature = 0x02

Sorry, I mixed the values in my first post. When I send 1, the thermostat display the actual set point and when I send 2, it display outside temperature. So it should be like you said in your second post.

claudegel commented 8 months ago

Ok thank you for reporting I've fix it in the thermostat.py file Auto = 0x00 Setpoint = 0x01 Outside_temperature = 0x02