Skip to content

Commit

Permalink
Addind solar production #95
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedTinker committed Nov 6, 2022
1 parent b159a9b commit b2249b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions entities/templates/production_kwh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#####
# Converting attribute to sensor
#
#####

sensor:
- name: "Solar production"
unit_of_measurement: "kWh"
icon: mdi:solar-panel
state: "{{ state_attr('switch.smart_inverter', 'current') / 100 }}"
attributes:
last_reset: "2022-11-05T12:00:00+00:00"
state_class: 'total_increasing'
device_class: 'energy'

0 comments on commit b2249b7

Please sign in to comment.