Use status annc differently for security scripts
This commit is contained in:
@ -106,31 +106,15 @@ automation:
|
|||||||
id: security-yes
|
id: security-yes
|
||||||
then:
|
then:
|
||||||
- service: script.security_arm_home
|
- service: script.security_arm_home
|
||||||
- delay:
|
- alias: 'If no, leave security alone'
|
||||||
seconds: 1
|
|
||||||
- service: script.speech_engine
|
|
||||||
data:
|
|
||||||
who: "{{ states('sensor.last_alexa') }}"
|
|
||||||
message: >
|
|
||||||
{{ [ "Security is armed, guard dogs deployed, and lasers set from stun to kill!",
|
|
||||||
"The security system is armed. Sentry turrets active, be careful out there!",
|
|
||||||
"Your security is our number one priority. Flamethrower turrets deployed!"
|
|
||||||
] | random }}
|
|
||||||
- alias: 'If no, leave security alone and be a smartass about it'
|
|
||||||
if:
|
if:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: security-no
|
id: security-no
|
||||||
then:
|
then:
|
||||||
- service: script.speech_engine
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: "{{ states('sensor.last_alexa') }}"
|
who: "{{ states('sensor.last_alexa') }}"
|
||||||
message: >
|
call_security_not_armed: 1
|
||||||
{{ [ "Security squadron is standing down, but always at your service!",
|
|
||||||
"Our security forces are currently twiddling their thumbs, awaiting some purpose in their life!",
|
|
||||||
"Security not armed. Hopefully the defense turrets do not become bored!"
|
|
||||||
] | random }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
activate_alexa_actionable_notification:
|
activate_alexa_actionable_notification:
|
||||||
|
@ -314,6 +314,10 @@ script:
|
|||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.lockdown_issue
|
entity_id: input_boolean.lockdown_issue
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
call_security_armed: 1
|
||||||
else:
|
else:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
@ -357,3 +361,7 @@ script:
|
|||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.lockdown_issue
|
entity_id: input_boolean.lockdown_issue
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
call_security_not_armed: 1
|
Reference in New Issue
Block a user