[Custom Component] Alarmo - browser managed alarm system

Hi @neliss
Would I be correct in thinking that when I have my sensors defined as Windows they no longer work with the entry delay? I’ve noticed that when I don’t disarm prior to entry the alarm sounds.

Yes, you might want to clear the sensor type (click the X in the selection menu) to have all options available.
I will try to improve this behaviour in an upcoming release. Can imagine it’s rather confusing right now.

Just started using Alarmo and it’s great! I love the alarmo-card - but I do have constant issue when using my external URL (nabu casa), doesn’t matter if it’s browser or companion app (both Android & iOS). Internal URL always works - I would love for this to become a separate lovelace custom card within HACS - since none of those seem to have this caching issue. At least until the caching issue is resolved so it works as expected. Got woken this morning by the alarm since my girlfriend couldn’t access the alarm panel but met with the card not found error instead :smiley:

But I wasn’t able to find any decision from this poll? Have you made one @neliss?

Thanks for the great work!

@Rittsel
I don’t like hearing that you are still struggling with caching problems of the Alarmo-card.
Based on the poll results, the problem seemed minor so I decided to keep it inside of the alarmo ‘package’.
I did ask for help with the HA devs and got a review of my code, all seemed fine except one flag that might have something to do with the caching problems. This has been fixed some releases ago, but there does not seem to be a noticeable change.

So maybe it’s better to just have it as a separate card.
I just opened up a repo for Alarmo-card and requested it to be added to the HACS store.
I guess in a week or so it should become available in HACS (in the frontend section).
In a next update of Alarmo, the card will be removed from the code (since I don’t want to maintain the code in both places).
This will mean that all current users of Alarmo-card need to install the card separately.
I will give a shout when it is added in HACS.

1 Like

Thanks @neliss - I really appreciate the quick action here and elaborate answer! Really awesome to see!

Important announcement for alarmo-card users
Currently the alarmo-card comes included with the Alarmo integration and is automatically installed in HA.
However, multiple users experience (or have experienced) issues where the card cannot be found by the browser.
I discussed this problem with the HA developers, but they were unable to find the cause or provide a solution.
As an alternative, the alarmo-card will be changed into a separate custom card which needs to be installed+updated independently (as is usually the case for custom cards).

What does this mean for you?

  • If you don’t use alarmo-card (or you don’t even know what it is), you can ignore this message.
  • If you do use alarmo-card, please install it separately. The card can be installed via HACS but also can be installed manually. Refer to the installation instructions here.

Remarks:
Alarmo-card will be removed from the alarmo integration ‘package’ in an upcoming release (ETA: ~2 weeks). You can choose to wait until this release, or install the card already. Updating Alarmo without having the card installed, will cause the card to disappear from your dashboard.

Having alarmo-card + alarmo installed may cause an error message in your browser logs:

Uncaught DOMException: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “alarmo-card-editor” has already been used with this registry

This message basically indicates that the card was installed twice, which is due to the fact that the current version of Alarmo comes with the card as well. The message is harmless and will be solved.

I’m sorry for your troubles, hopefully the transition will be smooth for everyone :+1:
As always, please let me know if you experience any problems. I’m happy to help!

5 Likes

@neliss, I have struggled a bit as well. Solved it for a short period then disappeared again. The move to have the card separately is a good move. Hopefully it will solve all the problem, what some of us had, once forever.
Thanks for the great work!

I would like to add a delay when arming from my keypad on the wall, but I don’t want a general delay for the alarm when arming from the alarmo card and other automations. Is that possible in some way?

I just updated alarmo in hacs, and i am now getting this error on startup.

2021-08-15 23:07:04 INFO (MainThread) [homeassistant.setup] Setup of domain alarmo took 0.0 seconds
2021-08-15 23:07:04 INFO (MainThread) [homeassistant.helpers.storage] Migrating alarmo.storage storage from 2 to 4
2021-08-15 23:07:04 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Alarmo for alarmo
  File "/config/custom_components/alarmo/__init__.py", line 46, in async_setup_entry
  File "/config/custom_components/alarmo/store.py", line 596, in async_get_registry
  File "/config/custom_components/alarmo/store.py", line 591, in _load_reg
  File "/config/custom_components/alarmo/store.py", line 265, in async_load
  File "/config/custom_components/alarmo/store.py", line 236, in _async_migrate_func
  File "/config/custom_components/alarmo/store.py", line 242, in <listcomp>

I’ve updated from Alarmo 1.6.2 to 1.7.1 and I have a similar loss of Alarmo (regardless as to whether HA 2021.8.6 or 2021.8.3). I’ve had to roll back to a 5 day old snapshot and I’ll stay on Alarmo 1.6.2 until the issue is resolved.

Strange, no issues here upgrading to 1.7.1

Do you use a separate Alarmo card?
The original card has been removed from integration.

I applied a second alarmo card and same keypad-less lovelace card appeared, as is also the case if trying to use the standard lovelace card. That is when I spotted Alarmo was also missing from the sidebar and the log confirmed it had not loaded properly on reboot.

Strange, I use the Alarmo 1.7.1 card and integration and everything works fine. I only had a problem displaying the version, and I fixed it by clearing the browser cache.

Just updated to v1.7.1 and also installed the alarmo-card via HACS. I noticed in the installation instructions for alarmo-card it says:

Use the GUI; Configuration -> Lovelace Dashboards -> Resources Tab to add /hacsfiles/alarmo-card/alarmo-card.js

However, there was already an entry for alarmo-card except with the following URL:

/hacsfiles/alarmo-card/alarmo-card.js?hacstag=391372854100

It appears HACS already adds it to the resources section, so this part of the instructions might be unnecessary (caused a bit of confusion or me).

Additionally, every time I view the alarmo-card in the front end I notice this entry in the HA logs:

Logger: frontend.js.latest.202108090
Source: components/system_log/__init__.py:190
First occurred: 2:39:49 PM (9 occurrences)
Last logged: 2:49:44 PM

* :0:0 Script error.
* http://xxx/hacsfiles/alarmo-card/alarmo-card.js:162:73 NotSupportedError: Cannot define multiple custom elements with the same tag name

I noticed the same thing. I added the reference to /hacsfiles/alarmo-card/alarmo-card.js as well but am indeed wondering whether it should not just be one of the two instead of both.

Was on v. 1.6.2 and had everything working fine. Then, updated to 1.7.1. My alarm card disappeared with a message saying could not be found. I went back to 1.6.2 and now the size scaling for the buttons is not showing up. How do I get the slider back?

Probably due to this, mentioned a few post up from yours
[Custom Component] Alarmo - browser managed alarm system - Share your Projects! / Custom Components - Home Assistant Community (home-assistant.io)

It also in the changelog for 1.7.1
Release v1.7.1 · nielsfaber/alarmo (github.com)

1 Like

I’m getting the same error and on 1.7.1, Alarmo won’t load.

Sorry, this is now fixed with release v1.7.2.