Recued
Menu
← Back to recipes

Home Assistant camera alert

by recued-core v2 12 views

Use “Home Assistant camera alert” in Recued. When a Home Assistant automation sends it through your webhook, takes a picture from the camera it names, asks your AI its yes-or-no question about it, and alerts you on yes. The webhook needs a public HTTPS address for this server. Your AI can miss things: an extra pair of eyes, not a safety device.

Complete workflow

Use Home Assistant Camera Alerts in Recued so a Home Assistant automation can ask your AI about a camera picture when something happens, such as motion at the door at night, and alert you when the answer is yes. Home Assistant posts the “camera”, a “question” you list in the alert's settings and the time as “at” to a webhook you create in Recued, which needs a public HTTPS address for this server. The picture goes to your AI; treat the answer as an extra pair of eyes, not a safety device.

You are viewing one recipe in this workflow. Installing it opens the complete pack so its other recipes and background automations arrive together.

Use “Home Assistant camera alert” in Recued. When a Home Assistant automation sends it through your webhook, takes a picture from the camera it names, asks your AI its yes-or-no question about it, and alerts you on yes. The webhook needs a public HTTPS address for this server. Your AI can miss things: an extra pair of eyes, not a safety device.

home-assistantsmart-homecamerasecurity
by recued-core pinned v2
View pack details, dependencies, and permissions →
How it works 90 steps

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

Process (90 steps)
◆ webhook_event core.webhook.event.get
Get webhook event
skip: context.webhook.event_ref is_null
■ sent default
Apply default
■ question_sent coalesce
Use the first available value from: sent question,
■ question_sent_text trim
Trim whitespace from question sent
■ question_sent_lc lowercase
Convert question sent text to lowercase
■ question_sent_bare replace
Replace text in question sent lc
■ question_sent_key trim
Trim whitespace from question sent bare
■ question_was_sent compare
Check if question sent key has data
■ questions_more coalesce
Use the first available value from: setting more questions,
■ questions_listed flatten
Flatten nested lists in
■ questions_named map
Extract from each item
■ questions_lc map
Extract text from each item
■ questions_bare map
Extract key_lc from each item
■ questions_keyed map
Extract key_bare from each item
■ question_listed filter
Filter by condition
■ question_unlisted compare
Check if question listed is empty
■ question_refused all
Check if all conditions are true
■ camera_given coalesce
Use the first available value from: sent camera, setting camera,
■ camera_text trim
Trim whitespace from camera given
■ camera_lc lowercase
Convert camera text to lowercase
■ camera_key_raw replace
Replace text in camera lc
■ camera_key_text trim
Trim whitespace from camera key raw
■ camera_key_empty compare
Check if camera key text is empty
■ camera_key ternary
Apply ternary
■ question_given coalesce
Use the first available value from: question listed 0 text, setting question, Is there a person in the picture?
■ question trim
Trim whitespace from question given
◆ states_raw recued-core.home-assistant.state.list
List state on home assistant
■ states default
Apply default
■ states_named map
Extract attributes.friendly_name from each item
■ states_with_domain map
Extract entity_id from each item
■ cameras filter
Filter by condition
■ cameras_keyed_raw map
Extract name_lc from each item
■ cameras_keyed map
Extract name_key_raw from each item
■ camera_labels map
Extract from each item
■ camera_list join
Join items with ", "
■ camera_count count
Count items in cameras
■ no_cameras compare
Check if camera count equals 0
■ matches filter
Filter by condition
■ match_count count
Count items in matches
■ found compare
Check if match count equals 1
■ entity default
Apply default
■ camera_name coalesce
Use the first available value from: matches 0 attributes friendly name, matches 0 entity id, camera text
■ camera_seen coalesce
Use the first available value from: matches 0 attributes friendly name, matches 0 entity id
■ unavailable compare
Check if matches 0 state equals unavailable
■ sensor_given coalesce
Use the first available value from: setting motion sensor,
■ sensor_text trim
Trim whitespace from sensor given
■ sensor_lc lowercase
Convert sensor text to lowercase
■ scheduled compare
Check if caller channel equals schedule
■ has_sensor compare
Check if sensor text has data
■ gated all
Check if all conditions are true
■ sensor_rows filter
Filter by condition
■ sensor_count count
Count items in sensor rows
■ sensor_found compare
Check if sensor count equals 1
■ sensor_name coalesce
Use the first available value from: sensor rows 0 attributes friendly name, sensor text
■ sensor_on compare
Check if sensor rows 0 state equals on
■ idle all
Check if all conditions are true
■ sensor_missing all
Check if all conditions are true
■ ready all
Check if all conditions are true
◆ snapshot recued-core.home-assistant.camera.snapshot
Snapshot camera on home assistant
skip: step.ready not_equal true
✦ ask core.ai.classify
AI classifies data into one of the given categories
skip: step.snapshot.file_ref is_null
■ answer default
Apply default
■ answer_word switch
Map answer to one of: no, yes, cannot_tell
■ is_yes compare
Check if answer equals yes
■ is_unsure compare
Check if answer equals cannot_tell
■ alerts_on compare
Check if setting alert when does not equal never
■ unsure_alerts compare
Check if setting alert when does not equal yes
■ unsure_alert all
Check if all conditions are true
■ alert_worthy any
Check if any of the conditions are true
■ should_alert all
Check if all conditions are true
■ should_warn all
Check if all conditions are true
■ several compare
Check if match count is greater than 1
■ no_camera_named compare
Check if camera text is empty
■ not_found_text ternary
Apply ternary
■ blocked_missing ternary
Apply ternary
■ blocked_detail ternary
Apply ternary
■ blocked_camera ternary
Apply ternary
■ blocked_look ternary
Apply ternary
■ blocked_text ternary
Apply ternary
◆ notify_answer core.notification.send
Send notification
skip: step.should_alert not_equal true
◆ notify_blocked core.notification.send
Send notification
skip: step.should_warn not_equal true
■ alerted coalesce
Use the first available value from: notify answer, notify blocked
■ alert_tried compare
Check if alerted exists
■ alert_channels default
Apply default
■ alert_reached compare
Check if alert channels has data
■ alert_list join
Join items with ", "
■ alert_unreached ternary
Apply ternary
■ alert_text ternary
Apply ternary
■ not_ready_text ternary
Apply ternary
■ result_text ternary
Apply ternary
■ card to_summary
Format results as a summary card
▼
Output
summary card
Settings 6 configurable

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

camera setting = [object Object]
channels setting = [object Object]
question setting = Is there a person in the picture?
alert when setting = yes_or_unsure
motion sensor setting = [object Object]
more questions setting = [object Object]

Uses (5 operations)

Webhooks Get webhook event core.webhook.event.get
Pack operation List state on home assistant recued-core.home-assistant.state.list
Pack operation Snapshot camera on home assistant recued-core.home-assistant.camera.snapshot
AI models AI classifies data into one of the given categories core.ai.classify
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 Webhooks core.webhook.event.get read-only
Read AI models core.ai.classify read-only
Read Notifications core.notification.send external change

2 more aren't listed here. You'll see them at install.

Data it touches

SurfacesWebhooksAI modelsNotifications

About

Tags

home-assistant home-assistantsmart-homecamerasecurityalertsaiwebhookpack:home-assistant-camera-alerts

Details

90 steps 6 configurable settings recipe_id: alert-camera-home-assistant