To keep my Mrs happy, Ive had to try and get alexa actionable notification working. I’ve got YES working, I’ve got NO RESPONSE working but it’s no that I’m struggling with.
Edit
I’ve edited the post so I didn’t have to start again
To keep my Mrs happy, Ive had to try and get alexa actionable notification working. I’ve got YES working, I’ve got NO RESPONSE working but it’s no that I’m struggling with.
Edit
I’ve edited the post so I didn’t have to start again
I’m not very good at this, that’s putting it lightly, I’m sure there is a tidier way of doing it.
I’m having to use 4 automation’s, The only one I’m struggling with is ‘No’ I’m wanting it to restart the “Alexa Actionable 2 (loft light)” automation.
alias: Alexa Actionable 2 (loft light)
description: ""
triggers:
- entity_id:
- switch.sonoff_10021cc2be_1
to: "on"
for:
hours: 0
minutes: 1
seconds: 0
trigger: state
conditions:
- condition: state
entity_id: switch.sonoff_10021cc2be_1
state: "on"
actions:
- data:
text: the loft light has been on for 1 min. Should I turn off the light
event_id: actionable_notification_kitchen_lights
alexa_device: media_player.kitchen_echo
action: script.activate_alexa_actionable_notification
mode: single
This is if yes is spoken
alias: Alexa Actionable Response yes (loft)
description: ""
triggers:
- event_type: alexa_actionable_notification
event_data:
event_id: actionable_notification_kitchen_lights
event_response_type: ResponseYes
trigger: event
conditions: []
actions:
- target:
entity_id:
- switch.sonoff_10021cc2be_1
data: {}
action: switch.turn_off
mode: single
This is if there is no response
alias: Alexa Actionable Response no repsonse (loft)
description: ""
triggers:
- event_type: alexa_actionable_notification
event_data:
event_id: actionable_notification_kitchen_lights
event_response_type: ResponseNone
trigger: event
conditions: []
actions:
- target:
entity_id:
- switch.sonoff_10021cc2be_1
data: {}
action: switch.turn_off
mode: single
Ive been playing for an hour and this seems to have done it. Its a shame the automation’s can’t be condensed into 1, I have 4 automation’s per actionable notification
alias: Alexa Actionable Response (loft) NO 2
description: ""
triggers:
- event_type: alexa_actionable_notification
event_data:
event_id: actionable_notification_loft_light
event_response_type: ResponseNo
trigger: event
actions:
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- target:
entity_id: automation.alexa_actionable_loft_light
action: automation.trigger
data:
skip_condition: true
mode: restart