Trying to get my solar values from Homewizard Energylink to HA but need some help with the value_template. This is my output from HW:
{“status”: “ok”, “version”: “3.403”, “request”: {“route”: “/get-sensors” }, “response”: {“preset”:0,“time”:“2021-05-16 12:28”,“switches”:[],“uvmeters”:[],“windmeters”:[],“rainmeters”:[],“thermometers”:[],“weatherdisplays”:[], “energymeters”: [], “energylinks”: [{“id”:0,“favorite”:“no”,“name”:“EnergyLink”,“code”:“563206”,“t1”:“solar”,“c1”:800,“t2”:“none”,“c2”:0,“tariff”:1,“s1”:{“po”:2102,“dayTotal”:7.03,“po+”:5067,“po+t”:“11:49”,“po-”:5,“po-t”:“00:01”},“s2”:null,“aggregate”:{“po”:-501,“dayTotal”:-0.41,“po+”:1992,“po+t”:“06:58”,“po-”:-4777,“po-t”:“12:14”},“used”:{“po”:1601,“dayTotal”:6.69,“po+”:3790,“po+t”:“12:07”,“po-”:0,“po-t”:“10:46”},“gas”:{“lastHour”:0.16,“dayTotal”:0.39},“kwhindex”:0.00,“wp”:0}], “heatlinks”: [], “hues”: [], “scenes”: [], “kakusensors”: [], “cameras”: []}}
Anybody could help me with the command to get HA sensors with:
po
daytotal
etc.
Just need the format to get them to work, tried this:
value_template: ‘{{ value_json.response.energylinks[0] }}’