home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

Unable to set manual alarm #120349

Open i-am-shodan opened 1 week ago

i-am-shodan commented 1 week ago

The problem

I use the manual alarm integration. It's been working for years. Now when I try to set the alarm I get the error message Failed to call service alarm_control_panel/alarm_arm_away. Validation error: Arming requires a code but none was given for alarm_control_panel.garage_alarm

The yaml I use to set this up is:

alarm_control_panel:                                                                                                                                                                                  
  - platform: manual
    name: "House Alarm"
    arming_time: 10
    trigger_time: 10
    delay_time: 60

I've got to the documentation and it looks like there is now a new option code_arm_required which is optional and defaults to true. So I've set code_arm_required: false. I still get the error.

I don't want an alarm code and the documentation says its optional

What version of Home Assistant Core has the issue?

2024.6.4

What was the last working version of Home Assistant Core?

2024.5.? I think

What type of installation are you running?

Home Assistant Container

Integration causing the issue

alarm_control_panel

Link to integration documentation on our website

https://www.home-assistant.io/integrations/manual#code_template

Diagnostics information

No response

Example YAML snippet

alarm_control_panel:                                                                                                                                                                                  
  - platform: manual
    name: "House Alarm"
    arming_time: 10
    trigger_time: 10
    delay_time: 60
    code_arm_required: false


### Anything in the logs that might be useful for us?

_No response_

### Additional information

_No response_
home-assistant[bot] commented 1 week ago

manual documentation manual source

simondsmason commented 2 days ago

I am having the same issue but from a slightly different angle. I am using HomeKit device to access my Abode alarm system. As noted above it recently stopped arming and apparently requires the PIN code to be specified. I am using only the UI, no yaml. I found the post (below) with others having the same issue but in their case there was an ability to include the PIN in the UI and then arm would work. I cannot find the option in the UI to add the PIN in?

https://community.home-assistant.io/t/issue-arming-alarm-since-most-recent-update-with-pai-paradox/739984/9

daknightuk commented 12 hours ago

I have this exact same issue as @i-am-shodan I'd been using manual alarm for a while now (with 3 different alarms panels on the same system)

I used this code:

security system

alarm_control_panel:

This did not work with the regular card, so I swapped to a mushroom card, all working fine now with no error.