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?
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)}}
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.
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
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