i trying to make a current power consumption sensor that can display in the Label or Title of the Auto Entities Card… now i looked through googling and they have like object_id.startwith but i trying to do a search of a word
like the auto entities card i use is
type: custom:auto-entities
card:
type: entities
title: current power usage auto entities
filter:
template: |
{{ states.sensor
| selectattr('name','search', 'power|current consumption',ignorecase=true)
| map(attribute='entity_id')
| list }}
exclude: null
sort:
method: state
reverse: false
or i use
type: custom:auto-entities
card:
type: entities
title: Current Power Consumption
filter:
include:
- entity_id: "*power"
- entity_id: "*consumption"
exclude:
- name: "*Today's*"
- name: "*month's*"
- state: unavailable
sort:
method: state
reverse: true
numeric: true
so id like to have a template sensor that adds up all the values for word “power” or “consumption” and ignore todays consumption or months so i can run a current display… this way i can also do Today Consumption and Monthly Consumption
and the sensors off like tplink power metering when does it know to reset daily or monthly… does Home assistant reset it at like 12am and at the end of the month?
and is there a way to auto make templates for shellys they dont have a daily consumption just current consumption so i can make daily and monthly power usage …
and is there a way to make a utility meter auto entities… i wanted to show how much each device is costing each month plus an over all but i wanted to have a break down… is there a way to auto create using 1 utility meter for mid-peak on-peak off-peak weekend… so far ive made 3 manually… but be nice if i could link all the sensors to just 1 ultilty meter helper