-
Notifications
You must be signed in to change notification settings - Fork 6
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
[BUG] unable to fetch DeviceMotion #151
Comments
🙈 This is the dingz without a |
no this is a dingz with PIR 😎. But remember this is still the preproduction hardware as I was a beta tester… not sure if you can or are willing to support in the future. Maybe I’ll better ask the dingz-guys for a replacement...
…On 30 Nov 2020, 15:56 +0100, Johann Richard ***@***.***>, wrote:
🙈 This is the dingz without a PIR that's throwing the error, right? If so, then this is probably the reason (although this shouldn't happen as there should be no Motion Service at all on this one and hence the poller not be running ...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
🙈 Right now I'm still willing to support. 🤣 It's working here though, so I wonder whether you could let me know the following (sorry, lost a bit track of what dingz / FW combinations you have):
|
Thank you for your patience :)
Front
Firmware: 1.2.7
Web Interface: 2.3.21
Hardware: 1.0
Model: DZ1F-PIR
Base
Bootloader: 1.0.0
Firmware: 1.1.21
Hardware 1.1.1
Model: empty
Serial Number: empty
DIP Switch 1
2x Light
DIP Switch 2
2x Light
JSON: Output
~~~
{"success":true,"motion”:false}
~~~
…On 30 Nov 2020, 16:01 +0100, Johann Richard ***@***.***>, wrote:
> Maybe I’ll better ask the dingz-guys for a replacement...
🙈
Right now I'm still willing to support. 🤣 It's working here though, so I wonder whether you could let me know the following (sorry, lost a bit track of what dingz / FW combinations you have):
• dingz FW version (1.1.x or 1.2.x)
• what's happening if you open http://192.168.227.12/api/v1/motion? (Error or JSON, and if JSON, what JSON)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
When starting the plugin, it's quite common that the dingz have an
|
The state changes intermittently between ALIVE and DEAD. Therefore I also see Error -> unable to fetch DeviceMotion data DeviceNotReachableError long after plugin restart.
…On 30 Nov 2020, 16:43 +0100, Johann Richard ***@***.***>, wrote:
When starting the plugin, it's quite common that the dingz have an unreachable state until the first one or two requests are made. After that they should quickly switch to ALIVE though. So, one question:
• Do you still get the same error (i.e. with the Error -> unable to fetch DeviceMotion data DeviceNotReachableError or just the surrounding timeouts without that specific error on DeviceMotion?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Since it's only that one but consistently it could be that the 3s timeout is just too short when the prototype dingz is read out (we send ~ 5 requests following each other every 5s. If the dingz gets saturated then maybe the additional motion polling which happens in parallel is just too much. I will work on a potential workaround (increase timeout/delay between polls). In the meantime you could consider switching to |
Based on your feedback and the one from @qx54 in #152, I've implemented a new feature which allows you to set the update interval in the configuration. As I've noted in #152, the problem seems to be prevalent for PIR motion sensors and your prototype dingz (which proves to be a useful source of edge cases, so is very useful. 😁 🙈 ) I've pushed a nightly to I suspect that despite the cleaner code, the change I made re: the mutex (see #152) actually increased the load on the devices as they see more requests coming in. Not exactly what was the intention. In any case, you might want to switch from |
Just installed [email protected] and switched to polling. Now getting a slightly different error:
|
The first one or two requests to the dingz currently timeout (I suspect that there are also just one too many parallel requests made). My dingz always recover with the second |
What about adding an initial delay to circumvent errors after startup? |
- switch default behaviour of motion sensors to `PUSH` - should help with #151, reduce the load on the devices
Describe the bug
Since installing 2.0.x I get following errors in the log
To Reproduce
Install 2.0.4 and check log
The text was updated successfully, but these errors were encountered: