Gather statistics for:
- today
- yesterday
- week
- month
You can take a look at sample of usage of Energy* components in configuartion for
ZMAi-90
energy meter based onTYWE3S
: zmai90.yaml
# Example configuration entry
...
external_components:
- source: github://dentra/esphome-components
...
sensor:
- platform: "energy_statistics"
total: total
energy_today:
name: "$name Energy Today"
energy_yesterday:
name: "$name Energy Yesterday"
energy_week:
name: "$name Energy Week"
energy_month:
name: "$name Energy Month"
- id (Optional, ID): Manually specify the ID used for code generation.
- total (Required, ID): The ID of the total power sensor.
- energy_today (Optional, Sensor):
- Any options from Sensor.
- energy_yesterday (Optional, Sensor):
- Any options from Sensor.
- energy_week (Optional, Sensor):
- Any options from Sensor.
- energy_month (Optional, Sensor):
- Any options from Sensor.