Hey people!
Is there any way of accessing the timestamp of an ItemStateChangedEvent via REST API?
Thanks for any advice,
Justin
Hey people!
Is there any way of accessing the timestamp of an ItemStateChangedEvent via REST API?
Thanks for any advice,
Justin
I use the item WolfgangsDevice_LastSeen. It contains the timestamp when my phone last was seen to be online ( the timestamp is being updated as long as it is online ).
As this is a normal item it can be queried via the REST API
curl -X 'GET' \
'http://pi:8080/rest/items/WolfgangsDevice_LastSeen?recursive=true' \
-H 'accept: application/json' \
-H 'Authorization: Bearer 'xxxxxxxxxxxxx...xxxxxxxxxxxxx'
Returned result then looks like:
{"link":"http://pi:8080/rest/items/WolfgangsDevice_LastSeen","state":"2022-03-27T16:15:28.438+0200","stateDescription":{"readOnly":true,"options":[]},"editable":false,"type":"DateTime","name":"WolfgangsDevice_LastSeen","label":"Last Seen","tags":["Point"],"groupNames":["WolfgangsDevice"]}