Hello, I recently upgrade from 2021.7.6 to 2021.8.7 and unfortunately my template for Iotawatt doesn’t work anymore, I’m getting the value “Unknown” for both sensors (iotawatt_total & iotawatt_pool). I’ve looked into the doc / release and suspect that this may seem like an old nomenclature of template but it is unclear for me how to translate into the new one (if any).
Help is welcome, thanks.
#---------------------------- IotaWatt -------------------------------
- platform: rest
name: iotawatt
json_attributes:
- inputs
- outputs
resource: http://xxx.xxx.xxx.xxx/status?inputs=yes&outputs=yes
value_template: '{{ value_json.inputs[0].Vrms }}v'
scan_interval: 5
- platform: template
sensors:
iotawatt_total:
friendly_name_template: '{{ states.sensor.iotawatt.attributes["outputs"][0].name }}'
unit_of_measurement: 'Watts'
value_template: '{{ states.sensor.iotawatt.attributes["outputs"][0].value }}'
iotawatt_pool:
friendly_name_template: '{{ states.sensor.iotawatt.attributes["outputs"][10].name }}'
unit_of_measurement: 'Watts'
value_template: '{{ states.sensor.iotawatt.attributes["outputs"][10].value }}'