Hi,
i have a gateway (Mediola V5) and i can send http requests to get status infomations etc… via
a rest sensor.
But i get this as a response, wich is not a json object:
‘{XC_SUC}[{“type”:“HMFHT”,“adr”:“6BE31201”,“state”:“0:A:00D2:00E4:00:00”},{“type”:“EVENT”,“adr”:“01”,“state”:“1”}]’
So i tried in my value_template: {% set response = value[8:] %}
and i get:
‘[
{
“type”: “HMFHT”,
“adr”: “6BE31201”,
“state”: “0:A:00D2:00E6:00:00”
},
{
“type”: “EVENT”,
“adr”: “01”,
“state”: “1”
}
]’
but it is a string an i need it as a json object, i tried all kind of stuff in the template editor like:
response_json… json.dumps(response)… json.data(response)…
but i cant get it covertet into a json object.
Can some help me?
Thanks