core icon indicating copy to clipboard operation
core copied to clipboard

homematic fails to start up: homeassistant.components.homematic.entity.HMHub does not have a platform,

Open pinpox opened this issue 1 year ago • 7 comments

The problem

I'm trying to enable the homematic integration as per the documentation. I want to talk to a CCU3 with some devices connected to it.

My configuration.yml looks like this:

   
homematic:
  local_ip: 10.0.16.60
  interfaces:
    rf:
      host: 10.100.32.223
      port: 2001
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
    wired:
      host: 10.100.32.223
      port: 2000
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
    ip:
      host: 10.100.32.223
      port: 2010
      callback_ip: 10.0.16.60
      username: "Admin"
      password: "redacted"
    groups:
      host: 110.100.32.223
      port: 9292
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
      path: /groups
  hosts:
    ccu3_KA:
      host: 10.100.32.223
      port: 2001
      username: "Admin"
      password: "redacted"

The CCU3 itselef is shown in the dashboard, but with no devices or any useful entities. image The logs tell me it failed to set up all the components and to open an issue for it here.

2023-07-19 13:14:08.740 WARNING (MainThread) [homeassistant.setup] Setup of homematic is taking over 10 seconds.
2023-07-19 13:14:48.531 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:15:48.608 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:16:48.686 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:17:48.773 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:18:22.766 WARNING (SyncWorker_2) [pyhomematic._hm] Failed to initialize proxy for homeassistant-wired
2023-07-19 13:18:48.856 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:18:58.739 ERROR (MainThread) [homeassistant.setup] Setup of homematic is taking longer than 300 seconds. Startup will proceed without waiting any longer
2023-07-19 13:18:58.742 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.binary_sensor: Unable to set up component.
2023-07-19 13:18:58.744 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.sensor: Unable to set up component.
2023-07-19 13:18:58.745 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.binary_sensor: Unable to set up component.
2023-07-19 13:18:58.746 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.climate: Unable to set up component.
2023-07-19 13:20:33.543 WARNING (SyncWorker_2) [pyhomematic._hm] Failed to initialize proxy for homeassistant-groups
2023-07-19 13:20:33.571 WARNING (MainThread) [homeassistant.helpers.entity] Entity homematic.ccu3_ka (<class 'homeassistant.components.homematic.entity.HMHub'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue

What version of Home Assistant Core has the issue?

core-2023.7.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

homematic

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homematic/

Diagnostics information

The integration is not shown in the Integrations view

Example YAML snippet

homematic:
  local_ip: 10.0.16.60
  interfaces:
    rf:
      host: 10.100.32.223
      port: 2001
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
    wired:
      host: 10.100.32.223
      port: 2000
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
    ip:
      host: 10.100.32.223
      port: 2010
      callback_ip: 10.0.16.60
      username: "Admin"
      password: "redacted"
    groups:
      host: 110.100.32.223
      port: 9292
      callback_ip: 10.0.16.60
      resolvenames: "json"
      username: "Admin"
      password: "redacted"
      path: /groups
  hosts:
    ccu3_KA:
      host: 10.100.32.223
      port: 2001
      username: "Admin"
      password: "redacted"

Anything in the logs that might be useful for us?

2023-07-19 13:14:08.740 WARNING (MainThread) [homeassistant.setup] Setup of homematic is taking over 10 seconds.
2023-07-19 13:14:48.531 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:15:48.608 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:16:48.686 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:17:48.773 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:18:22.766 WARNING (SyncWorker_2) [pyhomematic._hm] Failed to initialize proxy for homeassistant-wired
2023-07-19 13:18:48.856 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: homematic
2023-07-19 13:18:58.739 ERROR (MainThread) [homeassistant.setup] Setup of homematic is taking longer than 300 seconds. Startup will proceed without waiting any longer
2023-07-19 13:18:58.742 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.binary_sensor: Unable to set up component.
2023-07-19 13:18:58.744 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.sensor: Unable to set up component.
2023-07-19 13:18:58.745 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.binary_sensor: Unable to set up component.
2023-07-19 13:18:58.746 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homematic.climate: Unable to set up component.
2023-07-19 13:20:33.543 WARNING (SyncWorker_2) [pyhomematic._hm] Failed to initialize proxy for homeassistant-groups
2023-07-19 13:20:33.571 WARNING (MainThread) [homeassistant.helpers.entity] Entity homematic.ccu3_ka (<class 'homeassistant.components.homematic.entity.HMHub'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper, please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue

Additional information

No response

pinpox avatar Jul 19 '23 11:07 pinpox

Hey there @pvizeli, @danielperna84, mind taking a look at this issue as it has been labeled with an integration (homematic) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of homematic can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign homematic Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


homematic documentation homematic source (message by IssueLinks)

home-assistant[bot] avatar Jul 19 '23 11:07 home-assistant[bot]

Anybody has an update for this?

chriswoj avatar Oct 03 '23 19:10 chriswoj

Are there any updates for this?

kstockl avatar Oct 13 '23 12:10 kstockl

For me, this happens with the new HmIP-eTRV-B-2 R4M, which is optically exact the same as the HmIP-eTRV-B but technically apparently different. I have 2 of each and both HmIP-eTRV-B works, but the HmIP-eTRV-B-2 R4M does not.

Maybe this is related to #84032 and you can only solve like this https://github.com/home-assistant/core/issues/84032#issuecomment-1379323208

KnudH avatar Dec 06 '23 00:12 KnudH

Having the same error without any changes to homematic configuration. And prevents access to all homematic devices

bickerdyke avatar Jan 05 '24 16:01 bickerdyke

Similiar error message: Entity homematic.ccu2 (<class 'homeassistant.components.homematic.entity.HMHub'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent

  1. homematic is not listet in Integrations
  2. Most homematic objects are nevertheless available as entititys in HA

I've seen theese issues now for a while including in a duplicate task, but is there really no solution to fix it ?

krauspe avatar Feb 05 '24 14:02 krauspe

@krauspe

You could switch to the new integration, which is available as a custom component: https://github.com/danielperna84/custom_homematic

danielperna84 avatar Feb 05 '24 16:02 danielperna84

@danielperna84

@krauspe

You could switch to the new integration, which is available as a custom component: https://github.com/danielperna84/custom_homematic

I cant't install your intergation with your ADD INTEGRATION Link.

Error
This integration does not support configuration via the user interface. If you followed this link from the Home Assistant website, make sure you are running the latest version of Home Assistant.

etofi avatar Feb 21 '24 08:02 etofi

@etofi

Apparently you missed the fact, that this is a custom integration, which first has to be installed manually. Please follow these instructions: https://github.com/jens-maus/RaspberryMatic/wiki/HomeAssistant-Integration

danielperna84 avatar Feb 21 '24 09:02 danielperna84

Same problem happens for me with a CCU3

Entity homematic.ccu3 (<class 'homeassistant.components.homematic.entity.HMHub'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper

2024-03-12 08:57:49.263 INFO (MainThread) [homeassistant.setup] Setting up homematic 2024-03-12 08:57:49.264 INFO (SyncWorker_2) [pyhomematic._hm] Creating proxy ip. Connecting to 192.168.1.222:2001 2024-03-12 08:57:49.264 INFO (MainThread) [homeassistant.setup] Setting up group 2024-03-12 08:57:49.265 INFO (MainThread) [homeassistant.setup] Setting up stt 2024-03-12 08:57:49.265 INFO (MainThread) [homeassistant.setup] Setup of domain stt took 0.0 seconds 2024-03-12 08:57:49.265 INFO (SyncWorker_2) [pyhomematic._hm] Creating proxy ccu3. Connecting to 192.168.1.222:2001 2024-03-12 08:57:49.267 INFO (Thread-2) [pyhomematic._hm] Starting server at http://0.0.0.0:33517 2024-03-12 08:57:49.267 INFO (MainThread) [homeassistant.setup] Setting up duckdns 2024-03-12 08:57:49.267 INFO (MainThread) [homeassistant.setup] Setup of domain duckdns took 0.0 seconds 2024-03-12 08:57:49.288 INFO (SyncWorker_2) [pyhomematic._hm] Proxy for homeassistant-ip initialized 2024-03-12 08:57:49.288 INFO (SyncWorker_2) [pyhomematic._hm] Skipping init for homeassistant-ccu3

hirschy81 avatar Mar 12 '24 08:03 hirschy81

@etofi

Apparently you missed the fact, that this is a custom integration, which first has to be installed manually. Please follow these instructions: https://github.com/jens-maus/RaspberryMatic/wiki/HomeAssistant-Integration

Thanks - now it works perfekt

etofi avatar Mar 23 '24 11:03 etofi

I have the same issue since the update to HA 2024.4.0 - before it worked perfectly.

Update: Already documented under https://github.com/home-assistant/core/issues/114807 and fix is on its way.

beatdoebeli avatar Apr 05 '24 11:04 beatdoebeli

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.