@Three wrote:
Been using the manual mqtt alarm control panel platform happily for nearly going on a year now.
Last week I update Home Assistant from 0.104.5 to the fastest 0.107.5 which broke the code that counts door and windows that are open.
I read on the release notes for 0.105 that view and control features of Groups was removed 0.107 but the code I use doesn’t use this and can’t seem to figure out why it won’t load since 0.107
This is my alarm code
################################################################# # # # Packages/Alarm System # # # ################################################################# ################################################################# # # # Customize # # # ################################################################# homeassistant: customize: alarm_control_panel.ha_alarm: icon: mdi:shield-home binary_sensor.door_window_sensor_hiddenb9: friendly_name: Sliding Door device_class: door binary_sensor.door_window_sensor_hidden16: friendly_name: Front Door device_class: door binary_sensor.door_window_sensor_hiddena4: friendly_name: Laundry Door device_class: door binary_sensor.door_window_sensor_hidden13: friendly_name: Garage Door device_class: door binary_sensor.door_window_sensor_hiddenc0: friendly_name: Bathroom Window device_class: window binary_sensor.motion_sensor_hidden1f: friendly_name: Porch Motion Sensor binary_sensor.motion_sensor_hiddene9: friendly_name: Lawn Motion Sensor binary_sensor.motion_sensor_hidden3e: friendly_name: Woodpile Motion Sensor binary_sensor.motion_sensor_hidden8f: friendly_name: Garage Motion Sensor # binary_sensor.smoke_sensor_hiddenba: # friendly_name: Upstairs Smoke Detector # device_class: smoke ################################################################# # # # Group # # # ################################################################# group: security: name: Security icon: mdi:security-home view: yes entities: - group.alarms - group.doors - group.windows - group.motion alarms: name: Alarms icon: mdi:security view: no entities: - alarm_control_panel.ha_alarm motion: name: Motion icon: mdi:walk view: no entities: - binary_sensor.motion_sensor_hidden8f - binary_sensor.motion_sensor_hiddene9 - binary_sensor.motion_sensor_hidden3e - binary_sensor.motion_sensor_hidden8f doors: name: Doors icon: mdi:door view: no entities: - binary_sensor.door_window_sensor_hiddenb9 - binary_sensor.door_window_sensor_hidden16 - binary_sensor.door_window_sensor_hiddena4 - binary_sensor.door_window_sensor_hidden13 windows: name: Windows icon: mdi:window view: no entities: - binary_sensor.door_window_sensor_hiddenc0 ################################################################# # # # MQTT Control Panel # # # ################################################################# alarm_control_panel: - platform: manual_mqtt code: 1402 state_topic: home/alarm command_topic: home/alarm/set code_arm_required: false pending_time: 30 delay_time: 10 trigger_time: 300 disarmed: trigger_time: 0 armed_home: pending_time: 15 delay_time: 5 armed_away: pending_time: 30 delay_time: 5 triggered: pending_time: 10 ################################################################# # # # Template Sensors # # # ################################################################# sensor: - platform: template sensors: door_count: value_template: >- {{ states | selectattr('entity_id','in',state_attr('group.doors','entity_id')) | selectattr('state','eq','on') | list | count | int}} window_count: value_template: >- {{ states | selectattr('entity_id','in',state_attr('group.windows','entity_id')) | selectattr('state','eq','on') | list | count | int}} ################################################################# # # # Binary Sensors # # # ################################################################# ### For Lovelace UI ### ################################################################# # # # Booleans Sensors # # # ################################################################# input_boolean: garage_armed: name: Arm garage initial: off backdoors_armed: name: Arm backdoors initial: off #################################################### # # # Binary Sensor - Template # # # #################################################### # This area sets the icon type for each group open/closed or missing binary_sensor: - platform: template sensors: ## Door Sensors doors: friendly_name: Doors device_class: door entity_id: group.doors value_template: "{{ is_state('group.doors', 'on') }}" icon_template: >- {% if is_state('group.doors', 'on') %} fas:door-open {% elif is_state('group.doors', 'off') %} fas:door-closed {% else %} mdi:alert {% endif %} ## Window Sensors windows: friendly_name: Windows device_class: window entity_id: group.windows value_template: "{{ is_state('group.windows', 'on') }}" icon_template: >- {% if is_state('group.windows', 'on') %} mdi:window-open {% elif is_state('group.windows', 'off') %} mdi:window-closed {% else %} mdi:alert {% endif %} ## Alarm Panel alarm: friendly_name: Alarm entity_id: alarm_control_panel.ha_alarm value_template: >- {% if is_state('alarm_control_panel.ha_alarm', 'armed_home') %} on {% elif is_state('alarm_control_panel.ha_alarm', 'armed_away') %} on {% elif is_state('alarm_control_panel.ha_alarm', 'pending') %} on {% elif is_state('alarm_control_panel.ha_alarm', 'triggered') %} on {% else %} off {% endif %} icon_template: >- {% if is_state('alarm_control_panel.ha_alarm', 'armed_home') %} mdi:shield-home {% elif is_state('alarm_control_panel.ha_alarm', 'armed_away') %} mdi:shield-lock {% elif is_state('alarm_control_panel.ha_alarm', 'pending') %} mdi:security {% elif is_state('alarm_control_panel.ha_alarm', 'triggered') %} mdi:shield-close {% elif is_state('alarm_control_panel.ha_alarm', 'disarmed') %} mdi:shield-home {% else %} mdi:alert {% endif %}
Posts: 4
Participants: 2