Replies: 1 comment 1 reply
-
|
This can be achieved with a Template Sensor, documented here.
E.g. state_class: measurement
battery_power: 420
grid_power: -420
solar_power: 0
charge_peak_ac: 12.3
charge_peak_dc: 12.3
discharge_peak_ac: 12.3
discharge_peak_dc: 12.3
monthly_grid_peak_power: 796
unit_of_measurement: "%"
attribution: Data provided by CheckWatt EnergyInBalance
device_class: battery
friendly_name: Xxx Battery SoCSomething like this in your template:
- sensor:
- name: "CheckWatt Solar Power"
unique_id: checkwatt_solar_power
state: "{{ state_attr('sensor.xxx_battery_soc', 'solar_power')}}"
unit_of_measurement: "W"
device_class: "power"
state_class: total
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for a great work! The integration is really usefull for me. Would it be difficult to also include a new sensor with current solar production in watt?
Beta Was this translation helpful? Give feedback.
All reactions