-
-
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
[pushover] Migration of Pushover OH1 action to OH3 binding #8586
Conversation
c1826e3
to
b06a000
Compare
403caec
to
8934592
Compare
I finally gave it a test and it works! :-) |
@wborn Sounds good. I am using this port in my OH3 setup for several weeks and I did not see any error. I think the list of available methods is finished. Are there any methods you are missing? If so please tell me and I will add it. From my POV only the README is missing. I will try to finish it soon. The absence of the Another idea I have in my mind is to send the content on an ImageItem ( |
It would already be nice to have the functionality of this PR available in OH3! The only additional parameter I use is the URL. When the builder is moved to a non-internal package I think it can also be used in rule engines which would again provide a nice way to build a message with any parameter. |
8934592
to
4338b33
Compare
I added a |
can someone please give me a .jar file for this?:) |
Jenkins made one for this PR here org.openhab.binding.pushover-3.0.0-SNAPSHOT.jar. |
Thanks for the jar file. I've successfully installed it and created a thing which is now online. |
How You installed it? I got it in addons folder but nothing happened... |
weird thing - I added this file to /etc/openhab/addons/ and nothing happens. |
Just create the thing and you will see the option for Pushover. |
I dont see anything with word "pushover" on creating Thing? |
@matulekpl - on my rPi4 running OH3 M2, it's in the directory /usr/share/openhab/addons. Also, check the permissions on your jar file and make sure to assign openhab:openhab to the owner:group. |
Thanks for that. Now it is working. And now another problem;)
Edit:
|
Try this:
It's based on the example given in the README file. sendAttachmentMessage() |
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
4338b33
to
9a11f2c
Compare
I added a final version for the I did not yet test exposing the message builder. Another thing which came to my mind was the general structure of Things. It is possible to define multiple users or groups for broadcasting messages. Maybe a Bridge -> Thing structure has to be considered. |
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
cb859d1
to
ace20af
Compare
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 also need to try and address the build warnings.
...er/src/main/java/org/openhab/binding/pushover/internal/connection/PushoverAPIConnection.java
Show resolved
Hide resolved
...er/src/main/java/org/openhab/binding/pushover/internal/connection/PushoverAPIConnection.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/openhab/binding/pushover/internal/connection/PushoverMessageBuilder.java
Outdated
Show resolved
Hide resolved
...over/src/main/java/org/openhab/binding/pushover/internal/factory/PushoverHandlerFactory.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.pushover/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/openhab/binding/pushover/internal/connection/PushoverMessageBuilder.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
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.
Other than these last few comments. LGTM
...ushover/src/test/java/org/openhab/binding/pushover/internal/actions/PushoverActionsTest.java
Outdated
Show resolved
Hide resolved
...ushover/src/test/java/org/openhab/binding/pushover/internal/actions/PushoverActionsTest.java
Outdated
Show resolved
Hide resolved
...ushover/src/test/java/org/openhab/binding/pushover/internal/actions/PushoverActionsTest.java
Outdated
Show resolved
Hide resolved
...ushover/src/test/java/org/openhab/binding/pushover/internal/actions/PushoverActionsTest.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.
Spoke too soon. Final comment.
...over/src/main/java/org/openhab/binding/pushover/internal/handler/PushoverAccountHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
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 a lot for the migration 👍 The code looks great too so let's merge it! :-)
@cweitkamp This part of the README looks a bit broken: https://next.openhab.org/addons/bindings/pushover/#thing-actions |
Yes, looks weird. I submitted #9184 to fix it. |
@cweitkamp, thanks for the migration. Works fine with the latest snapshot for me. |
We hide all binding actions in UIs until a solution for openhab/openhab-core#1745 has been implemented. |
Replaces #6798
Signed-off-by: Christoph Weitkamp github@christophweitkamp.de