What is the difference between alarm_arm_away
and alarm_arm_home
for Manual Alarm Control Panel?
Sorry, don’t know for sure but I would interpret those states as follows.
-
alarm_arm_away
: Armed with no persons inside the apartment/house -
alarm_arm_home
: Armed with persons inside the alarm protected area
how do I switch off the manual alarm in automation (for example with a button or RFID reader?)
- alias: "Door RFID"
trigger:
platform: state
entity_id: binary_sensor.fibaro_system_fgbs001_universal_binary_sensor_sensor_65
to: 'on'
action:
service: homeassistant.set_state
data:
entity: alarm_control_panel.ha_alarm
state: 'disarmed'
does not work somehow
Hi!
The service is called alarm_disarm. Try this:
action:
service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.ha_alarm
thanks. Its a bit confusing. is there a way to find out what services a component supports?
The services for activated components should be shown in the developer tools page for services in the GUI. Many services are missing a description though, so this is something we should fix. The description will tell you what attributes a service supports when it is selected in the developer tools.
I set up the alarm panel and its working great. I was hoping to add a input boolean to the front end so I could just click to arm, I have the boolean showing however clicking it never arms the alarm do I have the service call to ‘arm away’ in my automation correct?
- alias: 'Arm alarm'
trigger:
platform: state
entity_id: input_boolean.arm_alarm
to: 'on'
action:
service: alarm_control_panel.alarm_arm_away
data:
entity: alarm_control_panel.ha_alarm
Check your formatting/indentation and it should be entity_id
not entity
. I think I did the original typo above. Sorry. I’ve corrected it now. I recommend trying services in the developer tools section before updating your config. It makes troubleshooting a lot faster.
- alias: 'Arm alarm'
trigger:
platform: state
entity_id: input_boolean.arm_alarm
to: 'on'
action:
service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.ha_alarm
Thank you!! I did actually have it correct in my configuration but think I have been chasing my tail I realized my alarm panel notification had stopped working completely, I had it working earlier than added the input boolean, commenting it my changes and still didn’t fire. So I start testing a few other things found many of my automation’s are not working and push bullet is only working sometimes when testing through the front end, missing error logs and some other strange behavior.
So you can arm the manual alarm from an automation without having to pass the passcode to it? I ask becuase I am planning on doing this via an Alexa intent that first checks the sensor states and then complains if one of them is in an on state.
Knowing this would be part of the solution.
No, not if you have set up a code for the alarm in your config.
Thanks! I guess I’ll have to think about this.
Yes
I have alarm set to arm when I leave and disarm upon arrival
Ho do you did that?
I have this:
- alias: "Alarm triggered"
trigger:
- platform: state
entitty_id: alarm_control_panel.ha_alarm
to: 'triggered'
action:
service: notify.pushover
data:
message: "Alarm triggered"
title: "Alarm"
- alias: "Alarm armed"
trigger:
platform: state
entitty_id: alarm_control_panel.ha_alarm
to: 'armed_away'
action:
service: notify.pushover
data:
message: 'Alarm armed'
title: 'Alarm'
however it does not work…
#################################################
# Alarm Auto Arm Away when LEAVE #
#################################################
- alias: 'Alarm Away when Leave home'
trigger:
platform: state
entity_id: device_tracker.myphone
from: 'home'
to: 'not_home'
action:
service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.alarm
data:
code: xxxx
#################################################
# Alarm Auto DISARM when RETURN #
#################################################
- alias: 'Alarm disarm when return home'
trigger:
platform: state
entity_id: device_tracker.myphone
from: 'not_home'
to: 'home'
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.alarm
data:
code: xxxx
This passes the alarm code to the panel? I didn’t’ think you could do that!
I think I got this from an example file.
You are able to pass data with all service calls if needed.
I know this is going to make you laugh, but this is actually a revelation to me. (And I’ve been here for a bit. )
Thanks very much for sharing your knowledge!