MyHOME icon indicating copy to clipboard operation
MyHOME copied to clipboard

connection refused

Open Marko99f opened this issue 1 year ago • 14 comments

I dont understand how to connect to my f454 Screenshot 2024-02-03 011130

Marko99f avatar Feb 03 '24 00:02 Marko99f

hi @Marko99f , I'm having your same issue (although in my case I own a MyHomeServer1). I'm trying to debug the problem by increasing log level. My suggestion is for you to do the same, e.g. by adding to your configuration.yaml:

logger:
  default: warning
  logs:
    custom_components.myhome: debug

f18m avatar Feb 06 '24 23:02 f18m

hi @Marko99f , I actually found the fix for my issue. To be able to resolve the "configurazione non riuscita" (config not ready) I realized (putting debug logs in the integration) that actually the MAC address specified when the "hub" (the F454 in your case) is created, needs to match exactly the MAC address in the /config/myhome.yaml file. Otherwise the object (the F454 in your case) remains in such state.

I'm going to propose to @anotherjulien a PR which adds a few more logging to help users to figure out this kind of (trivial) issues...

f18m avatar Feb 07 '24 15:02 f18m

Thank you very much @f18m 🫶

Marko99f avatar Feb 07 '24 20:02 Marko99f

hi @f18m i've another issue. now i can't connect to my f454: it says that the password it's wrong and then it says that it can't load the integration, it asks me to reboot HA. thats a report:

2024-02-09 21:24:53.681 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-09 21:24:53.683 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration myhome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-09 21:25:05.695 WARNING (MainThread) [homeassistant.const] ENTITY_CATEGORY_CONFIG was used from myhome, this is a deprecated constant which will be removed in HA Core 2025.1. Use EntityCategory.CONFIG instead, please create a bug report at https://github.com/anotherjulien/MyHOME/issues 2024-02-09 21:25:05.697 ERROR (MainThread) [custom_components.myhome] configuration.yaml not supported for this component! 2024-02-09 21:25:05.698 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'myhome': Integration failed to initialize.

Screenshot 2024-02-09 214420

Marko99f avatar Feb 09 '24 20:02 Marko99f

hi @Marko99f

2024-02-09 21:25:05.697 ERROR (MainThread) [custom_components.myhome] configuration.yaml not supported for this component!

I think this is your issue. You have "myhome:" written somewhere in your configuration.yaml. You need to remove that YAML block and create instead a myhome.yaml file, separate from configuration.yaml (but located in the same folder), with the format described in https://github.com/anotherjulien/MyHOME/wiki/Configuration

f18m avatar Feb 09 '24 22:02 f18m

sorry for retard @f18m no, i've already my config on a separated file. Screenshot 2024-02-13 144612 Screenshot 2024-02-13 144631

Marko99f avatar Feb 13 '24 13:02 Marko99f

hi @Marko99f , I think your problem is that line "myhome: !include myhome.yaml". You need to remove it (or comment it out) . The MyHome custom integration is opening the myhome.yaml file directly, and has an explicit check that any reference to "myhome" should NOT be present in the configuration.yaml...

f18m avatar Feb 13 '24 15:02 f18m

Hi @f18m. I've been deleted line 12 and 13 from my configuration.yaml and now I have the error"config not work"

Marko99f avatar Feb 13 '24 16:02 Marko99f

Hi @f18m. I've been deleted line 12 and 13 from my configuration.yaml and now I have the error"config not work"

I think you need to: a) delete the "hub" created with the myHome integration and re-create it b) check the logs and look for errors (maybe copy-paste your errors here)

f18m avatar Feb 13 '24 22:02 f18m

@f18m i've been tried many times... no error logs. only this Screenshot 2024-02-14 205322

Marko99f avatar Feb 14 '24 19:02 Marko99f

@Marko99f perhaps you can try installing myHome from my fork which includes more logging: https://github.com/f18m/MyHOME/tree/master In alternative you can download my PR #109 as patch and apply the patch (patch -p0 < filename.patch) on your foldr custom_integrations/myhome to patch the already-installed myHOME integration from @anotherjulien

f18m avatar Feb 14 '24 20:02 f18m

@f18m I've tried many times to download your version but download doesn't start. Now I've solved my problems. Thank you so much

Marko99f avatar Feb 17 '24 19:02 Marko99f