openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.56k forks source link

Support notifications via Gotify #13384

Open PanderMusubi opened 1 year ago

PanderMusubi commented 1 year ago

Please, provide notifications via Gotify. This is a notification service comparable to PushBullet but is 100% FOSS.

Java bindings and other bindings can be found at:

Approach can follow what is offered via https://github.com/openhab/openhab-addons/tree/main/bundles/org.openhab.binding.pushbullet

Do not that the priority in Gotify is important. Set it to 8 in order to have the app actually notify the user.

Implementing this will give users more FOSS alternatives for using notifications on mobile devices.

Your Environment

n/a, new feature

PanderMusubi commented 1 year ago

If needed, I can give developers access to a Gotify server to test against.

PanderMusubi commented 7 months ago

A Gotify server can be tested/used with:

curl -m 3 -s -X POST "http://hostname.domainname:PORT/message?token=1234567890abcde" \
-F "priority=8" -F "title=Test message" -F "message=🟢 This is a test message."

Important to note is the time out of three seconds with -m otherwise the request can take very long to time out, which might cause other problems.

Skinah commented 5 months ago

Someone just posted a how to do this in the openHAB solutions part of the forum.

https://community.openhab.org/t/gotify-push-messaging-solved/153393

Maybe list reasons why the method in the forum does not cover what you would like, and I may take a look at a binding as it would be pretty quick to make one just need to weigh up the time VS what would be gained.