Recued
Menu
← Back to recipes

Home Assistant control

by recued-core v2 12 views

Use “Home Assistant control” in Recued. Turns one device on or off, locks or unlocks a door, opens or closes a cover, sets a thermostat or activates a scene, found by its name. Unlocking a door or opening a cover always asks for your approval first; the rest happens straight away when you ask in your own chat or run it yourself.

How it works 54 steps

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

Process (54 steps)
■ target_text trim
Trim whitespace from setting target
■ target_lc lowercase
Convert target text to lowercase
◆ 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
■ matches filter
Filter by condition
■ allowed_domains switch
Map setting action to one of: lock, open, close, unlock, activate_scene, set_temperature
■ candidates filter
Filter by condition
■ candidate_count count
Count items in candidates
■ ready compare
Check if candidate count equals 1
■ entity default
Apply default
■ domain default
Apply default
■ is_light compare
Check if domain equals light
■ is_switch compare
Check if domain equals switch
■ temperature_given compare
Check if setting temperature exists
■ go_light_on all
Check if all conditions are true
■ go_light_off all
Check if all conditions are true
■ go_switch_on all
Check if all conditions are true
■ go_switch_off all
Check if all conditions are true
■ go_other_on all
Check if all conditions are true
■ go_other_off all
Check if all conditions are true
■ go_lock all
Check if all conditions are true
■ go_unlock all
Check if all conditions are true
■ go_open all
Check if all conditions are true
■ go_close all
Check if all conditions are true
■ go_temperature all
Check if all conditions are true
■ go_scene all
Check if all conditions are true
◆ light_on recued-core.home-assistant.light.turn_on
Turn on light on home assistant
skip: step.go_light_on not_equal true
◆ light_off recued-core.home-assistant.light.turn_off
Turn off light on home assistant
skip: step.go_light_off not_equal true
◆ switch_on recued-core.home-assistant.switch.turn_on
Turn on switch on home assistant
skip: step.go_switch_on not_equal true
◆ switch_off recued-core.home-assistant.switch.turn_off
Turn off switch on home assistant
skip: step.go_switch_off not_equal true
◆ other_on recued-core.home-assistant.device.turn_on
Turn on device on home assistant
skip: step.go_other_on not_equal true
◆ other_off recued-core.home-assistant.device.turn_off
Turn off device on home assistant
skip: step.go_other_off not_equal true
◆ lock recued-core.home-assistant.lock.lock
Lock lock on home assistant
skip: step.go_lock not_equal true
◆ unlock recued-core.home-assistant.lock.unlock
Unlock lock on home assistant
skip: step.go_unlock not_equal true
◆ open recued-core.home-assistant.cover.open
Open cover on home assistant
skip: step.go_open not_equal true
◆ close recued-core.home-assistant.cover.close
Close cover on home assistant
skip: step.go_close not_equal true
◆ temperature recued-core.home-assistant.climate.set_temperature
Set temperature climate on home assistant
skip: step.go_temperature not_equal true
◆ scene recued-core.home-assistant.scene.activate
Activate scene on home assistant
skip: step.go_scene not_equal true
■ outcome coalesce
Use the first available value from: light on, light off, switch on, switch off, other on, other off, lock, unlock, open, close, temperature, scene
■ did_run compare
Check if outcome exists
■ new_states default
Apply default
■ changed_count count
Count items in new states
■ reported_change compare
Check if changed count is greater than 0
■ none_found compare
Check if candidate count equals 0
■ several_found compare
Check if candidate count is greater than 1
■ done_text ternary
Apply ternary
■ missing_text ternary
Apply ternary
■ several_text ternary
Apply ternary
■ not_done_text ternary
Apply ternary
■ result_text ternary
Apply ternary
■ candidate_table to_table
Format results as a data table
■ card to_summary
Format results as a summary card
▼
Output
summary card
table candidate_table
json outcome
Settings 3 configurable

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

action setting = [object Object]
target setting = [object Object]
temperature setting = [object Object]

Uses (13 operations)

Pack operation List state on home assistant recued-core.home-assistant.state.list
Pack operation Turn on light on home assistant recued-core.home-assistant.light.turn_on
Pack operation Turn off light on home assistant recued-core.home-assistant.light.turn_off
Pack operation Turn on switch on home assistant recued-core.home-assistant.switch.turn_on
Pack operation Turn off switch on home assistant recued-core.home-assistant.switch.turn_off
Pack operation Turn on device on home assistant recued-core.home-assistant.device.turn_on
Pack operation Turn off device on home assistant recued-core.home-assistant.device.turn_off
Pack operation Lock lock on home assistant recued-core.home-assistant.lock.lock
Pack operation Unlock lock on home assistant recued-core.home-assistant.lock.unlock
Pack operation Open cover on home assistant recued-core.home-assistant.cover.open
Pack operation Close cover on home assistant recued-core.home-assistant.cover.close
Pack operation Set temperature climate on home assistant recued-core.home-assistant.climate.set_temperature
Pack operation Activate scene on home assistant recued-core.home-assistant.scene.activate

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 connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

home-assistant home-assistantsmart-homecontrollightslockspack:home-assistant

Details

54 steps 3 configurable settings recipe_id: control-device-home-assistant