Hi,
I have search around and have not found a good solution for this.
I have created a Voice sentence to trigger an automation.
The automation turns off a relay, delays 20 mins, turns it back on.
thats works well. However, when the voice PE triggers the automation, it causes the Voice PE device to to light up the led ring for 20 mins and will not respond to commands.
Is there a way I call execute the automation and not have the Voice PE to wait for 20 mins?
ItsHarper
(Harper Andrews)
March 27, 2025, 3:02pm
2
I think setting the voice response before starting the script will fix this
Edit: I didn’t realize it was set up as a new voice sentence, rather than an automation. I haven’t yet done that, so I can’t help you there.
However, if you do it as an automation you should be able to fix this (at the cost of LLM fallback not knowing about the existence of the sentence).
Have the sentence turn on an input_boolean, then trigger the automation from that.
Edit: A 20 minute delay in an automation may not be a good idea - if HA restarts, for example, it will not turn the relay back on.
1 Like
Hi,
that might work. Any other possible solutions?
In the automation, I would trigger on input_boolean to let’s say true, then after the delay reset back to false. Right?
FYI, below is the sentence that triggers the automation, I would change it to set input_boolean to true:
justCooking:
speech:
text: "Turning of smoke alarm"
action:
- service: automation.trigger
target:
entity_id: automation.smoke_alarm_off_auto
data:
skip_condition: true
mchk
March 28, 2025, 9:58am
5
Copy the automation actions into the script, then use script.turn_on
action.
The actions will be performed in a separate process.
triggers:
- trigger: conversation
command: "Turn off the smoke detector"
actions:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.smoke_alarm_off_auto