Comments (2)
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.
I kept all settings in the default state:
Obviously, playing with the fields 'allow code for arming' and 'allow code for disarming' will not help you, but you should get a different message in the HA log (e.g. "User test has no permission to arm the alarm").
If I use the alarmo-card for arming/disarming the alarm, both codes 1111 and 2222 are accepted, for both arming and disarming.
Any other code is rejected:
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.
The code simply goes through the list of users and compares the stored (encrypted) code with the entered code after encryption until there is a match.
Obviously, each user should have a unique pin code for this to work well.
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.
Perhaps you could erase all current users and start with only 2 users, each having a pincode that you remember, and expand from there?
Since I don't experience the problem you are having, I don't know how to help further.
from alarmo.
@nielsfaber thanks for taking the time to look at the bug report 💯
I filed a wrong bug report :(
Here's the RCA:
From the 6 users I have, I tried 3. 1st was the first user (me), the 2nd one of my kids, and the 3rd a newly created automation user.
The first user obviously worked fine. I keep my code well protected in my password manager.
The 2nd user, one of my kids, gave me the code that I had provided, but, that one I think in hindsight I hadn't actually provisioned yet, since I was testing and setting up the alarm. After now recreating that user with the code, It works. So I'm sure it's a user error.
The automation code is now working after retesting (with the same password). I'm assuming it might have something to do with restarting HA. I had the automation use secret.yaml, so maybe something to do with not reloading the files (and tried using '!secret alarmo_automation_code' directly in an automation (will see if it works in a template expression)
OTOH, I did test in the developer tools->services and that did not seem to work as I recall.. oh well.
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 :)
from alarmo.
Related Issues (20)
- Failed to call service. Cannot Disarm HOT 1
- Alarm can no longer be disarmed by Alarmo Button HOT 11
- Async_alarm_disarm() takes 1 positional argument but 2 were given HOT 14
- Disarm MQTT not working HOT 9
- Sensors open with delayed alarm HOT 1
- Alarmo With google HOT 13
- Cannot disable alarm through HA control panel or automation HOT 1
- Alarmo not disarming HOT 4
- AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given HOT 1
- Areas & Modes seem to overlaps rather than play nicely?
- enable/disable no longer possible after update to 2024.6.1 HOT 9
- Failed in call alarm_control_panel/alarm_disarm. AlarmoBaseEntity.async_alarm_disarm() takes 1 positional argument but 2 were given HOT 3
- Possibility for noficiations/actions for "sequence of events" in Triggered-state
- Failed to Call Service HOT 3
- Different code settings per area
- Entity alarm_control_panel. not support this service. HOT 1
- Multilanguage support with Google Assistant
- Alert when arming and a sensor is open
- Wrong version shown HOT 1
- LMissing Alarm control panel after updating
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alarmo.