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
After installing this add-on, you will find configuration options in the openHAB portal under _Settings -> Add-on Settings -> openHAB Cloud Connector_:
43
45
44
46

45
47
46
-
By default both remote access and push notifications are enabled.
48
+
By default, both remote access and push notifications are enabled.
47
49
48
50
### Advanced Configuration
49
51
@@ -105,7 +107,7 @@ The parameters for these actions have the following meaning:
105
107
106
108
-`emailAddress`: String containing the email address the target user is registered with in the cloud instance.
107
109
-`message`: String containing the notification message text.
108
-
-`icon`: String containing the icon name (as described in [Items]({{base}}/configuration/items.html#icons)).
110
+
-`icon`: String containing the icon name (as described in [Items: Icons]({{base}}/configuration/items.html#icons)).
109
111
-`severity`: String containing a description of the severity of the incident.
110
112
111
113
`null` may be used to skip the `icon` or `severity` parameter.
@@ -133,15 +135,15 @@ The additional parameter for these variants have the following meaning:
133
135
-`title`: The title of the notification. Defaults to "openHAB" inside the Android and iOS apps.
134
136
-`onClickAction`: The action to be performed when the user clicks on the notification. Specified using the [action syntax](#action-syntax).
135
137
-`mediaAttachmentUrl`: The URL of the media attachment to be displayed with the notification. This URL must be reachable by the push notification client.
136
-
-`actionButton1`: The action to be performed when the user clicks on the first action button. Specified as `Titel=$action`, where `$action`follow the [action syntax](#action-syntax).
137
-
-`actionButton2`: The action to be performed when the user clicks on the second action button. Specified as `Titel=$action`, where `$action`follow the [action syntax](#action-syntax).
138
-
-`actionButton3`: The action to be performed when the user clicks on the third action button. Specified as `Titel=$action`, where `$action`follow the [action syntax](#action-syntax).
138
+
-`actionButton1`: The action to be performed when the user clicks on the first action button. Specified as `Title=$action`, where `$action`follows the [action syntax](#action-syntax).
139
+
-`actionButton2`: The action to be performed when the user clicks on the second action button. Specified as `Title=$action`, where `$action`follows the [action syntax](#action-syntax).
140
+
-`actionButton3`: The action to be performed when the user clicks on the third action button. Specified as `Title=$action`, where `$action`follows the [action syntax](#action-syntax).
139
141
140
142
These parameters may be skipped by setting them to `null`.
141
143
142
144
#### Action Syntax
143
145
144
-
The action syntax is a string containing the action type and the action payload seperated by a colon.
146
+
The action syntax is a string containing the action type and the action payload separated by a colon.
145
147
146
148
There are two types of actions available:
147
149
@@ -167,7 +169,7 @@ Notify the openHAB Cloud user with email address [email protected]_ that the front d
actions.notificationBuilder('Apartment window was opened!').withIcon('window').withSeverity('HIGH').send();
232
+
actions.notificationBuilder('Apartment window was opened!')
233
+
.withIcon('window')
234
+
.withSeverity('HIGH')
235
+
.send();
214
236
}).build('Open Window Notification');
215
237
```
216
238
217
239
:::
218
240
241
+
::: tab JRuby
242
+
243
+
Broadcast notification is performed by calling [notify](https://openhab.github.io/openhab-jruby/main/OpenHAB/Core/Actions.html#notify-class_method) without providing an email address.
244
+
245
+
```ruby
246
+
rule "Open Window Notification"do
247
+
changed Apartment_Window, to:OPEN
248
+
run do
249
+
notify("Apartment window was opened!", icon:"window", severity:"HIGH")
250
+
end
251
+
end
252
+
```
253
+
254
+
:::
255
+
219
256
::::
220
257
221
-
Notify all openHAB Cloud users that motion was detected, attach a camera snapshot and add action button to turn on the light:
258
+
Notify all openHAB Cloud users that motion was detected, attach a camera snapshot and add an action button to turn on the light:
0 commit comments