Skip to content
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

Config flow could not be loaded: {"message":"Invalid handler specified"} #140

Closed
galtamur opened this issue Feb 9, 2024 · 9 comments
Closed

Comments

@galtamur
Copy link

galtamur commented Feb 9, 2024

Describe the bug
I downloaded the latest stable version (2.2.1), created the folder in the custom_components folder, restarted HA, but when i tried adding the integration i receive the error message below.

Error message
Config flow could not be loaded: {"message":"Invalid handler specified"}

Expected behavior
I would expect to complete the integration setup process.

Additional context
I am using the release 2024.1.5 of HA Core on Docker.

To Reproduce
Just run the configuration flow by adding the integration. I tried to restart HA several times but the result is the same.

Environment

  • Operating System (OS): Debian
  • Library version (commit or version number): 2.2.1
  • Home Assistant version: 2024.1.5
  • Last working Home Assistant release (if known):
@palazzem
Copy link
Owner

palazzem commented Feb 9, 2024

Hello @galtamur, thanks for reaching out! It looks like there may be some sort of incompatibility that we should investigate. I have a few questions that may help me to identify and resolve the issue:

  1. Are there any other errors in your logs as soon as you add the integration? Or is this the only thing that you see in your logs?
  2. Can you post a screenshot of the configuration modal so that I can take a look at what is actually rendered when the issue happens?
  3. Do you have any plugin or frontend module that may alter how the configuration page may work?
  4. What level of debugging do you have enabled by default in your configurations.yaml? It is something you may have configured like in this doc page: https://www.home-assistant.io/integrations/logger/

For now let's start with just these questions, then I may need more details to properly address this issue you are experiencing. In the meantime, thank you very much for all the time you are spending in providing your feedback!

@galtamur
Copy link
Author

galtamur commented Feb 9, 2024 via email

@palazzem
Copy link
Owner

Got it! I think the issue is that you should do a full clean-up of the integration as the version you were using is too old and not compatible with the latest changes (meaning it will go in conflict). Try the following steps:

  1. From Home Assistant, go to Settings > Devices & Services > e-Connect/Metronet Alarm > remove the integration:
image
  1. You must repeat the same step for the integration you installed a while ago that should be called "E-connect Alarm" or "Elmo". Basically, no integrations for the alarm should be installed at this step.
  2. As you were using an old integration (0.3.0 vs 2.2.1), you should remove all widgets you created in the Home Assistant Lovelace dashboard, as one year ago we had to make some breaking changes to improve the integration quality (an unwanted but needed change).
  3. From Settings > Devices & Services > Entities, filter the list by econnect and remove all entities that belong to the econnect integration. Repeat the same process filtering by elmo too, as you may still have some entities in the database:
image
  1. As you are using Docker, your configuration should be mounted from a folder where you store the configurations.yaml. Open the custom_components folder and delete ONLY the folders related to the e-Connect integration. Theoretically, you should have 1 or 2 folders to delete only.
  2. Double check your configurations.yaml, and be sure that no entries related to the integration are present. If they are, just delete them.
  3. Restart Home Assistant and when it's loaded, be sure you can't install any e-Connect integration (try to add it, you should not find them in the list).
  4. Install the 2.2.1 version as you usually do: https://github.com/palazzem/ha-econnect-alarm/releases/tag/v2.2.1.
  5. Restart Home Assistant.
  6. At this point you should have a fresh setup, and you should be able to install properly the latest version.

This process involves multiple DELETE steps. If you are unsure, just stop and ask me for clarifications as if you don't delete the right folder, you may break your Home Assistant installation. Also, instead of doings steps 8-10, you may evaluate to install https://hacs.xyz/ that will make upgrades way easier for you.

Hope this helps! If something doesn't work, write me all the steps you did up to that point, so I can continue helping you from there! Feel free to join our Discord channel if you want to get a broader help from our community (first language of choice in the channel is Italian)!

@galtamur
Copy link
Author

galtamur commented Feb 12, 2024 via email

@palazzem
Copy link
Owner

Hello @galtamur ! I'm wondering if you had a chance to try a clean installation, and if it helped solving the problem! Let us know if there is anything we can do to better support you!

@galtamur
Copy link
Author

galtamur commented Feb 17, 2024 via email

@palazzem
Copy link
Owner

Hahaha no worries! Take your time and feel free to update us whenever you'll try these changes!

Enjoy!

@palazzem
Copy link
Owner

palazzem commented Mar 8, 2024

Hello @galtamur ! I'm closing the issue as it has been stale for a while! But feel free to re-open it if you think you need further assistance!

@galtamur
Copy link
Author

galtamur commented Mar 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants