keatontaylor / alexa-actions

A README and associated code to get actionable notifications setup for Alexa devices.
GNU General Public License v3.0
391 stars 186 forks source link

Fourth response state: ResponseStop? #218

Closed Sp4rky001 closed 5 months ago

Sp4rky001 commented 8 months ago

Is your feature request related to a problem? Please describe. Not a problem, but a nice to have. Currently, there are three possible response states: ResponseYes, ResponseNo, and ResponseNone. In the case of a garage, I'd like to be able to do this:

Describe the solution you'd like In a normal case, I would like Alexa to remind me that the garage is still open every 10 minutes, but if I intend on leaving the door open for a few hours, I would like to be able to ask Alexa to turn off the reminder (disable the trigger node in node-red) by a voice prompt. A fourth response state of ResponseStop would help to do this.

Describe alternatives you've considered The alternative solution is to open node red and redeploy the flow to reset all nodes.

Additional context none

DEADSEC-SECURITY commented 7 months ago

There is a event for strings (StringIntentHandler) but for it to work you have to add the strings to the language you're using. under skill-packages/interactionModels/custom you can change the jsonfile of your language.

Under strings:

{
          "name": "String",
          "slots": [
            {
              "name": "Strings",
              "type": "AMAZON.Person"
            }
          ],
          "samples": [
            "{Strings}"
          ]
        },

you can add your samples and slots and hopefully it should work.

DEADSEC-SECURITY commented 7 months ago

You can also do this via the console: image

Sp4rky001 commented 5 months ago

Thank you for your suggestion. I will try this. It took me a while to revisit this issue until now. Thanks!