jasonacox / tinytuya

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

Is there any way to obtain the online and offline status of gateway sub devices? #307

Closed 13878731379 closed 1 year ago

uzlonewolf commented 1 year ago

For v3.3 devices: if the gateway was recently rebooted there's a good chance it'll return "json obj data unvalid" when you try to .status() the sub-device.

For v3.4 devices: I'm working on a PR which adds gw.subdev_query() which will return it.

For all: you can use the cloud to get it. I'm not sure offhand which API it is.

13878731379 commented 1 year ago

I'll give it a try