@rontaylor wrote:
I have copied this integration into the sensor: section of my configuration.yaml
It runs into errors in the template.
If I comment out the template
# PVOutut # - platform: pvoutput system_id: *removed for security* api_key: *MY API KEY has been removed for security* name: HomePower scan_interval: 150 # - platform: template # sensors: # power_consumption: # value_template: '{% if is_state_attr("sensor.pvoutput", "power_consumption", "NaN") %}0{% else %}{{ state_attr('sensor.pvoutput', 'power_consumption') }}{% endif %}' # friendly_name: 'Using' # unit_of_measurement: 'Watt' # energy_consumption: # value_template: '{{ "%0.1f"|format(state_attr('sensor.pvoutput', 'energy_consumption')|float/1000) }}' # friendly_name: 'Used' # unit_of_measurement: 'kWh' # power_generation: # value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ state_attr('sensor.pvoutput', 'power_generation') }}{% endif %}' # friendly_name: 'Generating' # unit_of_measurement: 'Watt' # energy_generation: # value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(state_attr('sensor.pvoutput', 'energy_generation')|float/1000) }}{% endif %}' # friendly_name: 'Generated' # unit_of_measurement: 'kWh' #
I get this so that proves my system_id and API key are OK.
If I remove the comments, I get this error.
Confused…
Anyone got any ideas?
Posts: 4
Participants: 2