anotherjulien / MyHOME

MyHOME integration for Home-Assistant
GNU Affero General Public License v3.0
137 stars 57 forks source link

connection refused #106

Open Marko99f opened 8 months ago

Marko99f commented 8 months ago

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

f18m commented 8 months ago

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 commented 8 months ago

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...

Marko99f commented 8 months ago

Thank you very much @f18m 🫶

Marko99f commented 8 months ago

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

f18m commented 8 months ago

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

Marko99f commented 8 months ago

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

f18m commented 8 months ago

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...

Marko99f commented 8 months ago

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

f18m commented 8 months ago

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)

Marko99f commented 8 months ago

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

f18m commented 8 months ago

@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

Marko99f commented 8 months ago

@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