Konnected alarm status not keeping its state after restart

I have an issue where if my Home Assistant server is restarted while the alarm is armed then when it comes back online the alarm status is disarmed which is of course wrong and messes up all my automations.

Any idea how I can fix that?

This is how I have it set up.


 

id: !secret konnected_board2
      discovery: false
      host: !secret konnected_board2_ip
      port: !secret konnected_board2_port
      switches:
        - zone: out
          momentary: 500         
          name: 'Remote Arm/Disarm'
      binary_sensors:
        - zone: 1
          type: window
          name: 'Alarm Status'
        - zone: 2
          type: window
          name: 'Alarm Arm Status'