lywsd02 icon indicating copy to clipboard operation
lywsd02 copied to clipboard

Please add new device support

Open bdfy opened this issue 1 year ago • 0 comments

I bought a new version of the device - it does not work with the current code. If you change the code:

    @property
    def time(self):
        with self.connect():
            ch = self._peripheral.getCharacteristics(uuid=UUID_TIME)[0]
            value = ch.read()
        if len(value) == 7:
            value = value[:-2]
        if len(value) == 5:
            ts, tz_offset = struct.unpack('Ib', value)

all OK

Looks like the format has changed. 2.txt 1.txt

bdfy avatar Aug 29 '23 08:08 bdfy