Closed msillano closed 3 years ago
When you unregister/remove and add again the device from mobile app, device will have new key for encoding/decoding messages.
Simply get new keys, update configs and everything will be fine again ;) This behaviour is known also mentioned in documentation.
Thanks, I been stupid :(
Of course, tested and now all work fine: id
was the same, but the key
is changed.
So I can eval the response undecoded from tuyapi like
TuyAPI payload: "3.3\x00\x00\x00\x00\x00\x00J�\x00\x00\x00\x01U��\x04x�1f�#Z5'\x7F���,P\x0F�\f\x1C;J�q$�G[T4u��B�~\x13��a����",
as an indication of bad key ? OK. Best regards m.s.
Describe the bug
This morning I start testing a new device (Smart Breaker: https://www.aliexpress.com/item/1005001863612580.html) using tuyaDAEMON (https://github.com/msillano/tuyaDAEMON wth tuyapi 6.1.1).
1) The switch is easily connected to smartlife, then I catch ids with tuya-cli, all ok: in the morning I do many tests, all works like a charm.
2) In the afternoon: very slow responses, many disconnections (?) So I make an error: I deleted the device on smartlife and reconnected it. From that, if I do a command, the captured MQTT is undecoded by tuyapi.
Maybe a firmware upgrade? But without any warning message !?. Auto-update OFF, the tuya version is not changed (1.0.7 both).
Debug Output
This is not the unique device with this behavior: also a 'siren' does the same, but from the first start. What I found very strange in the events is the change of the device's responses.
Desktop:
Best Regards, m.s.