-
-
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] Corrections to shade database and capabilities #12902
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…wfg/openhab-addons into hdpowerview-shade-database
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll have a closer look tomorrow and also verify if tiltOnClosed()
removal for capabilities 0 has any impact on my Twist shades.
...c/main/java/org/openhab/binding/hdpowerview/internal/database/ShadeCapabilitiesDatabase.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/openhab/binding/hdpowerview/internal/database/ShadeCapabilitiesDatabase.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/openhab/binding/hdpowerview/internal/database/ShadeCapabilitiesDatabase.java
Outdated
Show resolved
Hide resolved
I am pretty sure it does not. My own shades are Twist.. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…wfg/openhab-addons into hdpowerview-shade-database
...c/main/java/org/openhab/binding/hdpowerview/internal/database/ShadeCapabilitiesDatabase.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some doubts, sorry.
I will get back tomorrow.. |
Btw, created new version of documentation based on your changes: |
I think the properties should only show what we actually received live in the shade data. So no "derived" or "overriden" properties. So we might need to modify or rename the properties and/or contents. Let me think about this.. |
So for example a shade would only report a property "tilt detected" if a JSON packet actually contained a posKind 3 entry. And such property might only be actualised only after the user had actually successfully executed a tilt command. Which may be never, if the user never issues such command. Hmm.. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@jlaur upon reflection overnight (I woke up at 4 AM) I have made some changes (committed just now)..
And furthermore, I propose the following change (not yet committed, awaiting your feedback)..
|
I'm totally fine with removing them as they don't provide much value as you also conclude, and could even cause unneeded confusion. |
@andrewfg - do you want to include it in this PR or another one? |
@jlaur I will remove them now :) |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@jlaur the properties have now been hidden :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing... :-)
...view/src/main/java/org/openhab/binding/hdpowerview/internal/HDPowerViewBindingConstants.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
.../src/main/java/org/openhab/binding/hdpowerview/internal/handler/HDPowerViewShadeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these improvements!
@jlaur thanks to you too :) |
…#12902) * [hdpowerview] add type 66 shutters to database * [hdpowerview] shade database updates * [hdpowerview] shade database additions and corrections * [hdpowerview] enhance database features * [hdpowerview] fix capabilities 8, 9 functionality * [hdpowerview] adjust tests to match new capabilities * [hdpowerview] correct method visibility * [hdpowerview] test type 44 * [hdpowerview] remove comment * [hdpowerview] name change * [hdpowerview] remove comments attribute * [hdpowerview] refactor capabilities code * [hdpowerview] 'hard' properties now hidden * [hdpowerview] adopt reviewer suggestion * [hdpowerview] refactor constant names Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…#12902) * [hdpowerview] add type 66 shutters to database * [hdpowerview] shade database updates * [hdpowerview] shade database additions and corrections * [hdpowerview] enhance database features * [hdpowerview] fix capabilities 8, 9 functionality * [hdpowerview] adjust tests to match new capabilities * [hdpowerview] correct method visibility * [hdpowerview] test type 44 * [hdpowerview] remove comment * [hdpowerview] name change * [hdpowerview] remove comments attribute * [hdpowerview] refactor capabilities code * [hdpowerview] 'hard' properties now hidden * [hdpowerview] adopt reviewer suggestion * [hdpowerview] refactor constant names Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…#12902) * [hdpowerview] add type 66 shutters to database * [hdpowerview] shade database updates * [hdpowerview] shade database additions and corrections * [hdpowerview] enhance database features * [hdpowerview] fix capabilities 8, 9 functionality * [hdpowerview] adjust tests to match new capabilities * [hdpowerview] correct method visibility * [hdpowerview] test type 44 * [hdpowerview] remove comment * [hdpowerview] name change * [hdpowerview] remove comments attribute * [hdpowerview] refactor capabilities code * [hdpowerview] 'hard' properties now hidden * [hdpowerview] adopt reviewer suggestion * [hdpowerview] refactor constant names Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
…#12902) * [hdpowerview] add type 66 shutters to database * [hdpowerview] shade database updates * [hdpowerview] shade database additions and corrections * [hdpowerview] enhance database features * [hdpowerview] fix capabilities 8, 9 functionality * [hdpowerview] adjust tests to match new capabilities * [hdpowerview] correct method visibility * [hdpowerview] test type 44 * [hdpowerview] remove comment * [hdpowerview] name change * [hdpowerview] remove comments attribute * [hdpowerview] refactor capabilities code * [hdpowerview] 'hard' properties now hidden * [hdpowerview] adopt reviewer suggestion * [hdpowerview] refactor constant names Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
…#12902) * [hdpowerview] add type 66 shutters to database * [hdpowerview] shade database updates * [hdpowerview] shade database additions and corrections * [hdpowerview] enhance database features * [hdpowerview] fix capabilities 8, 9 functionality * [hdpowerview] adjust tests to match new capabilities * [hdpowerview] correct method visibility * [hdpowerview] test type 44 * [hdpowerview] remove comment * [hdpowerview] name change * [hdpowerview] remove comments attribute * [hdpowerview] refactor capabilities code * [hdpowerview] 'hard' properties now hidden * [hdpowerview] adopt reviewer suggestion * [hdpowerview] refactor constant names Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
In the Home Assistant integration see Issue #16, the developers, (supported by many other kind users), have assembled an extended collection of shade types, and tested the actual capabilities of existing and newly discovered shade types => @kingy444 many thanks for this great effort :)
In this PR I have updated the OpenHAB binding to reflect the learnings from the Home Assistant team.
Specific changes are..
tiltOnClosed()
totiltAnywhere()
tiltAnywhere()
totiltOnClosed()
tiltOnClosed()
support to override the capabilities 0 change aboveFurthermore, I have modified the JUnit tests to test the Shade Position interlocking in accordance with the above functionality changes.
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch