I’m playing around with alarmdotcomajax and I do have the Alarm part setup and it’s working. I can arm.disarm,etc. I’m lost trying to get the Sensors to work. I have the following in my config.yaml,but I’m not sure about the regex_search string.
I’m also using alarmdotcomajax, but not using the device_class: door piece since I’m not using a binary sensor. Your code seems like it should work, though. Here’s my sensor template if you want to try it out. I’d love to give credit to whomever originally developed, because I assure you it wasn’t me. But I can’t remember.
### Front Door Open Sensor ###
- platform: template
sensors:
alarm_frontdoor_open:
friendly_name: "Front Door Open"
value_template: >-
{% set system_status = state_attr('alarm_control_panel.alarm_system', 'sensor_status') %}
{% if 'Front Door is Open' in system_status %}
Open
{% else %}
Closed
{% endif %}
icon_template: >-
{% if is_state('sensor.alarm_frontdoor_open', 'Open') %}
mdi:door-open
{% else %}
mdi:door-closed
{% endif %}