Alarm.com Sensors

Has anyone had any luck tapping in to smoke or CO sensors? As far as I know, the only way to see the sensor_status attribute if smoke or CO is detected would be to actually set it off, and that’s not exactly easy to do. I’m wondering if I can just use something like this?

value_template >- "{{ state_attr('alarm_control_panel.alarm_com', 'sensor_status') | regex_search('smoke', ignorecase=TRUE )}}"

I don’t even really care which room detects smoke/CO. I really just want one sensor for the entire house. Thoughts?

I’ve been at this for awhile and I keep getting this error

Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: unexpected char ‘‘’ at 14) for dictionary value @ data[‘sensors’][‘alarmcom_motion’][‘value_template’]. Got ‘{{ state_attr(‘alarm_control_panel.alarm_com’, ‘sensor_status’) | regex_search(‘Motion Detector is Activated’, ignorecase=TRUE)}}’. (See ?, line ?). Please check the docs at Template - Home Assistant

My config is
sensor:
- platform: template
sensors:
alarmcom_motion:
friendly_name: “Alarmcom Motion”
value_template: >-
{{ state_attr(‘alarm_control_panel.alarm_com’, ‘sensor_status’) | regex_search(‘Motion Detector is Activated’, ignorecase=TRUE)}}

What am I doing wrong?

you are using the wrong quotes you want to use " not the fancy ones like so:

friendly_name: "Alarmcom Motion"
1 Like

I know that this thread is a few months old but I am really stuck.

My entity is labeled alarm_control_panel.5123_alarm
Below are the filter attributes
code_format: null
changed_by: null
code_arm_required: true
sensor_status: Motion Detector(2) is Activated.All doors and windows closed.
friendly_name: 5123 Alarm
supported_features: 3

On the alarm.com web site my Sensor Name is listed as Office Window (14). BTW does any thing need to be activated on the alarm.com website.

This is in my config.yaml

####################################################
#                                                  #
#            ALARM.COM                             #
#                                                  #
####################################################

#https://www.home-assistant.io/components/alarmdotcom/
alarm_control_panel:
  platform: alarmdotcom
  name: 5123 Alarm
  username: !secret alarm_username
  password: !secret alarm_password

This is my set up. I have tried all three versions (one at a time) of the value template which is in my binary_sensor.yaml

What am I missing. Do I need to add other information to other .yaml files

  - platform: template
    sensors:
      office_window:
        device_class: window      
        friendly_name: Office Window (14)
        entity_id: alarm_control_panel.5123_alarm
        value_template: "{{ 'Office Window is Open' in state_attr('alarm_control_panel.5123_alarm', 'sensor_status') }}"
        value_template: "{{ state_attr('alarm_control_panel.5123_alarm', 'sensor_status')|regex_search('Office Window (14) is Open', ignorecase=TRUE)}}"
        value_template: >-
         {{ state_attr('alarm_control_panel.5123_alarm', 'sensor_status') | regex_search('Office Window (14) is Open', ignorecase=TRUE )}

Any help would be greatly appreciated. I have been working on this the last three days and have not made any inroads.
I have to be missing something obvious.
Thanks
carltonb

I think if you start a name with a number, you have to do something different in your template.

Hi all,
By any chance, has anyone integrated other alarm.com components like light switches,… in to home assistant? Is it possible or only alarm.com?
Thanks