Hi everyone, I’m trying to achieve the following:
I have an input boolean that represents the status of a manual action I want to perform. Status on means intervention required.
I need an automation that periodically checks if the manual operation happened and if it hasn’t, uses Alexa Custom notifictions to prompt me if she should do it on my behalf. When I answer affirmatively, she’s supposed to turn the boolean off, so that she will stop asking.
This is what I have:
- alias: Actionable. Lavatrice Svuotata?
trigger:
platform: state
entity_id: input_boolean.manual_intervention_required
to: 'on'
for:
minutes: 5
action:
- alias: Repeat the sequence UNTIL the conditions are true
repeat:
sequence:
# Run command that for some reason doesn't always work
- service: script.activate_alexa_actionable_notification
data_template:
text: "Appliance requires manual intervention. Have you just forgotten to update the status?"
event_id: 'actionable_notification_manual_operation_performed'
alexa_device: 'media_player.cucina'
# Give it time to complete
- delay:
minutes: 5
until:
# Did it work?
- condition: state
entity_id: input_boolean.manual_intervention_required
state: 'off'
but it did work only the first time.
Alexa asked me if she should perform an operation. I’ve answered no. My answer has kept the boolean in its on state.
But I was expecting that the repeat-question-delay loop to prompt me again after 5 minutes, instead this hasn’t happened.
I can confirm that the boolean is still active, so I would expect the Automation to still be “running”.
What am I doing wrong here?
thank you
paolo