Skip to content

Latest commit

 

History

History

energy_statistics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Energy Statistics

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 on TYWE3S: 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"

Configuration variables:

  • 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):
  • energy_yesterday (Optional, Sensor):
  • energy_week (Optional, Sensor):
  • energy_month (Optional, Sensor):