Skip to content

alarm_trigger service disarms instead of triggering #2580

Closed
@GussyH

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
  1. arm the alarm
  2. call alarm_trigger
  3. watch the state - it goes to Pending then Disarmed

Traceback (if applicable):

Additional info:

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions