WTH: Add a ‘prohibit_requests_if’ parameter to Alexa integration for a conditional access to our HA

Resume:
I had this feature on my previous home automation system and it add a sort of security layer regarding vocal commands if vocal commands shoudn’t be used in certains circumstances.

Example: if my home is on “Away mode”, “Vacation mode”, or if nobody is at home, I think it could be useful to prohibit vocal commands if it is needed by some.
It can avoid unauthorized people to talk to Alexa and do actions like open blinds/doors, disarm the alarm…

Details:

  • add a template type parameter named ‘prohibit_requests_if’ in the configuration of this integration. It should be accept a boolean in order to be open regarding various scenerios.
  • if ‘true’, Alexa will not be able to execute/read commands on the HA instance
  • if ‘false’ or not filled, Alexa will be able to execute/read commands on the HA instance
  • the Alexa integration should also reference a log message when Alexa vocal commands are triggered and not execute by this ‘prohibit_requests_if’ condition.

I think it would be cool to have somethnig like this:

  alexa:
    prohibit_requests_if: {{ input_boolean.everyone_is_away }}
    filter:
      include_entities:
        - lock.front_door
        - lock.backdoor
        - switch.garage_door

Thank you

Note:
Sorry for the duplicate: Add a ‘prohibit_requests_if’ parameter to Alexa integration for a conditional access to our HA - Feature Requests - Home Assistant Community