-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting online state #583
Comments
I don't think so. One of the power saving features of Zigbee is it only transmits when changing states, so the gateway has no way of knowing when a plug drops offline. If it's been offline for a while you might see the CID disappear from the list returned by |
But somehow tuya api knows device is offline |
I think you will see that for any device that fails to report in to the Tuya Cloud. I don't know what "offline" duration actually activates that. Or are you talking about something else? |
In that case |
It seems subdev_query doesn't work correctly with my gatewary (lidl/silvercest). If I understand it correctly, it should return list of all devices paired with gateway, but it returns only one or none: gw = tinytuya.Device(config.gatewayid, address=None, local_key=config.localkey, persist=True, version=3.3)
print(gw.subdev_query())
|
Hi.
Is there a way I can locally get zigbee smart plug online/offline state?
I've got internet router, zigbee gateway, home servers etc connected to UPS, what I wanna achieve is getting info if there is power outage. But even if smart plug is disconnected from power source, gateway is returning cached device status.
The text was updated successfully, but these errors were encountered: