is there a way to use a code to engage the alarm system?
First of all I want to congratulate all for the fantastic work on creating this code.
Iâm having a hard time making the sensors listed in the ânotathomeâ category active when Armed_away. They only stay in the âignore groupâ when either i arm_home or arm_away. So if any of that sensor become active doesent trigger the alarm.
Any help in solving this problem is apreciated.
Can this work with Envisalink ?
I donât quiet understand how to install it ⌠Instructions ?
Just wanted to say a big thanks for getting this off the ground. I thought I would share my setup if anyone is interested and wants to suggest any enhancements or want advice. This is still a work in progress. Blue is deactive, orange is 20 second pending or warning when before deactivation, black is armed, red is triggered.
very nice, would you mind sharing your config.
thank you.
No problem, a word of caution is this is still a work in progress and I have changed code in all three files. Some of the code may need to be tidied up.
Forgot to add that this code doesnât require a code to arm the alarm, just required to disarm.
Nice implementation. Your link however doesnât appear to be working anymore.
Anyone else have any issue with this link? I can access through my phone also on 4g no problem.
If I get a chance Iâll publish to github
NVM. Must be my work network blocking access to the site.
Works fine on Chrome on PC for me
@gazoscalvertos can you also include a automation sample for these ones:
alarm: automation.alarm_triggered
warning: automation.alarm_warning
This works great, is there a way to get a sensor or something output the sensor state for example Secure or how many sensors are open.
This would be great info to pull into HADashboardâŚ
I wish i was a coder
Sorry mate I havenât quite grasped your question. The code I included does count the number of open sensors.
does it out put to an entity in HA, so I could use that entity to display that in HADashboard, does that make sense ?
also should the following sensors work when the alarm is set away mode?
notathome:
- binary_sensor.motion_sensor_158d00015dbf8b
- binary_sensor.motion_sensor_158d00015dc0c3
No it doesnât output back to HA however this could be implemented using a sensor template. If I get a chance Iâll knock one up as this will also be handy for my FloorPlan SVG.
Those sensors need to be part of your immediate group too as the notathome title is a little misleading this group prevents the sensors triggering the alarm when in home mode
Cool can they also be put into delayed instead of immediate to prevent triggered when in home mode, or is this just applicable to the immediate group.
Love the work btw
Yeah they certainly can.
This was a little trickier than expected and no doubt there will be a cleaner way to do this. I couldnât figure out how to feed in allsensors from alarm control panel so we dont have to add each individual sensor. I tried to monitor the sensors using
{%- set alarm = states.alarm_control_panel.house %}
{%- set sensors = alarm.attributes.allsensors %}
which works in the template renderer however HA doesnt update when used in template sensors. Iâm not a fan of jinja tbh
Any way here is the working sensor config: