-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA Panel disarm without code #100
Comments
Could you specify what version of HA you are using (as there is no such thing as current version) and also the version of HA when it worked as expected (if you remember). |
By the way, could you explain what exactly do you mean? |
The current version of HA: Home Assistant 0.110.4
Version it last worked on unfortunately not at the moment. The first time I noticed it was about Issue |
I tried to reproduce it on my system running HA 0.109 and then after updating to 0.110.5. Can you back up your |
I can confirm the actions described. I thought it was by design, to allow a Dashboard with Arm/Disarm functionality without need of a Code for on our Personal Carry Devices while having Mounted Devices in the residence that required a Code. In any case, you can Disarm the System utilizing the Lovelace Alarm Panel Card without needing to Enter a Security Code. Just click the Disarm Button.
I did some additional testing. If I set the Option to Require a Code to Arm the System, the Lovelace Alarm Panel Card cannot Arm the System at all. No matter if I Click Arm Home or Arm Away it does not do anything. However, if I use the BW Alarm Panel to Arm the System (using a code), the Alarm Panel Card will still Disarm the System without the need for a Code. More additional Testing. If I set a "Master Code", then the Lovelace Card does in fact properly allow/require a Code to be entered to Arm/Disarm the System. Seems the no need for a Code only applies if there is no Master Code Set. |
@RascleMB it would be great if you could do the following:
|
bwalarm.yaml (User Codes and Password Removed for Security)
|
Thanks. |
As you know I wasn't the original poster and I was just trying to help, but if it is this hard to even get Debugging Enabled. I tried Adding "custom_components.bwalarm.alarm_control_panel: debug" to my configuration.yaml as your post suggested, but Config would not Validate. Tried using the Developer Tools, and there is no Logger Service of any kind listed. Here is the info needed to "Reproduce" the Issue(s): Any Configuration WITHOUT a "Master Code" and "Require Code to Arm" Enabled: Any Configuration WITH a "Master Code" and "Require Code to Arm" Disabled: Any Configuration WITH a "Master Code" and "Require Code to Arm" Enabled: Though I am new to HA (just started switching from Wink a couple of weeks ago, heck I haven't even moved my Alarm nor any of my sensors to HA yet and just set up a Lutron Pico Remote as an Alarm Trigger for Testing before moving that stuff) I do work in IT and do some Programming. Though I have not looked at your python code at this point, it seems/appears to be an Issue with the Underlying HA Alarm Panel when a "Master Code" is NOT set in your Integration. |
Thanks, I'll use your description to reproduce the issue and report back if I have any questions. Just a couple of notes:
Most likely wrong indentation, look at the second example here and replace component's name.
If you click on |
That was it. No logger: in configuration.yaml Must have missed that part in the post for the custom_component.bwalarm.alarm_control_panel: debug. Prior to added the logger: to configuration.yaml there "was no logger in Developer Tools/Services for me to pick. The ONLY entries were: Now that I have logger in configuration.yaml the options are there. As I indicated, not new to computers but new to HA. Must have missed that requirement somewhere. Just had to do a major restore of 9 Servers for a customer, so running on no sleep at this point, but will try to get some Logs for you now that I have the Options available. |
Actually, there is no need for logs. I have a working version but it's not as simple as it looks because the changed code affects service calls and MQTT commands, too so I need to test it properly before releasing. p.s As I had |
Ok thanks. That is correct, only seems to be an issue when there is no Master Code. I myself would prefer not to have a Master Code, to limit number of codes available for use, but guess I could set it to be the same as my code. I understand. I work in IT and do some programming here and there as well. Quick question, does the fix cause the Lovelace Card to Prompt for a Code when/where required (like the BW Panel does) or will it prevent the Disarm Button on the Lovelace Card to no longer work since it does not prompt for a code? Being a computer geek (I do not work, I go to the office and do my hobby all day long and get paid for it :) ) and already having programming knowledge has helped a lot in the learning curve, but yes definitely a lot to digest. Which is good, means lots of Options for getting things set up exactly the way you want. After taking on this project, now wishing I had switched from Wink to HA a long time ago. Only thing left is setting up Automation for the Alarm System to trigger the Siren and Flashing Lights when it triggers, and eventually Remote Access (not sure if I will go VPN Direct or Cloud based yet). Possibly tie in my Security Cameras eventually as well, but not sure about that yet since I already have Remote Access and can check them anytime/anywhere already. |
That would mean you wouldn't see any reference to a user with that code in the alarm's log as to work correctly all codes must be unique.
sure. it will also fix the situation when you click Disarm and it disarms without entering a code.
shouldn't be difficult, there are examples here. however, in each setup there might be some things to tweak depending on devices you use.
I rarely need it so currently use Tor add-on and it works for me. |
I see you are already working on fixing this issue. I did just want to say that this is exactly what I have been experiencing on the HA 0.112.3 version. I have a MASTER PASSWORD set and 'Require a passcode to set the alarm' Disabled. I am able to Arm my alarm system, which I actually have linked via an automation to my Ring Alarm. However, I can disarm the system without needing to enter a code via the Lovelace card. |
I'm also experiencing this issue: |
@kalyway101: Strange, the only way I can Disarm the System without a Passcode is if I DO NOT have a Master Code Set. With a Master Code Set, Lovelace on my system functions exactly the same as the Alarm Panel. Prompting for a Code when/where needed depending on if "Require Passcode to Set" is Enabled or Disabled. Actually if I do not have a Master Code Set and I Enable "Require Passcode to Set", I cannot even Arm the Alarm from Lovelace. The Arm Buttons do Nothing. However if I Arm the System through the Alarm Panel (with a Code) I am able to Disarm the System without a Code from Lovelace when there is no Master Code. @Lukejb14: Do you have a Master Code Set in the HA Alarm Panel settings? The only way I experience being able to Disarm the System without any Code from Lovelace is when No Master Code was set up (see description of my experiences above @kalyway101 ). I know akasma74 was working on a fix but have not heard anything recently. Does not affect me much as I actually like being able to Disable from Lovelace without a Code. I have a Phone set up just inside the Door that is logged in as a HA User that only has Access to the BWAlarm Panel (which properly requires Arm/Disarm Code when/where needed no matter if there is a Master Code present or not), and have "my" Login set to use the Lovelace Alarm Panel so I can Arm/Disarm the System without needing to enter the Code from it. |
@RascleMB: I'm assuming HassOS 4.11: bwalarm.yaml:
|
Guys, could you all read this? |
Thanks for working on this! I've read both posts, just want to mention that this also shows up when there is only a 'master code' set, just like in Lukejb14's post above. |
Hi, Thanks first for your great work ! Is there any evolution regarding this point ? Best regards, and thanks a lot ! |
As I said, I have a working version that needs proper testing. |
hi i have the same problem in home assistant version 2021.1.5 Has this problem been solved in any way? |
Current version: v1.12.6
Last known working time: March 11
Home Assistant version: Latest
Describe the bug
So I have the addon setup and everything is working 100% when using the alarm page, however, If I try to use the HA alarm panel the status does update in BWalarm but the HA panel allows me to disarm the BWalarm without entering any code at all.
I think this is more of an update in HA as I did install the same version I had back when it worked v1.12.1 and its still able to disarm without the need of code from the HA pannel.
To Reproduce
In HA interface add an alarm card then arm It then click disarm without entering a code
bwalarm.yaml**
platform: bwalarm
panel:
cameras: []
enable_floorplan_panel: 'False'
hide_sidebar: true
panel_title: ''
camera_update_interval: ''
hide_sensors: 'False'
enable_night_mode: false
states:
armed_away:
immediate:
- binary_sensor.bedroom1
- binary_sensor.bedroom2
- binary_sensor.kitchen_window1
- binary_sensor.livingroom_pir
- binary_sensor.livingroom_window_1
- binary_sensor.livingroom_window_2
- binary_sensor.livingroom_window_3
- binary_sensor.livingroom_window_4
delayed:
- binary_sensor.kitchen_door
- binary_sensor.kitchen_pir
override: []
pending_time: 20
warning_time: 20
trigger_time: '300'
armed_home:
immediate:
- binary_sensor.kitchen_door
- binary_sensor.kitchen_window1
- binary_sensor.livingroom_window_1
- binary_sensor.livingroom_window_2
- binary_sensor.livingroom_window_3
- binary_sensor.livingroom_window_4
delayed: []
override: []
pending_time: 0
warning_time: 0
trigger_time: 600
armed_night:
immediate: []
delayed: []
override: []
pending_time: 0
warning_time: 0
trigger_time: 600
users:
name: Hass.io
enabled: false
code: 3ca6f0b7827e47ccaf9221698bbad773
picture: ha.png
name: Jack
enabled: false
code: 90f830a455bb498baf9ae8b82ffaa7d6
picture: ha.png
name: Hass.io
enabled: false
code: e17c729fc2854810a06656e730e03b17
picture: ha.png
name: Riaan
enabled: false
code: 83543c5bf8514721959556aa2be5d959
picture: ha.png
name: Sam
enabled: false
code: a4fe18d3e83442168a2a4fa2d2bade2e
picture: ha.png
name: Home Assistant Cast
enabled: false
code: 928dee79b731434b9d916752593fc879
picture: ha.png
name: Almond
enabled: false
code: 5e6971c7091b4d54aa2b9d8a536f141a
picture: ha.png
name: Demo
enabled: false
code: ba59303e9760460b86ef0f953bbe22b3
picture: ha.png
name: Home Assistant Cloud
enabled: false
code: b5c7d1c727824f2c9afeaba22c21b444
picture: ha.png
name: Home Assistant Cloud
enabled: false
code: a3c2fe46a2d04b94b2606e2c67b572d9
picture: ha.png
enable_persistence: true
code: '1234'
admin_password: ****
code_to_arm: false
The text was updated successfully, but these errors were encountered: