Recued
Menu
← Back to recipes

Home Assistant device health

by recued-core v2 13 views

Use “Home Assistant device health” in Recued. Lists devices with a low battery and devices that have been unavailable for a while, with how long each has been offline. Read-only: nothing in Home Assistant is changed.

How it works 40 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (40 steps)
◆ states_raw recued-core.home-assistant.state.list
List state on home assistant
■ states default
Apply default
■ entity_count count
Count items in states
■ states_with_domain map
Extract entity_id from each item
■ watched filter
Filter by condition
■ low_percent filter
Filter by condition
■ low_percent_keyed map
Extract entity_parts.1 from each item
■ low_percent_keyed_short map
Extract device_key from each item
■ low_percent_keys pluck
Extract device_key from each item
■ low_percent_valued map
Extract state from each item
■ low_percent_rows map
Extract from each item
■ low_attribute filter
Filter by condition
■ low_attribute_rows map
Extract from each item
■ low_numeric_rows flatten
Flatten nested lists in
■ low_numeric_sorted sort
Sort by
■ low_flag filter
Filter by condition
■ low_flag_keyed map
Extract entity_parts.1 from each item
■ low_flag_keyed_short map
Extract device_key from each item
■ low_flag_unlisted filter
Filter by condition
■ low_flag_rows map
Extract from each item
■ low_rows_all flatten
Flatten nested lists in
■ low_count count
Count items in low rows all
■ unavailable filter
Filter by condition
■ unavailable_aged map
Extract last_changed from each item
■ unavailable_long filter
Filter by condition
■ unavailable_dated map
Extract last_changed from each item
■ unavailable_sorted sort
Sort by
■ unavailable_rows_all map
Extract from each item
■ unavailable_count count
Count items in unavailable rows all
■ low_table_rows slice
Take a subset of
■ low_table to_table
Format results as a data table
■ unavailable_table_rows slice
Take a subset of
■ unavailable_table to_table
Format results as a data table
■ finding_count math
Calculate: {{step.low_count}} + {{step.unavailable_count}}
■ has_findings compare
Check if finding count is greater than 0
■ status_text ternary
Apply ternary
■ notify_enabled compare
Check if setting notify when found 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 low_table
table unavailable_table
json low_rows_all
json unavailable_rows_all
Settings 6 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

channels setting = [object Object]
row limit setting = 25
ignore domains setting = media_player,update,button,event,scene
battery threshold setting = 20
notify when found setting = false
unavailable hours setting = 6

Uses (2 operations)

Pack operation List state on home assistant recued-core.home-assistant.state.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

Read your Home_assistant connectionSend notifications
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

1 more isn't listed here. You'll see it at install.

Data it touches

SurfacesNotifications

About

Tags

home-assistant home-assistantsmart-homedevicesbatteryhealthdigestpack:home-assistant

Details

40 steps 6 configurable settings recipe_id: check-device-health-home-assistant