nielsfaber / alarmo-card

Home Assistant card for controlling the Alarmo component
108 stars 20 forks source link

Alarmo-Card cannot establish connection #42

Closed ghxstxch closed 2 years ago

ghxstxch commented 2 years ago

Checklist

Expected behavior

The alarmo-card to function

Actual behavior

Card outputs "Could not establish a connection with the alarmo integration. Please check if it is installed and the correct entity is selected in the card settings." Triple checked over and the correct entity is being used, and the alarmo integration is indeed installed.

Steps to Reproduce

Issue occurs both using the HACS add-on to install and the manual method. Both create the same exact issue.

nielsfaber commented 2 years ago

Is Alarmo running? Do the logs say anything? Can you also check your browser logs?

ghxstxch commented 2 years ago

-Alarmo is running -Logs mention alarmo here: 2022-06-13 21:07:52 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecatedasync_get_registryto access device registry, use async_get instead. Please report issue to the custom component author for alarmo using this method at custom_components/alarmo/__init__.py, line 49: device_registry = await dr.async_get_registry(hass)

-Nothing fishy in browser logs it seems

ilgio commented 2 years ago

I have same problem

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Spross1 commented 2 years ago

I also have this issue every time I restart home assistant. Once I refresh the page everything works, but I have 3 tablets in my house wall-mounted that I have to manually refresh the page for after each restart. I would love a fix for this. I'm no expert by any means but it seems as if the card is starting up before Alarmo does and it throws this error. So if there were a check in place to wait until Alarmo is running, and then the card loads, it may fix the issue?

nielsfaber commented 2 years ago

@Spross1 Any idea how I could reproduce this in my own setup? For me alarmo-card starts up fine 10/10 times. I wouldn't know how to improve things if I cannot test the problem myself.

Spross1 commented 2 years ago

I don't think it's your fault. I'm only experiencing this issue with my wall-mounted tablets and as you've mentioned before that is a WebSocket issue I believe as those are the first 3 logs that pop up and I have 3 wall-mounted tablets. I followed another thread that will give me a "home assistant started" event in node-red, and I'll use this event to trigger a refresh of the page on my 3 tablets. So even though this wasn't a big deal for me to begin with, this solution will make all of my tablets fix their own issue. Thanks again for your work, I love both Alarmo and this card. For the others with this "issue", this discussion has a few solutions if you're not a node-red user. Node-RED, trigger sequence on HA Start]

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days