-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix #153 and fix #154 #156
Conversation
…nexpected error processing record: bytearray(b'\xc5\xff')
… every window/door has been closed
First of all thanks for input! Few concerns: To me it seems that now self._active_devices is not anymore active devices but all devices (and device contains active flag, but there is already self._devices for that) which are then updated from self._active_devices_tmp (activations since last update). Could this actually be solved without adding self._active_devices_tmp at all (just removing from self._active_devices and not clearing all triggers)? @mattsaxon do you have comments on this? |
First of all, sorry if the text is incomprehensible. Unfortunately I have to use Google translator. It's quite possible that I didn't fully understand the original code, it's my first attempt at Python. When analyzing the log file, I noticed that the status "Triggered detector (multiple)" made a lot of detailed requests. These looked a bit uncoordinated to me. That's why I reduced these requests first. A sequence would be e.g.: I didn't want to interrupt this sequence with another request. Whether this is necessary or whether there is another way, I cannot say. I don't understand the original code well enough. I couldn't see in the code how to set the state in self._devices. That's why I got stuck at self._active_devices. So don't consider this solution perfect. |
I'll try to answer the questions. "self._cmd_list" is not necessary. |
…sed when every window/door has been closed" This reverts commit b74bc24.
No worries.
I also think that self.update_devices is not needed. I think issue is now with this part that prevents sending "unnecessary" queries and this part I guess this PR fixes this issues via self._force_query which basically tells that if Jablotron sends "multiple detectors triggered" then ignore check in first function (so send always query). I'm just wondering what this multiple triggers detected returns in this case (in detail or after self._send_device_query()). I will be on vacation for next couple of weeks, but we will get this fixed... |
…ported as closed when every window/door has been closed
… only reported as closed when every window/door has been closed" This reverts commit 579cb93.
…orted as closed when every window/door has been closed
I will try to review this in the next couple of days to see if I can remember how all this was intended to work...... I agree the retries logic is a complicated area of the code. Whilst not the heat structured, I do remember that it was solving a real problem I had. |
…only reported as closed when every window/door has been closed" This reverts commit 5ebd019.
…ported as closed when every window/door has been closed
Hi, any update on this? Got the same issue, too and the change here does seem to fix it somehow. Would be nice if you could pick it up again. |
I'm running a locally modified version of 0.32 with this patch applied, but I'd like to be able to update via HACS to get the latest updates. I haven't noticed any issues with this code and I've been running it for some time now. |
I also suggest to release this as 0.35, so all 4 of us can test on the same code base. |
I've been also affected by #153. I've just tested this patch on my system and it definitely did something! Even with multiple windows opened (wireless sensors), any opening/closing is reported almost immediately. But possibly there are some side effects - sometimes the integration will report a window being closed and opened again right afterwards, without me actually touching the window physically. This is how it looks like in the logbook: This can mess up some automations based on these windows being closed/opened. I have these wireless devices connected to my control panel:
I'm also going to open some new issues this integration has when there are multiple active sensors. These has been discussed at length in #163 - in summary, the integration worked for me flawlessly for a few weeks, and then issues started popping up, all causing weird behaviour with multiple open sensors. Seeing other issues, and this PR, looks like it was more unusual that the integration worked for me the first few weeks, rather than it stopped working afterwards. So I'm glad I'm not the only one with these problems, because I love this integration (when it works :)). |
Since this a PR, this should really be opened as a separate issue and assigned to @heifisch |
Alright, did just that: #169 |
@mattsaxon You can do release if you wish |
No description provided.