-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[paradoxalarm] Implement zone bypass command and additional zone states #14557
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
Conversation
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Added the checksum functionality * Added more examples to the test Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Refactor the common logic * Extract interface Command * CHange the Response class to use Switch/case 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>
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>
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>
* Fix checksum creation * Fix the parse and confirmation of the response Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* A silly copy/paste mistake Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
As per community discussion this makes more sense and will be more intuitive - when something is true -> make it ON, when it's false -> make it OFF. OPEN and CLOSED are not fitting so well here... Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* For both zone and partitions Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
|
I wonder if someone could have a look at this PR? It looks like a lot of changes but not really... Just one feature added and some refactoring to fit better the new feature... |
|
@openhab/add-ons-maintainers Could someone have a look at the PR? I'd like to merge it sooner or later and it's pending for a lot of time. Also there is subsequent PR that's waiting a review together with this one and optimally if these two get merged, I would like to invest a little bit to remove all (as much as possible) of the warnings. Thanks in advance, |
fwolter
left a comment
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.
You could run mvn org.openhab.core.tools:i18n-maven-plugin:3.4.0:generate-default-translations to update the i18n properties file to make the newly added channels available in Crowdin for translation.
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
c8372d8 to
980f27f
Compare
|
@fwolter Hi Fabian, I wonder if you could continue with the review so we can merge this PR? I already did the requested change a few weeks back... |
fwolter
left a comment
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.
LGTM
|
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/paradox-evo-alarm-binding-using-ip150/148931/14 |
…es (openhab#14557) * Reduce warnings 1 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * 2 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * 3 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Initial files and package refactoring Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Implemented zone commands without checksum calculation Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * More stuff * Added the checksum functionality * Added more examples to the test Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Implement ZoneCommand and necessary classes * Refactor the common logic * Extract interface Command * CHange the Response class to use Switch/case Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fully implement the test for creating zone command payload Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix build / add headers and author to the new files Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add command handling to the zone handler Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add command channel to the Zone thing Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Research of zone states and some TODO notes Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Retrieval of zone special states from the panel Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix build Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add the new channels to the metadata file Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new channels to zone handler Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix indexing in memory map and add more logging Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Refactoring and potential NPE access fixes Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new property "label" to the discovered zones and partitions Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix zone command issues * Fix checksum creation * Fix the parse and confirmation of the response Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add the new channels to the README.md Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fixed issue with not updating new channels in the zones * A silly copy/paste mistake Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Change the type of the new channels from contact to switch As per community discussion this makes more sense and will be more intuitive - when something is true -> make it ON, when it's false -> make it OFF. OPEN and CLOSED are not fitting so well here... Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix issue that the channel label is always NULL * For both zone and partitions Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new types and channels to the i18n Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> --------- Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
…es (openhab#14557) * Reduce warnings 1 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * 2 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * 3 Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Initial files and package refactoring Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Implemented zone commands without checksum calculation Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * More stuff * Added the checksum functionality * Added more examples to the test Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Implement ZoneCommand and necessary classes * Refactor the common logic * Extract interface Command * CHange the Response class to use Switch/case Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fully implement the test for creating zone command payload Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix build / add headers and author to the new files Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add command handling to the zone handler Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add command channel to the Zone thing Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Research of zone states and some TODO notes Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Retrieval of zone special states from the panel Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix build Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add the new channels to the metadata file Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new channels to zone handler Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix indexing in memory map and add more logging Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Refactoring and potential NPE access fixes Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new property "label" to the discovered zones and partitions Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix zone command issues * Fix checksum creation * Fix the parse and confirmation of the response Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add the new channels to the README.md Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fixed issue with not updating new channels in the zones * A silly copy/paste mistake Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Change the type of the new channels from contact to switch As per community discussion this makes more sense and will be more intuitive - when something is true -> make it ON, when it's false -> make it OFF. OPEN and CLOSED are not fitting so well here... Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Fix issue that the channel label is always NULL * For both zone and partitions Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> * Add new types and channels to the i18n Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> --------- Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
It's a request from a member of the community to implement a zone bypass functionality from within the OpenHAB. Has been tested by me and the customer. Additionally I enhanced a bit the unit tests.