Hi!
My first post in the forum, but I’ve been using Home Assistant for a while now.
I’m trying to parse some JSON data from my Worx Landroid with the RESTful Sensor. I’m able to connect to the endpoint and all that, but when the request is done it only gets the eighth element from the list. Without me specifying any template value.
The config is
- platform: rest
resource: http://192.168.1.227/jsondata.cgi
username: admin
password: 0000
authentication: basic
name: Glenn
The response normally looks like this
{
"CntProg":100,
"lingua":10,
"ore_funz":[75,75,75,75,75,0,0],
"ora_on":[9,9,9,9,9,0,0],
"min_on":[0,0,0,0,0,0,0],
"allarmi":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"settaggi":[0,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"mac":[xxx,xxx,xxx,xxx,xxx,xxx],
"time_format":1,
"date_format":2,
"rit_pioggia":180,
...
But the sensor only gets:
Entity State Attributes
sensor.glenn {"mac":[xxx,xxx,xxx,xxx,xxx,xxx]} friendly_name: Glenn
Is there anything wrong in my config? Is there any way for me to debug better to see where the data gets lost? It would be nice to see the raw response of the request to the endpoint.
A few other questions related to this sensor: How frequent will it update? Also, it seems that if the endpoint is offline when I restart home assistant the sensor won’t show up when it comes online again. Should it be like that?
I hope someone can help me with this!
/Erik