I also have problem with false alarms (damn cats…) and was hoping to combine the sensors - ie trigger the alarm if two sensors indicate motion in a certain amount of time.
Unfortunately I don’t understand how to proceed with the binary sensors for this, right now I have binary sensors like this - can you point me on how to proceed?
ok, your request is not very detailed but let’s try.
This is one of the approaches - I’m creating one binary sensors that will turn on if there is signal from more than one of your original sensors in 30 seconds.
I assume that your sensor.sensora_burglar etc change their state to on and then back off almost instantly - if not, you’ll need to adjust delay_off below.
First of all we need to make wrappers - binary sensors that retain their on state for 30 seconds.
Then we create a combined binary sensor out of these
grosssensor:
friendly_name: "combined sensor"
delay_off: 5 # will turn off after 5 seconds
value_template: >
{# add states of all sensors in the list #}
{% set observed_states = [
states('binary_sensor.rorelsesensor_sovrum'),
states('binary_sensor.rorelsesensor_hall'),
states('binary_sensor.rorelsesensor_vardagsrum')
]
%}
{# trigger if there is more than one `on` status #}
{{ observed_states.count('on') > 1 }}
Now you can use binary_sensor.grosssensor in your bwalarm.yamlinstead of your original sensors (don’t forget to remove them!).
Haven’t tested it “live” as I’m pretty happy with my PIRs so please let me know if it works for you.
NOTE: because of the changes in HA your alarm panel has now a new address:
instead of http://hassio.local:8123/alarm it’s http://hassio.local:8123/custom-alarm
Don’t forget to update your wallpanel configs etc
I have updated to 1.12.2 and now have two Alarm side menu items… one is the original URL (/alarm) and the other is the new /custom-alarm. Any ideas why / how to get rid of the old one?
Ive made some automation that calls the service to arm_away and disarm.
But how do you solve the posibility to add the pending too.
Seems like too me that when you call the service “arm_away” it arms straight away.
Do you add a delay in the automation instead or is it possible to put it in pending?