Skip to content

Alarmo triggers after HA restart when "Allow open initially" sensors remain open #1419

@asixpack

Description

@asixpack

Checklist

  • I am using the latest version of Alarmo (latest version can be found here)
  • I checked for similar existing requests (both open and closed) before posting.

Alarmo Version

v1.10.17

HA Version

2026.5.1

Bug description

When restarting Home Assistant, Alarmo is triggering due to sensors that were open both before and after the restart. The sensors are not set to "Bypass automatically" but are set to "Allow open initially." Instead, it the sensor should still be allowed to be opened.

The logs seem to show the Alarmo stored their old state as "closed" even though they were actually open.

Note there is another closed issue #1238 but this seems related to another issue (sensors being unavailable initially) that was probably fixed.

Steps to reproduce

  1. Set a sensor to Allow open initially.
  2. Arm Alarmo with the sensor in step 1 open.
  3. Restart Home Assistant.
  4. The alarm will trigger right after Alarmo starts due to the sensor in step 1 being open.

Relevant log output

2026-05-09 16:58:51.478 DEBUG (MainThread) [custom_components.alarmo.mqtt] MQTT config was (re)loaded
2026-05-09 16:58:51.479 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_control_panel.alarmo is added to hass
2026-05-09 16:58:51.479 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] Initial state for alarm_control_panel.alarmo is armed_home
2026-05-09 16:58:51.479 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from None to armed_home

2026-05-09 16:59:15.172 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] ready_to_arm_modes for Alarmo updated to away
2026-05-09 16:59:15.173 DEBUG (MainThread) [custom_components.alarmo.sensors] Evaluating sensors on startup for area [removed] (state: armed_home)
2026-05-09 16:59:15.173 INFO (MainThread) [custom_components.alarmo.sensors] Sensor binary_sensor.alarm_panel_pro_[removed]_left_window is open on startup while alarm is armed_home - simulating state change for evaluation
2026-05-09 16:59:15.173 DEBUG (MainThread) [custom_components.alarmo.sensors] entity binary_sensor.alarm_panel_pro_[removed]_left_window changed: old_state=closed, new_state=open
2026-05-09 16:59:15.173 INFO (MainThread) [custom_components.alarmo.sensors] Alarm is triggered due to sensor: binary_sensor.alarm_panel_pro_[removed]_left_window
2026-05-09 16:59:15.173 INFO (MainThread) [custom_components.alarmo.alarm_control_panel] Alarm will be triggered after 60 seconds.
2026-05-09 16:59:15.173 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from armed_home to pending
2026-05-09 16:59:15.173 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] ready_to_arm_modes for Alarmo updated to away, home
2026-05-09 16:59:15.174 INFO (MainThread) [custom_components.alarmo.sensors] Sensor binary_sensor.alarm_panel_pro_[removed]_other_window is open on startup while alarm is pending - simulating state change for evaluation
2026-05-09 16:59:15.174 DEBUG (MainThread) [custom_components.alarmo.sensors] entity binary_sensor.alarm_panel_pro_[removed]_other_window changed: old_state=closed, new_state=open
2026-05-09 16:59:15.174 INFO (MainThread) [custom_components.alarmo.sensors] Alarm is triggered due to sensor: binary_sensor.alarm_panel_pro_[removed]_other_window
2026-05-09 16:59:15.174 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Alarm is triggered!
2026-05-09 16:59:15.175 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from pending to triggered
2026-05-09 16:59:15.176 DEBUG (MainThread) [custom_components.alarmo.automations] state of alarm_control_panel.alarmo is updated from armed_home to pending
2026-05-09 16:59:15.177 DEBUG (MainThread) [custom_components.alarmo.automations] state of alarm_control_panel.alarmo is updated from pending to triggered

2026-05-09 16:59:23.815 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] Service alarmo.disarm was called
2026-05-09 16:59:23.815 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_disarm
2026-05-09 16:59:23.926 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from triggered to disarmed
2026-05-09 16:59:23.927 INFO (MainThread) [custom_components.alarmo.alarm_control_panel] Alarm 'Alarmo' is disarmed by [removed].

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions