Hi,
Beginner here…
I have a energy meter thats reads the actual power of my solar panels. However this value is negative. How can I convert this to a positive value?
I have tried the following in configuration.yaml
template:
- sensor:
- name: Actual solar power - Dak
unit_of_measurement: "kWh"
state: "{{ states ('Solar meter dak (5c2faf0e37dc) Active power') | int *-1}}"
What am I doing wrong?
Thanks