I made an automation where i have the assist satelite ask a question , i can set the answer , but no matter if the answer is wright or wrong , the automation continues to the next step.
It is set to create response_variables , and this contains
id: code
Sentence: 1234
It changes the state of the variables , if wright it is like:
id: code
Sentence: 1234
If wrong:
id: null
Sentence: null
How can i make a step that is checking the changed variables?
My code:
action: assist_satellite.ask_question
metadata: {}
data:
question: Wat is de code
preannounce: true
entity_id: assist_satellite.aiball_assist_satellite
answers:
- id: code
sentences:
- "1234"
response_variable: password
Complete automation:
alias: Alarm uit nabu
description: ""
triggers:
- trigger: conversation
command:
- Alarm uit
- "Schakel het alarm uit "
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
actions:
- action: assist_satellite.ask_question
metadata: {}
data:
question: Wat is de code
preannounce: true
entity_id: assist_satellite.aiball_assist_satellite
answers:
- id: code
sentences:
- "1234"
response_variable: password
- action: alarm_control_panel.alarm_disarm
metadata: {}
data:
code: "1234"
target:
entity_id: alarm_control_panel.home_alarm
- action: assist_satellite.announce
metadata: {}
data:
message: "Alarm uitgeschakeld "
preannounce: true
target:
entity_id: assist_satellite.aiball_assist_satellite
mode: single
I need an extra step to check the variables before disarming the alarm.
This shows up in the step details:
