# Example configuration.yaml entry
utility_meter:
daily_energy:
source: sensor.energy_in_kwh
name: Sensor Name - Daily Energy
cycle: daily
monthly_energy:
source: sensor.energy_in_kwh
name: Sensor Name - Monthly Energy
cycle: monthly
How can i modify this code to automatically find all the sensors with energy (e.g Entity ID:
sensor.dbplug_56cf_energy) and all the entity ending with _energy
to automatically add as source to monthly and daily?
This is so that in future when new plugs are added, i will not forget to add in utility meter to check their daily/monthly limit.
Thanks!