Verisure, de-activate with code

So…
We have Verisure alarm installed and during the night it is armed with only door and window sensors.
The problem is that someone in the family often forgets the alarm and opens the door to the patio. (I assume you can guess who that is…)
My wife is starting to get used to telling the security company that “Yes, my husband forgot the alarm… again…”, but every time she looks at med with the LOOK.

Anyway, since we’re using HA to set the alarm in the evening (manually) I though of a rule that just says “If anyone is home at 10 am, deactivate the alarm”.

Is it possible to do that considering the alarm must be deactivated with a code?

// Tommy

You can make an automation, with something like:

alias: "Disarm alarm"
trigger:
  platform: time
  after: '10:00:00'
condition:
  condition: and
  conditions:
    - condition: state
      entity_id: alarm_control_panel.alarm_1
      state: 'armed_home'
    - condition: or
      conditions:
      - condition: state
        entity_id: device_tracker.xxx
        state: 'home'
      - condition: state
        entity_id: device_tracker.xxx
        state: 'home'
action:
  - service: alarm_control_panel.alarm_disarm
    data:
      code: 1234 (your code)
      entity_id: alarm_control_panel.alarm_1

// JanE

1 Like

Thank you!
Will try this on Friday when I work from home

Worked perfect!!

Thank you very much!!