Integration with UPONOR thruu Rest API

Hi,

I am having difficulties integrating Uponor REST api with Hassio. I have done som progress but now I do not know how to proceed.

I have created the following RESTful Sensor:

  • platform: rest
    name: Uponor
    resource: http://192.168.76.197/api
    method: POST
    payload: ‘{“jsonrpc”:“2.0”,
    “id”:8,
    “method”:“read”,
    “params”:{
    “objects”:[
    {“id”:“105”,“properties”:{“85”:{}}},
    {“id”:“109”,“properties”:{“85”:{}}}
    ]}}’

This gives me a sensor i can see in my developer tools and I can see that I also get the values that i am after.

{“jsonrpc”:“2.0”,“id”:8,“result”:{“objects”:[{“id”:“105”,“properties”:{“85”:{“value”:23.6}}},{“id”:“109”,“properties”:{“85”:{“value”:“Vardagsrum”}}}]}}

But the values are inside a JSON and I need to parse out the two values (“value”:23.6 & “value”:“Vardagsrum”) I see inside but I do not know how to do it.

Thanks for all the help in advanced.

i have some advanced

Glad to hear! Do you have something you could share so I could test it out?