diff --git a/packages/alexa.yaml b/packages/alexa.yaml index 90624b4..12bff5e 100644 --- a/packages/alexa.yaml +++ b/packages/alexa.yaml @@ -1,3 +1,9 @@ +input_text: + alexa_actionable_notification: + name: Alexa Actionable Notification Holder + max: 255 + initial: '{"text": "This is a test of the alexa actions custom skill. Did it work?", "event": "actionable.skill.test"}' + intent_script: ActivateSceneIntent: action: @@ -7,4 +13,28 @@ intent_script: data: option: "{{ Scene }}" speech: - text: "Scene is set to {{ Scene }}" \ No newline at end of file + text: "Scene is set to {{ Scene }}" + +script: + activate_alexa_actionable_notification: + description: 'Activates an actionable notification on a specific echo device' + fields: + text: + description: 'The text you would like alexa to speak.' + example: 'What would you like your thermostat set to?' + event_id: + description: 'Correlation ID for event responses' + example: 'ask_for_temperature' + alexa_device: + description: 'Alexa device you want to trigger' + example: 'media_player.bedroom_echo' + sequence: + - service: input_text.set_value + data: + entity_id: input_text.alexa_actionable_notification + value: '{"text": "{{ text }}", "event": "{{ event_id }}"}' + - service: media_player.play_media + data: + entity_id: "{{ alexa_device }}" + media_content_type: skill + media_content_id: !secret alexa_actionable_notifications_skill_key \ No newline at end of file