Properties for sitemap

Dear all,

I imagine whether it’s possible to display properties of a Thing/Bridge which are displayed within PaperUI somehow also in a Sitemap used e.g. with iPhone App.

Example from a Shelly Thing discovered by Shelly Binding
“properties”: {
“deviceType”: “”,
“statsTimeoutsRecovered”: “0”,
“modelId”: “SHPLG-S”,
“updateNewVersion”: “20200309-104506/v1.6.0@43056d58”,
“networkIP”: “254.254.254.1”,
“statsTimeoutErrors”: “0”,
“numberMeters”: “1”,
“devHwRev”: “prod-190815”,
“serviceName”: “shellyplug-s-6a1234”,
“numberRollers”: “0”,
“hardwareBatch”: “1”,
“wifiNetwork”: “WhoamI”,
“macAddress”: “xxxxxxxxxxxx”,
“updateCurrentVersion”: “20200309-104506/v1.6.0@43056d58”,
“deviceMode”: “”,
“numberRelays”: “1”,
“vendor”: “Shelly”,
“updateStatus”: “idle”,
“firmwareVersion”: “v1.6.0/20200309-104506(43056d58)”,
“updateAvailable”: “no”
},

Regards,
Joerg

No.
Items are for display in sitemap.

Yes, thought there is a way to get value from property into an item :wink:

You can access REST API from rules.

1 Like

I’ve read through documentation as was able to create a http or curl link, but I don’t make it to get this from URL :-/ nor how to extract a specific property into an item :frowning:

Would appreciate if you have kind of sample I can adopt??

The REST API docs are an installable option for openHAB.
Then appears as an option on your UI landing page, you use it interactively for try-it-and-see.
Once you’ve worked out the URL, you can analyze the returned JSON in your rule, perhaps using the JSONPATH installable service.

You don’t generally need to do any of this in normal home automation use, so it’s not particularly easy.

Yes I do have Rest API installed, used JSONPATH a bit while stearing my mower with it until someone created a lovely binding. Currently I stuck to get the http string (which I’ve got from Rest API) called from a simple rule to have the JSON in an item to use it further :-/

I’m running all this on a Windows System, and currently try to get JSON information wih provided http-String I have got from Rest API from requested UID.

1 Like