Home Assistant weekly energy use
Use “Home Assistant weekly energy use” in Recued. Shows how much energy each meter and smart plug used over the last week, biggest first; a net meter reads below zero when it sent out more than it took in. Read-only. Readings are never added up, since a whole-home meter already counts the others.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (36 steps)
states_raw
recued-core.home-assistant.state.list
List state on home assistant
states
default
Apply default
energy_sensors
filter
Filter by condition
energy_count
count
Count items in energy sensors
has_sensors
compare
Check if energy count is greater than 0
entity_ids
pluck
Extract entity_id from each item
ids_csv
join
Join items with ","
back_days
math
Calculate: 0 - {{config.days}}
window_start
date_add
Add back days days to
window_start_end
date_add
Add 1 hours to
history_raw
recued-core.home-assistant.history.list
List history on home assistant
skip: step.has_sensors equal false
history
default
Apply default
start_values
map
Extract from each item
matched
find
Find first match in
matched_list
default
Apply default
usage_raw
map
Extract from each item
usage_known
filter
Filter by condition
usage_calc
map
Extract from each item
usage_reset_hours
map
Extract last_reset from each item
usage_counting
filter
Filter by condition
usage_net_never_reset
filter
Filter by condition
usage_net_reset_before
filter
Filter by condition
usage_valid
flatten
Flatten nested lists in
usage_rounded
map
Extract used_raw from each item
usage_sorted
sort
Sort by
measured_count
count
Count items in usage sorted
unmeasured_count
math
Calculate: {{step.energy_count}} - {{step.measured_count}}
has_rows
compare
Check if measured count is greater than 0
biggest_text
ternary
Apply ternary
period_start
date_format
Format as a date
usage_rows
slice
Take a subset of
usage_table
to_table
Format results as a data table
notify_enabled
compare
Check if setting notify with summary equals true
should_notify
all
Check if all conditions are true
notify
core.notification.send
Send notification
skip: step.should_notify not_equal true
card
to_summary
Format results as a summary card
▼
Output
summary
card
table
usage_table
json
usage_sorted
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
days
setting
=
7
channels
setting
=
[object Object]
row limit
setting
=
25
notify with summary
setting
=
false
Uses (3 operations)
Pack operation
List state on home assistant
recued-core.home-assistant.state.list
Pack operation
List history on home assistant
recued-core.home-assistant.history.list
Notifications
Send notification
core.notification.send
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.
Permissions it requires
Declared by the recipe — Recued grants these at install, where you review them before approving.What it's allowed to do
Read
Notifications
core.notification.send
external change
2 more aren't listed here. You'll see them at install.