Group Location
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.

About this query

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This query returns a list of when an item changes its state to a value you specify.
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