-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[hdpowerview] Timing dependency during initialization of shades #12071
Labels
enhancement
An enhancement or new feature for an existing add-on
Comments
jlaur
changed the title
[hdpowerview] Timing during initialization of shades
[hdpowerview] Timing dependency during initialization of shades
Jan 18, 2022
jlaur
added a commit
to jlaur/openhab-addons
that referenced
this issue
Jan 24, 2022
Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]>
jlaur
added a commit
to jlaur/openhab-addons
that referenced
this issue
Jan 25, 2022
Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]>
jlaur
added a commit
to jlaur/openhab-addons
that referenced
this issue
Jan 27, 2022
Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]>
fwolter
pushed a commit
that referenced
this issue
Jan 28, 2022
* Optimize initialization of shades. Fixes #12071 Signed-off-by: Jacob Laursen <[email protected]> * Avoid hashmap reallocation during initialization. Signed-off-by: Jacob Laursen <[email protected]>
NickWaterton
pushed a commit
to NickWaterton/openhab-addons
that referenced
this issue
Apr 27, 2022
* Optimize initialization of shades. Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]> * Avoid hashmap reallocation during initialization. Signed-off-by: Jacob Laursen <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
nemerdaud
pushed a commit
to nemerdaud/openhab-addons
that referenced
this issue
Jun 29, 2022
* Optimize initialization of shades. Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]> * Avoid hashmap reallocation during initialization. Signed-off-by: Jacob Laursen <[email protected]>
andan67
pushed a commit
to andan67/openhab-addons
that referenced
this issue
Nov 6, 2022
* Optimize initialization of shades. Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]> * Avoid hashmap reallocation during initialization. Signed-off-by: Jacob Laursen <[email protected]>
andrasU
pushed a commit
to andrasU/openhab-addons
that referenced
this issue
Nov 12, 2022
* Optimize initialization of shades. Fixes openhab#12071 Signed-off-by: Jacob Laursen <[email protected]> * Avoid hashmap reallocation during initialization. Signed-off-by: Jacob Laursen <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#11707 fixed an issue with shades going ONLINE initially, then into OFFLINE with communication error for a minute. This fix was correct, but not enough.
#12002 changed this behavior to initialize to UNKNOWN instead of ONLINE - c8647e8. This makes sense since we don't know if it's online until we have received data. It could even be unknown to the hub if configured wrongly.
However, this last change revealed a problem that was luring since the beginning. Some shades will go ONLINE before switching state to UNKNOWN, then only back to ONLINE after a minute.
After analyzing this again I found the real issue. Look at this example (id 36321 is blind11):
Timeline of events:
It's possible that the 5 second delay in starting the job was some kind of work-around for this issue. However, with a slow system (Raspberry Pi 3) and many shades (I have 11) this assumption about when handlers would be initialized is false.
Problem is here, in HDPowerViewHubHandler:
This does not consider the status of the shade things, only if it's possible to get the handler.
Solution requirements:
Proposal:
HDPowerViewHubHandler
should fetch data immediately and update shade handlers which are fully initialized.childHandlerInitialized
to initialize shade handlers when they are ready. See https://www.openhab.org/docs/developer/bindings/#handler-initialization-notification.The text was updated successfully, but these errors were encountered: