Add aliases to security actionable notification

This commit is contained in:
2022-12-24 13:49:06 -05:00
parent 8dd130afa8
commit c16889ca28

View File

@ -84,20 +84,23 @@ automation:
- id: d1edfcf7-2712-49f4-b8f1-17f5b184b5ce - id: d1edfcf7-2712-49f4-b8f1-17f5b184b5ce
alias: Arm security on Give Me Darkness alias: Arm security on Give Me Darkness
trigger: trigger:
- platform: event - alias: 'Response is yes'
platform: event
event_type: alexa_actionable_notification event_type: alexa_actionable_notification
event_data: event_data:
event_id: actionable_notification_night_security_arm event_id: actionable_notification_night_security_arm
event_response_type: ResponseYes event_response_type: ResponseYes
id: security-yes id: security-yes
- platform: event - alias: 'Response is no'
platform: event
event_type: alexa_actionable_notification event_type: alexa_actionable_notification
event_data: event_data:
event_id: actionable_notification_night_security_arm event_id: actionable_notification_night_security_arm
event_response_type: ResponseNo event_response_type: ResponseNo
id: security-no id: security-no
action: action:
- if: - alias: 'If yes, set security to Armed - Home'
if:
- condition: trigger - condition: trigger
id: security-yes id: security-yes
then: then:
@ -112,7 +115,8 @@ automation:
"The security system is armed. Sentry turrets active, be careful out there!", "The security system is armed. Sentry turrets active, be careful out there!",
"Your security is our number one priority. Flamethrower turrets deployed!" "Your security is our number one priority. Flamethrower turrets deployed!"
] | random }} ] | random }}
- if: - alias: 'If no, leave security alone and be a smartass about it'
if:
- condition: trigger - condition: trigger
id: security-no id: security-no
then: then: