mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[jsscripting] Upgrade to openhab-js 5.16.0 (#19719)
Changelog: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#5160 Signed-off-by: Florian Hotze <dev@florianhotze.com>
This commit is contained in:
@@ -146,11 +146,14 @@ This table gives an overview over the `event` object:
|
||||
| `triggerType` | all except `PWMTrigger`, `PIDTrigger` | Type of trigger that triggered event | N/A | |
|
||||
| `eventName` | all | simple Java class name of the triggering event, e.g. `ExecutionEvent` | N/A | `type` |
|
||||
| `eventClass` | all | full Java class name of the triggering event, e.g. `org.openhab.core.automation.events.ExecutionEvent` | N/A | |
|
||||
| `eventSource` | all | structured source identifier of the sender of the event, not all senders will set the source | N/A | |
|
||||
| `module` | all | (user-defined or auto-generated) name of trigger | N/A | |
|
||||
| `raw` | all | Original contents of the event including data passed from a calling rule | N/A | |
|
||||
|
||||
All properties are typeof `string` except for properties contained by `raw` which are unmodified from the original types.
|
||||
|
||||
To learn more about the structure of the event source, refer to the [Event Bus](https://www.openhab.org/docs/developer/utils/events.html#the-core-events) documentation.
|
||||
|
||||
Please note that when using `GenericEventTrigger`, the available properties depend on the chosen event types.
|
||||
It is not possible for the openhab-js library to provide type conversions for all properties of all openHAB events, as those are too many.
|
||||
In case the event object does not provide type-conversed properties for your chosen event type, use the `payload` property to gain access to the event's (Java data type) payload.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<properties>
|
||||
<!-- Remember to check if the fix https://github.com/openhab/openhab-core/pull/4437 still works when upgrading GraalJS -->
|
||||
<node.version>v22.17.1</node.version>
|
||||
<ohjs.version>openhab@5.15.0</ohjs.version>
|
||||
<ohjs.version>openhab@5.16.0</ohjs.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
Reference in New Issue
Block a user