iSmart Alarm

This I what I get too upon first adding it. To resolve use the HASS services to update the status and the panel will become active.

This get pretty annoying cause it happens on every reboot of Hass. To resolve I’ve an automation to save the status and restore it after reboot.

Below is the code i use to Save and Restore the state:

input_text:
  input_text_ismartalarm:
    name: Save iSmartAlarm State

automation:
  - alias: Save State
    trigger:
      platform: state
      entity_id: alarm_control_panel.ismart_alarm
    action:
      - service: input_text.set_value # save iSmartAlarm state on any changes
        data_template:
          entity_id: input_text.input_text_ismartalarm
          value: "{{ states('alarm_control_panel.ismart_alarm') }}"
  - alias: Restore State
    trigger:
      platform: homeassistant
      event: start
    action:
      - service: alarm_control_panel.ifttt_push_alarm_state # restore iSmartAlarm state upon restart
        data_template:
          entity_id: alarm_control_panel.ismart_alarm
          state: "{{ states('input_text.input_text_ismartalarm') }}"
1 Like