iobroker.iot 3.5.2 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/admin/assets/{index-Df2NS929.js → index-DCbOB3g_.js} +79 -79
- package/admin/index_m.html +1 -1
- package/admin/rules/assets/{index-BwcOGyWI.js → index-BRdNnGcA.js} +66 -66
- package/admin/rules/customRuleBlocks.js +2 -2
- package/io-package.json +14 -14
- package/lib/visuApp.js +13 -3
- package/main.js +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -311,7 +311,7 @@ The following types are supported:
|
|
|
311
311
|
|
|
312
312
|
## Send messages to app
|
|
313
313
|
|
|
314
|
-
From version 1.15.x you can send messages to `ioBroker
|
|
314
|
+
From version 1.15.x you can send messages to `ioBroker Visu` application ([Android](https://play.google.com/store/apps/details?id=com.iobroker.visu) and [iOS](https://apps.apple.com/de/app/iobroker-visu/id1673095774)).
|
|
315
315
|
For that, you need to write the following states:
|
|
316
316
|
|
|
317
317
|
```js
|
|
@@ -320,13 +320,23 @@ setState('iot.0.app.priority', 'normal'); // optional. Priority: 'high' or 'norm
|
|
|
320
320
|
setState('iot.0.app.title', 'ioBroker'); // optional. Default "ioBroker"
|
|
321
321
|
setState('iot.0.app.message', 'Message text'); // important, that ack=false (default)
|
|
322
322
|
|
|
323
|
-
// or just one state
|
|
324
|
-
// only
|
|
323
|
+
// or just one state (this also allows to use payload -> `actions`, `devices` and `link` property)
|
|
324
|
+
// only message is mandatory. All other are optional
|
|
325
|
+
// Note that, if you are using `actions`or `devices`, the app needs to handle the notification in the background before showing it
|
|
326
|
+
// in some scenarios, e.g. low power or spamming to many notifications the OS may decide to not show the notification at all
|
|
325
327
|
setState('iot.0.app.message', JSON.stringify({
|
|
326
328
|
message: 'Message text',
|
|
327
329
|
title: 'ioBroker',
|
|
328
330
|
expire: 60,
|
|
329
|
-
priority: 'normal'
|
|
331
|
+
priority: 'normal',
|
|
332
|
+
payload: {
|
|
333
|
+
devices: JSON.stringify(['iPhone von Maelle', 'iPhone von Max']), // devices to send the message to, if not given send to all - requires Visu App 1.4.0
|
|
334
|
+
openUrl: 'https://www.iobroker.net', // opens a link when clicking on the notification
|
|
335
|
+
actions: JSON.stringify([ // actions to respond to the notification - requires Visu App 1.4.0
|
|
336
|
+
{ buttonTitle: 'Yes', identifier: 'home:yes' }, // The app will display the button title and on clicking the identifier will be set to the state `iot.0.app.devices.<deviceName>.actionResponse`
|
|
337
|
+
{ buttonTitle: 'No', identifier: 'home:no' }
|
|
338
|
+
])
|
|
339
|
+
}
|
|
330
340
|
})); // important, that ack=false (default)
|
|
331
341
|
```
|
|
332
342
|
|
|
@@ -339,8 +349,9 @@ setState('iot.0.app.message', JSON.stringify({
|
|
|
339
349
|
Placeholder for the next version (at the beginning of the line):
|
|
340
350
|
### **WORK IN PROGRESS**
|
|
341
351
|
-->
|
|
352
|
+
### 3.6.0 (2025-07-02)
|
|
353
|
+
- (@foxriver76) new features for upcoming Visu App 1.4.0
|
|
342
354
|
|
|
343
|
-
## Changelog
|
|
344
355
|
### 3.5.2 (2025-06-04)
|
|
345
356
|
- (@GermanBluefox) Corrected error in back-end
|
|
346
357
|
|