Hi, I tried to retrieve the information from my Cemm. When I read I get the next: (example)
{
“data”: {
“t1”:[1670866095000,1089.21],
“t2”:[1670866095000,854.79],
“t3”:[1670866095000,1219.97],
“t4”:[1670866095000,2697.32],
“electric_power”:[1670866095000,1076],
“rate”:[1670866095000,2],
“gas”:[0,0]
},
“totals”:{
“electric_energy”:[1670866106000,-130.76],
“electric_energy_high”:[1670866106000,-1842.53],
“t1”:[1670866106000,1089.21],
“t2”:[1670866106000,854.79],
“t3”:[1670866106000,1219.97],
“t4”:[1670866106000,2697.32],
“gas”:[1670866106000,0]
}
}
I try to make graphs from this information
My configuration file currently is:
rest:
- authentication: basic
resource: “http://x.x.x.x/open-api/v1/p1/realtime/”
sensor:- name: “t1”
json_attributes_path: $.data.t1[1] - name: “t2”
json_attributes_path: $.data.t2.[1] - name: “t3”
json_attributes_path: $.data.t3.[1] - name: “t4”
json_attributes_path: $.data.t4.[1]
- name: “t1”
Then I have an entity with the next attributes
t1: 1670878578000, 1090.47
t2: 1670878578000, 858.08
t3: 1670878578000, 1219.97
t4: 1670878578000, 2697.32
friendly_name: cemm
I am not succesfull in selecting de second value only in the list.
The list attribus list must be:
t1: 1090.47
t2: 858.08
t3: 1219.97
t4: 2697.32
friendly_name: cemm
After then I hope I can see the graphs.
Does anybody know how to do?