After reading a bit about some of the issues with the instability of SimpliSafe, when it comes to arming, I have tested the following solution (with a couple of modifications) and have not had issues.
You can add other triggers or conditions.
Automation
- alias: Arm House
trigger:
platform: time
at: '23:00'
condition:
- condition: state
entity_id: alarm_control_panel.simplisafe
state: 'disarmed'
action:
- service: script.arm_house_home
Script
arm_house_home:
sequence:
repeat:
while:
- condition: state
entity_id: alarm_control_panel.simplisafe
state: 'disarmed'
- condition: template
value_template: "{{ repeat.index <= 10 }}"
sequence:
- service: alarm_control_panel.alarm_arm_home
data:
entity_id: alarm_control_panel.simplisafe
code: <your code>
- delay: 10
Just wanted to share! Good luck.