Hi,
I am struggling to parse a specific value from a URL output via value_template. Any support is appreciated. The content I get via opening a URL is:
{"outsideTemp":4.4,"hasOutsideTempProbe":true,"dhwComfortTemp":{"min":44.0,"max":55.0,"value":48.0,"prevValue":0.0,"step":1.0},"dhwEnabled":true,"dhwMode":1,"flameSensor":false,"heatPumpOn":false,"todayAsMilliseconds":1639609200000,"todayAsText":"16/12/2021","maxDateAsText":"16/12/2022","zone":{"holidays":[{"index":0,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":1,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":2,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":3,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":4,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":5,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":6,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true},{"index":7,"fromAsMilliseconds":1609455600000,"toAsMilliseconds":1609455600000,"fromAsText":"01/01/2021","toAsText":"01/01/2021","added":false,"deleted":false,"changed":false,"osv":true}],"mode":{"allowedOptions":[0,1,2,3],"value":1},"isHeatingActive":true,"isCoolingActive":false,"hasRoomSensor":false,"chComfortTemp":{"min":22.0,"max":28.0,"value":23.0,"prevValue":0.0,"step":0.5},"chReducedTemp":{"min":10.0,"max":23.0,"value":22.0,"prevValue":0.0,"step":0.5},"coolComfortTemp":{"min":0.0,"max":0.0,"value":0.0,"prevValue":0.0,"step":0.0},"coolReducedTemp":{"min":0.0,"max":0.0,"value":0.0,"prevValue":0.0,"step":0.0},"roomTemp":0.0,"heatOrCoolRequest":true,"chProtectionTemp":10.0,"coolProtectionTemp":10.0,"chHolidayTemp":0.0,"coolHolidayTemp":0.0,"desiredRoomTemp":23.0,"useReducedOperationModeOnHoliday":false,"timeProg":[60,1410],"roomTempError":false},"dhwStorageTemp":48.6,"dhwStorageTempError":false,"hasDhwStorageProbe":true,"utcOffset":60,"outsideTempError":false}
The value I am trying to parse is “48.0” at the very beginning.
{"outsideTemp":4.4,"hasOutsideTempProbe":true,"dhwComfortTemp":{"min":44.0,"max":55.0,"value":48.0,"...
I tried:
- name: ElcoHotWaterTemp
value_template: "{{ value_json.value }}"
but it didn’t work.