alarm_trigger service disarms instead of triggering #2580
Description
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version
):
0.24.0
Python release (python3 --version
):
Python 3.4.2
Component/platform:
alarm_control_panel
Description of problem:
alarm_trigger service disarms the alarm!
Regardless of whether the alarm is in an armed or disarmed state, calling the alarm_trigger service appears to first set the state to 'pending' and then to 'disarmed'. This is the opposite of what you'd want.....
Expected:
The alarm should enter the triggered state, and remain in that state until disarmed.
Problem-relevant configuration.yaml
entries and steps to reproduce:
alarm_control_panel:
platform: manual
name: "HA Alarm"
code: xxxx
pending_time: 20
trigger_time: 20
- arm the alarm
- call alarm_trigger
- watch the state - it goes to Pending then Disarmed
Traceback (if applicable):
Additional info: