-
-
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
[paradoxalarm] Implement detailed partition state #14618
[paradoxalarm] Implement detailed partition state #14618
Conversation
56dfdaf
to
8dbe56b
Compare
Hi @fwolter, Thanks for reviewing and merging my other PR. I hoped that when the one is merged into main most commits will disappear but they stayed in the PR. Basically this PR is on top of PR #14557 and the changes start with commit 2249249 Best regards, |
Of course, you have to rebase on current main branch, so that only new code is reviewed. |
7ed0181
to
ee5ba56
Compare
OK. I rebased interactively and skipped the commits that were in the other PR. I guess that's the right thing to do... |
I probably missed your rebase. Your PR is now very small., I am going to review it. |
Great. Looking forward it :) |
bundles/org.openhab.binding.paradoxalarm/src/main/resources/OH-INF/thing/partition.xml
Show resolved
Hide resolved
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix issue * Additional logging * Change detailed state type id and description Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
ee5ba56
to
938e32e
Compare
.../org.openhab.binding.paradoxalarm/src/main/resources/OH-INF/update/partition_type_update.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Hi, I did the requested changes by adding the property to the partition.xml. Had this issue before that some channels were not available in the UI when hot-replacing the addon but after a full OH restart, everything was OK. Not sure if these instructions to the framework address these issues... |
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.
Code LGTM, thank you
The new thing upgrade feature only concerns things added using Main UI, that is stored in JSON DB. These things were never updated, even after a server restart. With this new OH 4 feature, the thing is automatically upgraded when the new binding version starts (if upgrade instructions are provided by the developer).
Yes. I am not sure something special is logged. Your upgrade instructions look good to me but ideally it would be better that you first test that it works before I merge. Can you do that ? Here is the scenario:
|
Yep. Thanks for the instructions. I did that. It works 😄 |
Excellent |
* Implement partition detailed state --------- Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Implement partition detailed state --------- Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> Signed-off-by: querdenker2k <querdenker2k@gmx.de>
* Implement partition detailed state --------- Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Hi,
The idea in this PR is when a partition is in "special" state (armed in stay or armed in no entry), to calculate the value and show it as a separate, detailed channel. Some users want this more detailed state for certain calculations/rules.
The armed in stay is still an "armed" state. For backwards compatibility we will keep the regular calculated, more simple state channel and we will introduce a new channel, called detailed state where a calculated effort will return the particular state.
In the backend these values are represented by a certain bits set and usually if you trigger Arm in stay, the bit for Armed and for Armed in stay are set to 1.
If no particular special state is set on the system, the detailed state will act as our old, overall state.
Depends on #14557
Closes #14608
Cheers,
Konstantin