Closed SimonRolin closed 4 years ago
If you use Home Assistant, you can use the utility_meter to get a daily yield.
My sma package config:
sensor:
- platform: sma
host: 192.168.88.199
password: !secret sma_password
scan_interval: 10
sensors:
- current_consumption
- grid_power
- total_consumption
- total_yield
- platform: filter
name: current consumpmtion 1min
entity_id: sensor.current_consumption
#id: sma current consumpmtion 1min
filters:
- filter: time_simple_moving_average
window_size: 00:01
- platform: filter
name: grid power 1min
entity_id: sensor.grid_power
#id: sma grid power 1min
filters:
- filter: time_simple_moving_average
window_size: 00:01
- platform: filter
name: total consumption 5min
entity_id: sensor.total_consumption
filters:
- filter: time_throttle
window_size: 00:05
- platform: filter
name: total yield 5min
entity_id: sensor.total_yield
filters:
- filter: time_throttle
window_size: 00:05
utility_meter:
daily_consumption:
source: sensor.total_consumption
cycle: daily
daily_yield:
source: sensor.total_yield
cycle: daily
monthly_consumption:
source: sensor.total_consumption
cycle: monthly
monthly_yield:
source: sensor.total_yield
cycle: monthly
Hi,
The module seems to work fine except that I do not receive the daily_yield.
Here is what I receive :
Any idea ?
Thanks a lot in advance !