Trying to get my Alarm.com sensore to show open and closed status. I have it set up and it’s there,but opening and closing the door doesn’t do anything…
- platform: template
sensors:
alarm_frontdoor:
friendly_name: "Front Door"
device_class: door
value_template: >-
{{ state_attr('alarm_control_panel.alarm_com', 'sensor_status')|regex_search('Front Door is Open', ignorecase=TRUE) }}
I can’t find anything that looks like your screenshot,so I’m not sure what I’m doing wrong. The only thing in attributes for that sensor is…
friendly_name: Front Door
device_class: door
Ok,it’s working now. I was about to say t wasn’t,but there is a 10 second delay for status changes.
Now do I repeat the same template for the Side door?
Appreciate the help.
I am having a similar issue, here is my yml
binary_sensor:
- platform: template
sensors:
# Contact Sensor
alarm_front_door:
friendly_name: “Front Door”
device_class: door
value_template: “{{ state_attr(‘alarm_control_panel.alarm_com’, ‘sensor_status’)|regex_search(‘Front Door is Closed’, true) }}”
I keep getting this error
Invalid config for [alarm_control_panel.alarmdotcom]: [binary_sensor] is an invalid option for [alarm_control_panel.alarmdotcom]. Check: alarm_control_panel.alarmdotcom->binary_sensor. (See ?, line ?).
this line works perfectly in my template editor, what am I missing?