Comments (16)
I'm not sure what it rules out, if this was a wide spread issue more people would report on it.
When I posted about this I found people who were having the same problem and decided to abandon deconz completely over this. So it might just be that they didn't bother to report.
Do you mean it just happens after a few minutes?
I meant that I expected to have to wait for a day or two, but it happened in a matter of a few hours. Then it started happening once every day or two again.
And in the debug logs of hass the websocket messages continue to arrive but no events inside of hass?
No, when the problem happens the websocket messages do not arrive anymore.
I guess going back to earlier versions of hass to verify if it stops breaking is valuable
I just went back to as early as 0.118, I'll report back if this happens again with this version.
Thanks again for your help on this!
from deconz.
It's possible that I'm starting to celebrate a little too early because less than 24 hours have passed since I've disabled all integrations, but I think there's a good chance that we've finally found the problem!
When I started disabling the integrations one by one, I realized that there's a specific custom integration that I've added in early December (along with some other additions), and right around that time this problem has started happening. I didn't realize that it might have something to do with deconz do I didn't think of this earlier.
I looked into its code and then saw that this integration was using the HA event loop and some stability issues were reported by other users, and that it was fixed in February (but I wasn't aware that there was an update).
As of now I still have all integrations disabled except for deconz and so far so good - no issues. I'll wait for a few more days to see if this has actually been resolved.
Fingers crossed!
from deconz.
When did this start to happen?
How are you running hass and deconz?
Since you can reproduce this perhaps you can try different combinations of hass and deconz to see if you can pin point when this started happening to you?
from deconz.
When did this start to happen?
It's hard to pin-point the exact date, but it started happening about 2 months ago.
How are you running hass and deconz?
I'm running Hassio as a docker (using hassio_supervisor on unraid), and deconz installed on a separate server (rpi). Both are connected by ethernet cable directly to the router, so network issues are probably not the issue, though I'm not completely ruling it out. Though, if it is in fact network dropouts, I'd expect it to try and reconnect automatically.
Since you can reproduce this perhaps you can try different combinations of hass and deconz to see if you can pin point when this started happening to you?
I was thinking of ditching hassio and going strictly HA core as a docker, but I need to sort out a few things before I can make the switch.
I used to run deconz as a docker on the same machine as HA but had USB mapping problems I couldn't resolve, so I'm not sure that would work.
EDIT: I gave it a go anyway and switched deconz to run on docker. Will update soon if the problem returns.
from deconz.
Ok, this happened much sooner than expected- this is happening when deconz is running on docker as well, running on the same host as HA.
I think that pretty much rules out deconz or network connectivity being the culprit.
I guess the next thing I could try is to run home assistant core on docker as well, instead of hassio.
Any other ideas to try?
from deconz.
Ok, this happened much sooner than expected- this is happening when deconz is running on docker as well, running on the same host as HA.
I think that pretty much rules out deconz or network connectivity being the culprit.
I guess the next thing I could try is to run home assistant core on docker as well, instead of hassio.
Any other ideas to try?
I'm not sure what it rules out, if this was a wide spread issue more people would report on it. Do you mean it just happens after a few minutes?
And in the debug logs of hass the websocket messages continue to arrive but no events inside of hass?
I guess going back to earlier versions of hass to verify if it stops breaking is valuable
from deconz.
The main issue is to be able to pin point the issue since it's not happening to me
from deconz.
Ok, so I spent a few days with 0.118 and also 0.117 - both exhibit the same problem.
So I really don't know where to take this from here, if I was at a loss earlier about this problem - now I'm completely clueless.
The only thing I haven't tried is to switch to HA Core on a docker instead of Hassio on a docker, I'll be trying that in the upcoming few days.
Any other ideas/suggestions?
from deconz.
Well what else are you running in your instance? It could be something else affecting the stability of the system.
I did some minor improvements to retry mechanisms of the websocket, I don't know how big of an effect it will have though. Also improved logging a bit It will be a part of the 2021.4 beta scheduled to be released today.
Its really basic code being used, so that it just hangs for you is unexpected.
from deconz.
I have some dockers running on the same host, like: mosquitto, unifi-controller, embyServer, deluge, radarr, sonarr, jackett, bazzaar. That's it, the rest are the hassio dockers, which I'll either be converting to ha core or just use a proper vm.
Thank you so much for taking the time to add retry mechanisms and more logs, I really appreciate it!
I've joined the beta channel, and will upgrade shortly.
from deconz.
Its out since last night ;)
I want it as stable as possible. Thats why I still refactor it and improve testing.
from deconz.
So I've switched over to a hassio VM with the latest beta. I even had to delete the deconz integration and set it up again, so I hoped that might do some voodoo wonders.
But alas, the problem is still happening.
These are the last 4 log lines I see in the debug log. Notice the time gap between the first two and the last two, the problem seems to have occurred at that point.
2021-04-02 16:19:14 DEBUG (MainThread) [pydeconz.websocket] {"attr":{"id":"29","lastannounced":null,"lastseen":"2021-04-02T13:19Z","manufacturername":"Heiman","modelid":"TS0003","name":"Bedroom Main Toggle Left","swversion":null,"type":"On/Off light","uniqueid":"ec:1b:bd:ff:fe:2d:a6:4e-02"},"e":"changed","id":"29","r":"lights","t":"event","uniqueid":"ec:1b:bd:ff:fe:2d:a6:4e-02"}
2021-04-02 16:19:19 DEBUG (MainThread) [pydeconz.websocket] {"attr":{"id":"3","lastannounced":null,"lastseen":"2021-04-02T13:19Z","manufacturername":"Heiman","modelid":"TS0002","name":"Living Room Hallway","swversion":null,"type":"On/Off light","uniqueid":"ec:1b:bd:ff:fe:65:ae:88-02"},"e":"changed","id":"3","r":"lights","t":"event","uniqueid":"ec:1b:bd:ff:fe:65:ae:88-02"}
2021-04-02 16:30:00 DEBUG (MainThread) [pydeconz.gateway] Sending "put" "{'on': True}" to "192.168.1.10 /lights/4/state"
2021-04-02 16:30:00 DEBUG (MainThread) [pydeconz.gateway] HTTP request response: [{'success': {'/lights/4/state/on': True}}]
from deconz.
And no crashes or anything? Could you try out disabling all other integrations to see if that affects anything?
from deconz.
No crashes or any sign of a problem, until I notice that a few of my sensor-based automations have stopped running.
Luckily, most of my smart home is based on zigbee, so I was able to disable all other integrations as well as custom_integrations without too much disruption to see what's causing this. Will report back.
from deconz.
That sounds promising at least! I should copy parts of HASS issue template to make sure that users with issues disable custom integrations before reporting. :)
What integration is it that is problematic?
from deconz.
So after 2 days with no issues, I'm pretty confident that it was indeed that integration!
This is the one: https://github.com/hllhll/HomeAssistant-ekon-local
It's an integration for a climate HVAC system called ekon. If you look at the latest commit from February, you would see where the HA event loop was mentioned.
I'm really sorry for all of the hassle! I literally tried everything I could think of before opening an issue here, and never thought that other integrations could affect one another. However, I've been talking to many people about this issue, and you're the only one who was able to figure it out :) So even though this wasn't the right place - thank you, thank you, and thank you again. 🙏
from deconz.
Related Issues (20)
- Error doing job: Task exception was never retrieved - KeyError: 'e' HOT 4
- Additional lighting effects and control HOT 2
- Expose CLIPGenericFlag sensors from deCONZ as switches to Home Assistant HOT 1
- Support for Philips Hue wall switch module HOT 4
- Deconz integration test issue HOT 1
- Add support for "Range extender" light type HOT 2
- Stuff to clean up from typing HOT 1
- Expose all available attributes of thermostat to HA bundled as device HOT 2
- 'requirements.txt' is missing in Pypi's SDIST since v90 HOT 3
- Feature request: expose more IKEA Starkvind functions to Home Assistant HOT 44
- Support events for Philips Tap Dial Switch HOT 31
- Feature request: expose more Aqara FP1 functions to Home Assistant HOT 5
- Device IP snippets
- Sensors are added to deConz but are not appearing in HA HOT 8
- Styrbar Automations deleted after update to 2023.1 HOT 2
- Smart plug consumption sensor "state is not strictly increasing" in HA HOT 1
- Legrand netatmo thermostat entitie doesn't work
- Unsupported device type ZHAParticulateMatter HOT 5
- Unknown devices for air quality HOT 4
- IKEA badring (Water Leak Sensor) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz.