Explore Plans
Mobile menu Close menu
openHABopenHAB

History of item state changes

This query returns a list of when an item changes its state to a value you specify.

Developer info

API endpoint slug
openhab.history_of_item_state_changes
Runtime method
performQuery("openhab.history_of_item_state_changes")

Query fields

Item Dropdown list

Label
Which item?
Slug
item
Required
true
Can have default value
false

Status Text input > Other

Label
Changes to
Slug
status
Required
true
Can have default value
true

Ingredients

ItemName of the item.

Slug
item
Filter code
Openhab.historyOfItemStateChanges.Item
Type
String
Example
DemoSwitch

StatusStatus of the item.

Slug
status
Filter code
Openhab.historyOfItemStateChanges.Status
Type
String
Example
ON

Created atDate and time event was created.

Slug
created_at
Filter code
Openhab.historyOfItemStateChanges.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00