Closed naive-HA closed 1 year ago
*I have no idea why the above code snippet fails to display properly: I am using the right indentation...
I am using the below code to query the temperature several times in a row:
Any battery-operated Zigbee device will be sleeping 99% of the time and will probably not be awake to receive any command you send it. You will need to set up attribute reporting and ask the device to send you attribute updates when it joins.
Makes sense. I saw Home Assistant has a refresh button reading the values off the device, although I have not waited long enough to see whether the device goes to sleep and that refresh fails also under Home Assistant I guess I need to understand better the philosophy of zigbee
I am playing with a SONOFF ZIGBEE 3.0 USB Dongle Plus and a temperature sensor by SONOFF I am using the below code to query the temperature several times in a row: 19 times every 20 seconds. All works fine for just 3 times and then I get an error message: Request failed after 5 attempts: <Status.NWK_NO_ROUTE: 205> Can someone share some advice? What am I doing wrong? Do I query too often? Should I do something in between? If I press the pairing button while querying, I get an event notification saying the device left: I understand the device can still communicate with the coordinator, it just stops responding to repeated queries... Any advice is much appreciated
` import asyncio import zhaquirks #how to use quirks? import zigpy.profiles from zigpy_znp.zigbee.application import ControllerApplication
class MainListener: def init(self, application): self.application = application self.ieee = list()
async def main():
ls -l /dev/serial/by-id
if name == "main": import time asyncio.run(main()) `