Skip to content

Commit

Permalink
Update huawei_solar_stat.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
JensenNick authored Apr 2, 2024
1 parent 846bd22 commit 593587e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/huawei_solar_stat.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --------------------------------------------
# HUAWEI SOLAR STAT - Energy Statistic Sensors
# --------------------------------------------
# version: v1.0.1
# version: v1.0.2
# branch: main
# domain: https://github.com/JensenNick/huawei_solar_stat
# codeowner: Nick Jensen
Expand Down Expand Up @@ -117,7 +117,7 @@ template:
state_class: measurement
state: >
{{ states('sensor.house_load_cost') | float(0) /
states('sensor.house_load_energy') | float }}
states('sensor.energy_house_load') | float }}
attributes:
daily: >
{{ states('sensor.daily_house_load_cost') | float(0) /
Expand All @@ -135,7 +135,7 @@ template:
{{ states('sensor.yearly_house_load_cost') | float(0) /
states('sensor.yearly_house_load_energy') | float }}
availability: >
{{ has_value('sensor.house_load_energy') and
{{ has_value('sensor.energy_house_load') and
has_value('sensor.daily_house_load_energy') and
has_value('sensor.weekly_house_load_energy') and
has_value('sensor.monthly_house_load_energy') and
Expand All @@ -146,7 +146,7 @@ template:
unit_of_measurement: DKK
state: >
{{ states('sensor.import_cost') | float(0) /
states('sensor.house_load_energy') | float }}
states('sensor.energy_house_load') | float }}
attributes:
daily: >
{{ states('sensor.daily_import_cost') | float(0) /
Expand All @@ -164,7 +164,7 @@ template:
{{ states('sensor.yearly_import_cost') | float(0) /
states('sensor.yearly_house_load_energy') | float }}
availability: >
{{ has_value('sensor.house_load_energy') and
{{ has_value('sensor.energy_house_load') and
has_value('sensor.daily_house_load_energy') and
has_value('sensor.weekly_house_load_energy') and
has_value('sensor.monthly_house_load_energy') and
Expand Down

0 comments on commit 593587e

Please sign in to comment.