I’d like to get a sensor from a json file.
It looks like this: {“serial”:“72081182”,“1-0:1.4.0255":313.5,"1-0:1.8.0255”:20774051,“1-0:2.4.0255":0,"1-0:2.8.0255”:9885390.8,“1-0:3.4.0255":0,"1-0:3.8.0255”:17927351.6,“1-0:4.4.0255":311.7,"1-0:4.8.0255”:14096820.5,“1-0:9.4.0255":442.1,"1-0:9.8.0255”:33725815.8,“1-0:10.4.0255":0,"1-0:10.8.0255”:18349480.8,“1-0:13.4.0255":0.709,"1-0:14.4.0255”:50.004,“1-0:21.4.0255":51.7,"1-0:21.8.0255”:8773681.5,“1-0:22.4.0255":0,"1-0:22.8.0255”:7617323.5,“1-0:23.4.0255":0,"1-0:23.8.0255”:4787230.3,“1-0:24.4.0255":185.4,"1-0:24.8.0255”:7118859,“1-0:29.4.0255":192.5,"1-0:29.8.0255”:12111903.2,“1-0:30.4.0255":0,"1-0:30.8.0255”:10951549.8,“1-0:31.4.0255":0.889,"1-0:32.4.0255”:226.43,“1-0:33.4.0255":0.269,"1-0:41.4.0255”:148.8,“1-0:41.8.0255":13384030.7,"1-0:42.4.0255”:0,“1-0:42.8.0255":4529624.5,"1-0:43.4.0255”:37,“1-0:43.8.0255":9740594.6,"1-0:44.4.0255”:0,“1-0:44.8.0255":2528659.4,"1-0:49.4.0255”:153.3,“1-0:49.8.0255":18610600.6,"1-0:50.4.0255”:0,“1-0:50.8.0255":5339401.4,"1-0:51.4.0255”:0.727,“1-0:52.4.0255":226.582,"1-0:53.4.0255”:0.97,“1-0:61.4.0255":113,"1-0:61.8.0255”:9002235.3,“1-0:62.4.0255":0,"1-0:62.8.0255”:8124340.7,“1-0:63.4.0255":0,"1-0:63.8.0255”:5996727.5,“1-0:64.4.0255":163.4,"1-0:64.8.0255”:7046502.2,“1-0:69.4.0255":198.6,"1-0:69.8.0255”:13480265.9,“1-0:70.4.0255":0,"1-0:70.8.0255”:11024414.5,“1-0:71.4.0255":0.889,"1-0:72.4.0255”:226.05,“1-0:73.4.0*255”:0.569,“status”:0}
I try this, but it does not work:
- platform: rest
name: Bcontrol_EM300
resource: http://192.168.0.69/mum-webservice/data.php
method: GET
value_template: “{{ value_json[‘1-0:1.4.0*255’] }}”
In the developer tools it is just an empty field.
Any ideas what I am doing wrong?
EDIT: There are actually * symbols before each 255 value, it just does not paste into the forum.
1 post - 1 participant