rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.91k stars 557 forks source link

Missing DP for the same lights #636

Open mysteriousHerb opened 2 years ago

mysteriousHerb commented 2 years ago

Hi, i have 8 ceiling lights of the same type. 5 of them can be configured properly, but 3 of them show missing DP when configuration and thus i cannot control colour and sometimes the light just show unavailable..

Any idea how to fix this?

For a working light: image

DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'\xb6w\xf7r[W\xd6\xe3U@B\x8f&\xdc\xa1[Eu,\x18\xf1\xe3\xb11\xd2\xd3\xb0\xbem\xd7-\x17n\x171\xdf)\x13\x8dz\xad\xa75o\xef\x82e\x0f\x0c\xddG"\xd7~\x90>M\xe4(z\xa7C\xb3\x02\x1dL\x1e\xe2MI\xe005&Y\xe6\xf8}\td'
DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":false,"21":"colour","22":398,"23":0,"24":"003d03e80189","26":0}}'
AVAILABLE DPS ARE [{'20': False, '21': 'colour', '22': 398, '23': 0, '24': '003d03e80189', '26': 0}]

For a non-working light: image

DEBUG:localtuya.pytuya:DATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b's\xe41\xb7C\xe7\x9c\x0f@\xa0/<}>\x1di\xf7\xaf\xa9+\xe7\xc5\xadH\n7+cV\xe4za\x15\xae\xbf\x91\x98\xa6\xedo\xdc?\x96i\x08\xe6\x12\x13\xb4\xb6`\xb5\x86\xdc\xbd"\x1c\x95v\xcdCbp\x9aS]\xae\xfe/\xb2y\x1a\xf8\x8d\x87\xec\xfc"\xa3\xfa'
DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":false,"22":1000,"23":1000,"24":"000003e80216","26":0}}'
AVAILABLE DPS ARE [{'20': False, '22': 1000, '23': 1000, '24': '000003e80216', '26': 0}]
Toby00 commented 2 years ago

i have the same problem this happend to me when i have update hacs now i cant set my lights
i have set hacs back to previous version stil the same problem

mysteriousHerb commented 2 years ago

The solution i found was using smart life app and try toggle everything for the light, including modes etc.. at some point the new DP showed up.