Amazon Alexa integration with home assistant - alarm

Hi

I am using home assistant cloud with the amazon Alexa integration

I use home assistant as part of a security system. Is there a standard way to arm/disarm the system using the voice integration.

I am thinking this may turn into a feature request.

(An idea I have in mind is to create automations that can be triggered via voice to arm/disarm$

script

alias: Alarm system is it ok to disarm
sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: person.david
            state: not_home
          - condition: and
            conditions:
              - condition: not
                conditions:
                  - condition: state
                    entity_id: alarm_control_panel.alarm_home_security_control
                    state: disarmed
        sequence:
          - service: alarm_control_panel.alarm_arm_away
            target:
              entity_id:
                - alarm_control_panel.alarm_home_security_control
                - alarm_control_panel.alexa_guard_*****
            data:
              code: '1234'
      - conditions:
          - condition: state
            entity_id: person.whoeve
            state: home
          - condition: and
            conditions:
              - condition: not
                conditions:
                  - condition: state
                    entity_id: alarm_control_panel.alarm_home_security_control
                    state: disarmed
        sequence:
          - service: alarm_control_panel.alarm_disarm
            target:
              entity_id:
                - alarm_control_panel.alarm_home_security_control
                - alarm_control_panel.alexa_guard_*****
            data:
              code: '1234'
      - conditions:
          - condition: state
            state: disarmed
            entity_id: alarm_control_panel.alarm_home_security_control
          - condition: and
            conditions:
              - condition: not
                conditions:
                  - condition: state
                    entity_id: person.whoever
                    state: home
        sequence:
          - service: alarm_control_panel.alarm_disarm
            data:
              code: '1234'
            target:
              entity_id:
                - alarm_control_panel.alarm_home_security_control
                - alarm_control_panel.alexa_guard_*****
      - conditions:
          - condition: state
            entity_id: alarm_control_panel.alarm_home_security_control
            state: disarmed
          - condition: and
            conditions:
              - condition: state
                entity_id: person.whoever
                state: home
        sequence:
          - service: alarm_control_panel.alarm_disarm
            data:
              code: '1234'
            target:
              entity_id:
                - alarm_control_panel.alexa_guard_*****
                - alarm_control_panel.alarm_home_security_control
    default:
      - service: alarm_control_panel.alarm_arm_away
        target:
          entity_id:
            - alarm_control_panel.alarm_home_security_control
            - alarm_control_panel.alexa_guard_*****
        data:
          code: '1234'
mode: single
icon: mdi:security

you can all this script from any automation.
it will check to see if the control panel has been disarmed by code or if there is a presence in the zone of an authorized person. if yes disarm and stop guarding if no keep stay armed and keep guarding. this will also only allow an authorized person to disable the alarm system and Alexa guard by voice command anyone else must key in the code on the security control panel. hope this is what you were looking for