Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105679

Problem in summing up 2 sensors

$
0
0

I get this error:
Logger: homeassistant.config
Source: config.py:454
First occurred: March 22, 2022, 15:58:58 (4 occurrences)
Last logged: 11:30:41

Invalid config for [template]: [name] is an invalid option for [template]. Check: template->name. (See /config/configuration.yaml, line 8).

when I try to create a new sensor which would be the sum of 2 existing ones.

The aim is: I have 2 separate Solar panel installations, both report current output, and I can see them individually, use them in charts etc.
I also want to have a summed version of the 2, I found this code which should do it if I place it in the configuration.yaml. but I am getting above error.

Help appreciated :slightly_smiling_face:
Line 8 is the line with the text : template

template:
sensor:
name: “Zon_Totaal”
unit of measurement: ‘KW’
state: ‘{{states(“sensor.inverter_omvormer”) | float - states(“sensor.envoy_122132021771_current_power_production”)| float }}’

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 105679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>