I haven’t figured out why Alarmo starts as armed. I am not positive it happens every time, but it does happen frequently. Fortunately, Home Assistant has been stable and isn’t restarting very often so it hasn’t been a surprise.
I discovered a bug last week that might cause this.
But only if Alarmo encounters a timeout on startup (it takes more than 30 seconds for all your sensors to become available after starting HA).
If this is the case for your system then I might have a solution that I can publish soon.
Otherwise please use GitHub to raise the issue.
I do have quite a few zwave devices and they do take considerable time to be available after home assistant starts. That may change in the future as we migrate to the new zwave implementation, but I haven’t had the time to look into that. Definitely look forward to trying your solution!
My approach to arming by coincidence should also solve this problem.
Upon any relevant change of a parameter (Google calendar event, someone arriving/leaving home, guests in the house, restart of Home Assistant,…) I have created a decision tree that decides what state the alarm should be in.
Alarmo card
A while ago I shared my plans for making an alarmo-card.
Today it is ready for use.
The card is very much based on the Lovelace Alarm Panel card, but it offers some feedback to the user (such as wrong pin code entered, sensors that prevent arming, but also shows a countdown for exit/entry delays).
After updating, it should automatically become available for Lovelace.
For more info, check out the documentation.
Alarmo.arm service
This service allows you to arm the alarm (similar to the alarm_control_panel.alarm_arm_away etc. services), but brings some additional options for those who want more control over the arming (skipping the delay, bypassing sensors).
(On request of @onkytonk)
Fixed a bug causing the alarm to start in the wrong state after restarting HA (for the users who experienced this issue: please let me know if the problem is solved now)
Add the ALARMO_DISARM command for disarming the alarm through actionable push message (on request of @Heimdall_Midgard)
Let me know if you like the card, feedback is always welcome
No it should be a matter of restarting HA (always needed when updating a custom_component) and then it should be available.
I just performed the update via HACS on another HA instance I have running, it worked flawlessly.
In the UI editor it should appear right at the bottom:
I started playing around with it tonight. It seems I need to input a code to arm the alarm with the service. Is this intentional?
I also found that if the order of the data for the service call starts with code first, the code ends up being input on the lovelace card, and I can then simply press Disarm without having to input a code.
If you configured Alarmo to require a code for arming, you will have to provide it with the service too (same as alarm_control_panel.alarm_arm_away).
But the code field is optional, as are all other fields.
I don’t really understand what you mean.
The code is treated with care by Alarmo, I don’t see a way how the (correct) code could get automatically filled in the card.
Could you share the process you’re following?
I have completed a few restarts with the new version and so far, it has not started in the armed state!
Is there any way to keep the keypad visible always? It appearing and disappearing between armings causes choas on the wall panel tablet as things shuffle around because of the size difference.
Fair point, I didn’t think of this at all.
I always saw it weird that the alarm panel card shows the keypad even if the system is disarmed, but your situation seems to be a good reason.
Actually there is a property I could add to define the (maximum) height of the card, it would avoid the reshuffling.
On the other hand you will be left with a gap if so.
Hence my question to you: would you prefer to see a (disabled) keypad or a white space?
Whoops, seems like I didn’t test this case, my bad.
I will have to fix it in a next release.
For now, you can just fill in a random code, Alarmo will not look at it if your alarm doesn’t require a code for arming.
I’m referring to these settings:
Are you’re telling me that a code you enter in your node-red automation shows up in the Alarmo-card?
That sounds like witchcraft to me, I cannot think of a way how the Lovelace GUI is coupled to node-red.
Don’t play with these settings. It’s meant for visitors / kids who should have limited control over the alarm.
Aesthetically, I am not sure if dead space or a disabled keypad would be best. Maybe there is some other useful information that could be displayed while disarmed? My initial thought would be just a grey’ed out keypad.
Can alarmo be set according to presence i.e everyone away – arms away mode and/or somebody arrives at home disarms away mode? Or, by using a specific time, i.e. at 2200 night mode starts?