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
When `trig1` fires, inputs.get("module") is `"trig1"`.
595
+
The table below `core.ItemStateChangeTrigger` shows that five keys and values will be inserted into `inputs`.
596
+
The values are inserted twice: once with the trigger id prefix followed by dot in the key, once without.
597
+
That is, `inputs` will have eleven keys and six values: `inputs.get("module")`, `inputs.get("oldState") == inputs.get("trig1.oldState")`, `inputs.get("newState") == inputs.get("trig1.newState")`, `inputs.get("lastStateUpdate") == inputs.get("trig1.lastStateUpdate")`, `inputs.get("lastStateChange") == inputs.get("trig1.lastStateChange")` and `inputs.get("event") == inputs.get("trig1.event")`.
|`lastStateUpdate`| The time of the previous state update [`java.time.ZonedDateTime`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZonedDateTime.html) - since openHAB 5.0 |
654
+
583
655
:::
584
656
585
657
::: details core.ItemStateChangeTrigger
@@ -590,6 +662,16 @@ Read the JSR223 language specific documentation for examples of using these `Tri
590
662
|`previousState`| The previous `State` (optional) |
|`oldState`| Old [`org.openhab.core.types.State`](https://www.openhab.org/javadoc/latest/org/openhab/core/types/state)|
670
+
|`newState`| The new item [`org.openhab.core.types.State`](https://www.openhab.org/javadoc/latest/org/openhab/core/types/state)|
671
+
|`lastStateUpdate`| The time of the previous state update [`java.time.ZonedDateTime`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZonedDateTime.html) - since openHAB 5.0 |
672
+
|`lastStateChange`| The time of the previous state change [`java.time.ZonedDateTime`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZonedDateTime.html) - since openHAB 5.0 |
0 commit comments