codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.04k stars 332 forks source link

Zigbee smart plug #604

Open matodi423 opened 1 year ago

matodi423 commented 1 year ago

Hi, I just started few weeks ago with homebridge. So I just tried to connect a smart plug working with Zigbee working with a zigbee bridge. The plug was added too homebridge but when I click on the bulb nothing happen.

My question was. Can I add a smart plug on Zigbee or only Wi-Fi accessories can be added with LAN Tuya ?

Thanks, sorry for my bad english :)

kardoka commented 1 year ago

Hi, you could try to query the Zigbee smart plug DPS by creating a TuyAPI object for the Zigbee gateway and passing the cid property to the options parameter of TuyAPI.get(), where the cid would be the device ID for the Zigbee smart plug.