1
0
Fork 0

Home Assistant Git Exporter

main
31c0fe9c6dbd74bcdde92e1d2aaa03e1d272f75f 2023-05-05 13:25:40 +10:00
parent 978b03b408
commit 335d2467d2
1 changed files with 14 additions and 1 deletions

View File

@ -135,7 +135,20 @@ sensor:
property_power_usage:
unique_id: property_power_usage
value_template: |
{{ (states('sensor.eagle_200_meter_power_demand') | float + states('sensor.inverter_active_power') | float) | round(0) }}
{{ [0, (states('sensor.eagle_200_meter_power_demand') | float + states('sensor.inverter_active_power') | float) | round(0)] | max }}
unit_of_measurement: W
device_class: power
friendly_name: Property power usage
# This should count any power that is not coming _directly_ from the sun, including the home battery. This is
# because power used here can cause purchasing to happen later when the battery is drained, and the proportion of
# usage between the main house and the tiny house should reflect the proportion of the bill.
#
# Note: Ideally, if we drain from battery and then the sun re-charges it, it wouldn't be counted, but that might be trickier so I'll have to work on that later.
budgeted_property_power_usage:
unique_id: property_power_usage
value_template: |
{{ [0, (states('sensor.eagle_200_meter_power_demand') | float + states('sensor.inverter_active_power') | float) | round(0)] | max }}
unit_of_measurement: W
device_class: power
friendly_name: Property power usage