jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
867 stars 157 forks source link

two identical thermostats #460

Open tanki658 opened 4 months ago

tanki658 commented 4 months ago

Hi Jadnoacox,

I have two identical tyua thermostats. I don't know why the first thermostat doesn't return results like the second one.

python3 -m tinytuya scan -debug

{ "timestamp": 1707652167.6474035, "devices": [ { "id": "bf7ceb0894efdc8490aqof", "ip": "xxx.xxx.xxx.xxx", "active": 2, "encrypt": true, "productKey": "y1biomfanpdusz6b", "token": true, "wf_cfg": true, "name": "", "key": "", "mac": "", "ability": 0, "dev_type": "default", "origin": "broadcast", "ver": "3.4" }, { "id": "bf748499d9b573c4afkwoy", "ip": "xxx.xxx.xxx.xxx", "active": 2, "encrypt": true, "productKey": "y1biomfanpdusz6b", "token": true, "wf_cfg": true, "name": "Kitchen Thermostat", "key": ")ocd@W[[MALw:OxH", "mac": "c4:82:e1:d8:88:de", "ability": 0, "dev_type": "default", "err": "", "type": "default", "dps": { "dps": { "1": false, "2": "manual", "16": 24, "19": 35, "23": "c", "24": 21, "26": 5, "27": 0, "36": "close", "40": false, "43": "out", "45": 0, "101": 20, "103": false, "106": 1 } }, "origin": "broadcast", "ver": "3.4" } ] }

uzlonewolf commented 4 months ago

Unlike the second one, that first one does not have a key set. Try running the wizard again to get it.