You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| hostname | text |Base URL of the ntfy server|[https://ntfy.sh](https://ntfy.sh)| yes | no |
25
+
| username | text | Optional username for basic auth | N/A | no | no |
26
+
| password | text | Optional password for basic auth | N/A | no | no |
27
+
| connectionTimeout | integer | WebSocket / HTTP connection timeout ms | 60000 | no | yes |
28
28
29
29
Configure the `ntfyConnection` as a bridge to hold shared server and authentication settings. Topic Things reference the bridge to reuse these settings.
30
30
@@ -38,10 +38,11 @@ Configure the `ntfyConnection` as a bridge to hold shared server and authenticat
| withCopyAction | (String label, Boolean clearNotification, String value) | Add an action that copies text to clipboard on the client. |[actions](https://docs.ntfy.sh/publish/#copy-to-clipboard)|
104
-
| withHttpAction | (String label, Boolean clearNotification, String url, String method, String headers, String body) | Add an HTTP action with optional method, headers and body. |[actions](https://docs.ntfy.sh/publish/#send-http-request)|
105
-
| withBroadcastAction | (String label, Boolean clearNotification, String params) | Add a broadcast action to trigger local apps/handlers. |[actions](https://docs.ntfy.sh/publish/#send-android-broadcast)|
106
-
| withDelay | (String delay) | Assign a delay. |[delay](https://docs.ntfy.sh/publish/#scheduled-delivery)|
107
-
| withSequenceId | (String sequenceId) | Assign a sequence id for later reference (useful for delete/update). |[sequence id](https://docs.ntfy.sh/publish/#updating-deleting-notifications)|
108
-
| send | () | Send the built message; returns a message ID string. |[publish](https://ntfy.sh/docs/publish/)|
109
-
| send | (String file, String filename, String sequenceId) | Send a file; returns a message ID string. |[publish_local_file](https://docs.ntfy.sh/publish/#attach-local-file)|
110
-
| delete | (String sequenceId) | Delete a message previously sent with the given sequence id. |[delete](https://ntfy.sh/docs/publish/#deleting-notifications)|
| withCopyAction | (String label, Boolean clearNotification, String value) | Add an action that copies text to clipboard on the client. |[actions](https://docs.ntfy.sh/publish/#copy-to-clipboard)|
106
+
| withHttpAction | (String label, Boolean clearNotification, String url, String method, String headers, String body) | Add an HTTP action with optional method, headers and body. |[actions](https://docs.ntfy.sh/publish/#send-http-request)|
107
+
| withBroadcastAction | (String label, Boolean clearNotification, String params) | Add a broadcast action to trigger local apps/handlers. |[actions](https://docs.ntfy.sh/publish/#send-android-broadcast)|
108
+
| withDelay | (String delay) | Assign a delay. |[delay](https://docs.ntfy.sh/publish/#scheduled-delivery)|
109
+
| withSequenceId | (String sequenceId) | Assign a sequence id for later reference (useful for delete/update). |[sequence id](https://docs.ntfy.sh/publish/#updating-deleting-notifications)|
110
+
| send | () | Send the built message; returns a message ID string. |[publish](https://ntfy.sh/docs/publish/)|
111
+
| send | (String file, String filename, String sequenceId) | Send a file; returns a message ID string. |[publish_local_file](https://docs.ntfy.sh/publish/#attach-local-file)|
112
+
| delete | (String sequenceId) | Delete a message previously sent with the given sequence id. |[delete](https://ntfy.sh/docs/publish/#deleting-notifications)|
111
113
112
114
For more information about ntfy features and the notification format, see the ntfy project documentation: [https://ntfy.sh/docs/](https://ntfy.sh/docs/)
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyBindingConstants.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,11 @@ public class NtfyBindingConstants {
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyConnectionConfiguration.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
publicclassNtfyConnectionConfiguration {
28
28
29
29
/**
30
-
* Hostname of the ntfy server, e.g. "ntfy.sh"
30
+
* Hostname of the ntfy server, e.g. "https://ntfy.sh"
31
31
*/
32
32
publicStringhostname = "";
33
33
@@ -54,6 +54,8 @@ public class NtfyConnectionConfiguration {
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.ntfy/src/main/java/org/openhab/binding/ntfy/internal/NtfyConnectionHandler.java
0 commit comments