leeyuentuen / localtuya

local handling for Tuya devices
GNU General Public License v3.0
71 stars 17 forks source link

Door sensor Zigbee or other zigbee devices #72

Open goodsale opened 11 months ago

goodsale commented 11 months ago

With this version of localtuya I can manage many zigbee devices (switches, thermometers etc...)

However, there are some devices that when queried in tuya IOT do not contain all the information to be able to be connected to HA.

For example, I have some door sensors which, when queried in TUYA IOT, provide the code below where we see the lack of the Local key and the "uuid" is equal to the ID.

Do you think it is also possible to control these devices with LocalTuya and if so what are the parameters to insert as they are sub-devices of a zigbee hub?

{
  "result": {
    "active_time": 1690975597,
    "category": "qt",
    "create_time": 1690975597,
    "custom_name": "Finestra Cucina",
    "icon": "smart/icon/1524817291ohyty7jfc6kyokuqeyvnp14i_0.png",
    "id":  "xxxxxxxxxxxxxxxcwf9m",
    "ip": "",
    "is_online": true,
    "lat": "52.830",
    "local_key": "",
    "lon": "5.324",
    "model": "",
    "name": "Door Sensor",
    "product_id": "yyyyyyyyyysFFb",
    "product_name": "门窗磁传感器",
    "sub": true,
    "time_zone": "+01:00",
    "update_time": 1690975621,
    "uuid": "xxxxxxxxxxxxxxxcwf9m"
  },