-
Notifications
You must be signed in to change notification settings - Fork 117
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
arming/disarming does not work properly with multiple users #948
Comments
I just tried to reproduce the bug you are reporting but without success. In my test case I have two users: The admin user has pin code 1111, the test user has pin code 2222. If I use the alarmo-card for arming/disarming the alarm, both codes 1111 and 2222 are accepted, for both arming and disarming. In summary, all works as I would expect. Also in the source code I don't see any reason why the code for the first user would be treated different than others. alarmo/custom_components/alarmo/__init__.py Lines 282 to 290 in 77a294e
At this point, I would assume that when the log (or alarmo-card) states that a wrong code was entered, this is indeed the case. |
@nielsfaber thanks for taking the time to look at the bug report 💯 Here's the RCA: The first user obviously worked fine. I keep my code well protected in my password manager. But, seeing the rather plain oversights that I did, I am also summing that up under user error. Testing the users in different scenarios (arming/disarming, changing users for arming/disarming, arming/disarming different areas interleaved etc) everything works like a charm 👍 I'm sorry for wasting your valuable time, I've tried to make up by buying you some cups of coffee :) |
Alarmo Version
v1.10.1
HA Version
2024.5.4
Bug description
I have 5 users (family + 1 for automation) but only the primary/first user seems to be able to arm/disarm the alarm with the code provided (using pincode input)
both manually as well as via calling a service (both in developer tools and from an automation).
The logs show that the wrong code is provided, but I am sure the codes are correct (having tested them when creating them, especially true for the last user which is used for automation)
Steps to reproduce
begin state: multiple users with pincode, all with the same settings enabled on the codes page (all toggles areon).
Only the first user (or maybe only 1, I'm not sure but think it's the first user I created for myself), is able to arm/disarm.
I have tried disabling/enabling the users to see if the problem is fixed and toggled all the other settings on the 'codes' page (require for arming/disarming/switching mode) but all to no avail.
Using the first user I created I am able to arm/disarm multiple areas (I use 2) both from the alarm panel as well as from calling a service.
The other users are not able to do so.
Relevant log output
also:
The text was updated successfully, but these errors were encountered: