Good day people. Please advice; I have created a custom sensor, placed it in my configuration.yaml and pressed 'check configuration', but I can't see the sensor anywhere.
template:
- sensor:
- name: "Unaccounted power"
unit_of_measurement: "W"
state: >
{{ states("sensor.tibber_total_power") | int - states("sensor.water_heater_meter_power") | int - states("sensor.bathroom_thermostat_meter_power") | int - states("sensor.downstairs_office_thermostat_meter_power") | int - states("sensor.livingroom_socket_aircondition_meter_power") | int }}
- name: "Unaccounted power"
The first couple of times I got an error when I pressed 'check configuration, but after some changes to the sensor I no longer get any errors.... So I am pretty sure the sensor is loaded.
. I tried several values for the temperature, but it always gives me errors like