danielperna84 / hahomematic

Python 3 Interface for Home Assistant to interact with HomeMatic devices
MIT License
136 stars 21 forks source link

No devices created with homegear #412

Closed TBail closed 2 years ago

TBail commented 2 years ago

DONT'T DELETE THIS. Please answer all questions as good as possible.

Make sure you have read the documentation at https://github.com/danielperna84/custom_homematic#custom_homematic.

Make sure you are running the latest version of hahomematic or it's custom_component (and Home Assistant) before reporting an issue.

custom_component/hahomematic version (if applicable): 1.1.2

Home Assistant version (if applicable): 2022.4.5

CCU version:

Problem-relevant configuration:

Do you use tls? No Do you use callback? No Do you use username and password? NO Which interfaces do you use? Bidcos RF

Describe the bug A clear and concise description of what the bug is. Alter installing the integration no devices are discovered from homegear

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots (if applicable)

Relevant HA log entries (full log)

2022-04-18 18:47:00 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093690
2022-04-18 18:47:00 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0266009
2022-04-18 18:47:00 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327952
2022-04-18 18:47:00 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794339
2022-04-18 18:47:00 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0381486

Diagnostic Information (available on every device)

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.4.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "x86_64",
    "timezone": "UTC",
    "os_name": "Linux",
    "os_version": "5.10.108",
    "supervisor": "2022.04.0",
    "host_os": "Home Assistant OS 7.6",
    "docker_version": "20.10.9",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.24.5",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "homematicip_local": {
      "version": "1.1.2",
      "requirements": [
        "hahomematic==1.1.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "homematicip_local",
    "name": "Homematic(IP) Local",
    "config_flow": true,
    "documentation": "https://github.com/danielperna84/custom_homematic",
    "issue_tracker": "https://github.com/danielperna84/hahomematic/issues",
    "requirements": [
      "hahomematic==1.1.2"
    ],
    "ssdp": [
      {
        "manufacturer": "EQ3",
        "manufacturerURL": "http://www.homematic.com"
      }
    ],
    "zeroconf": [],
    "homekit": {},
    "dependencies": [],
    "codeowners": [
      "@danielperna84",
      "@SukramJ"
    ],
    "iot_class": "local_push",
    "loggers": [
      "hahomematic"
    ],
    "version": "1.1.2",
    "is_built_in": false
  },
  "data": {
    "config": {
      "entry_id": "b4d5f9003d9a717fbaa4e73ae9fd03f9",
      "version": 1,
      "domain": "homematicip_local",
      "title": "homegear",
      "data": {
        "instance_name": "homegear",
        "host": "homegear.iot.thing.home",
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "tls": false,
        "verify_tls": false,
        "callback_host": null,
        "callback_port": null,
        "json_port": null,
        "interface": {
          "BidCos-RF": {
            "port": 2001
          }
        }
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": "Homegear_SN0815",
      "disabled_by": null
    },
    "platform_stats": {},
    "devices": []
  }
}

Expected behavior A clear and concise description of what you expected to happen. About 50 Devices should appear

Additional context Add any other context about the problem here.

TBail commented 2 years ago

With ha 2022.04.6 i got this error

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant.config_entries
Source: custom_components/homematicip_local/control_unit.py:100
Integration: Homematic(IP) Local (documentation, issues)
First occurred: 08:04:37 (1 occurrences)
Last logged: 08:04:37

Error setting up entry homegear for homematicip_local
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/hahomematic/xml_rpc_proxy.py", line 62, in __async_request
    return await self._async_add_proxy_executor_job(
  File "/usr/local/lib/python3.9/site-packages/hahomematic/xml_rpc_proxy.py", line 53, in _async_add_proxy_executor_job
    return await self._loop.run_in_executor(self._proxy_executor, func, *args)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
  File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1178, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1291, in send_request
    self.send_content(connection, request_body)
  File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1321, in send_content
    connection.endheaders(request_body)
  File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.9/http/client.py", line 980, in send
    self.connect()
  File "/usr/local/lib/python3.9/http/client.py", line 946, in connect
    self.sock = self._create_connection(
  File "/usr/local/lib/python3.9/socket.py", line 823, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/hahomematic/client.py", line 887, in get_client
    methods = await self.xml_rpc_proxy.system.listMethods()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/xml_rpc_proxy.py", line 70, in __async_request
    raise NoConnection(ose) from ose
hahomematic.exceptions.NoConnection: [Errno -2] Name does not resolve

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 304, in _create_clients
    if client := await hm_client.create_client(
  File "/usr/local/lib/python3.9/site-packages/hahomematic/client.py", line 934, in create_client
    return await _ClientConfig(
  File "/usr/local/lib/python3.9/site-packages/hahomematic/client.py", line 902, in get_client
    raise NoConnection(f"Unable to connect {noc.args}.") from noc
hahomematic.exceptions.NoConnection: Unable to connect (gaierror(-2, 'Name does not resolve'),).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/homematicip_local/__init__.py", line 29, in async_setup_entry
    await control.async_start()
  File "/config/custom_components/homematicip_local/control_unit.py", line 100, in async_start
    await self._central.start()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 232, in start
    await self._start_clients()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 237, in _start_clients
    if await self._create_clients():
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 328, in _create_clients
    interface_id=client.interface_id,
UnboundLocalError: local variable 'client' referenced before assignment
SukramJ commented 2 years ago

Seems to be the reason:

hahomematic.exceptions.NoConnection: [Errno -2] Name does not resolve

Try to use the IP instead, or a resolveable hostname.

TBail commented 2 years ago

Changing to the IP adress does not discover any device from home gear. Reloading the intergration give the following errors.

022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627883
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470310
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0111372
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0132734
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0132747
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1110155
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240103
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0994767
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0775899
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0776538
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470402
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0369898
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327646
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1549344
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1311081
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0030031
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240101
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470551
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627884
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0781808
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0029753
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0288399
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1017360
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1239838
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1652646
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470018
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1177554
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240221
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0031814
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1017244
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0987121
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0931366
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0206845
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0796704
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1594004
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0298452
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794984
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0092177
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794493
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1830229
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0722303
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1258257
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ1986577
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794991
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093868
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093037
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093907
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0871418
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0298454
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0872234
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794479
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0369789
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093667
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0092837
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0282020
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1481176
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627882
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093050
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0722163
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093690
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0266009
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327952
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794339
2022-04-21 12:30:44 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0381486
2022-04-21 12:30:44 ERROR (MainThread) [homeassistant.util.logging] Exception in async_add_hub_binary_sensors when dispatching 'homematicip_local-new-entity-7ac1fafa7acb28c97708bba9d9b06d3b-hub_binary_sensor': (None,)
Traceback (most recent call last):
  File "/config/custom_components/homematicip_local/binary_sensor.py", line 49, in async_add_hub_binary_sensors
    for hm_entity in args:
TypeError: 'NoneType' object is not iterable
SukramJ commented 2 years ago

Please retest with 1.1.3.

TBail commented 2 years ago

Updated to 1.1.3 restarted and got the same error

Logger: hahomematic.central_unit
Source: /usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py:566
First occurred: 15:24:47 (64 occurrences)
Last logged: 15:24:47

create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093690
create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0266009
create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327952
create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794339
create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0381486
SukramJ commented 2 years ago

Always click on full logs. This aggregation is not helpful.

TBail commented 2 years ago

Sorry, i am very new on ha. This should be the full log

022-04-21 15:24:05 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration homematicip_local 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
2022-04-21 15:24:05 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
2022-04-21 15:24:18 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140715322781072] Received invalid command: energy/info
2022-04-21 15:24:18 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140715322781072] Received invalid command: energy/info
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627883
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470310
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0111372
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0132734
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0132747
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1110155
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240103
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0994767
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0775899
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0776538
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470402
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0369898
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327646
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1549344
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1311081
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0030031
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240101
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470551
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627884
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0781808
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0029753
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0288399
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1017360
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1239838
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1652646
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1470018
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1177554
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1240221
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ0031814
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1017244
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0987121
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0931366
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0206845
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0796704
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1594004
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0298452
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794984
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0092177
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794493
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ1830229
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0722303
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ1258257
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, OEQ1986577
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794991
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093868
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093037
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093907
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0871418
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0298454
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0872234
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794479
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0369789
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093667
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0092837
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0282020
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ1481176
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0627882
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093050
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0722163
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, NEQ0093690
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, LEQ0266009
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0327952
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0794339
2022-04-21 15:24:47 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0381486
2022-04-21 15:26:26 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Error occurred while communicating with WLED device at wled-wled01.iot.thing.home
2022-04-21 15:41:19 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Error occurred while communicating with WLED device at wled-wled01.iot.thing.home
2022-04-21 15:50:44 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Error occurred while communicating with WLED device at wled-wled01.iot.thing.home
2022-04-21 15:50:56 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Error occurred while communicating with WLED device at wled-wled01.iot.thing.home
SukramJ commented 2 years ago

No idea, i don't have a Homegear installation.

@andyboeh You are also using Homegear. Is this integration working for you?

SukramJ commented 2 years ago

Please add this to configuration.yml, restart HA and add logs again.

logger:
  default: info
  logs:
    hahomematic: debug
    custom_components.homematicip_local: info
andyboeh commented 2 years ago

We are currently renovating the flat where this installation will be used. So far, no devices are added to Homegear, I only tested the connection to it. I will try to add some devices as soon as possible.

SukramJ commented 2 years ago

@andyboeh Good to know. Thanks for your very fast reply.

TBail commented 2 years ago

@SukramJ I extended the config to get some debug log. i think that is the critical part. hahomematic thorws an exception while creating an entity.

2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] __init__: Initializing device: homegear-BidCos-RF, MEQ0282020
2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] __init__: Initialized device: homegear-BidCos-RF, MEQ0282020, HM-WDS30-T-O, OA_PL_TSensor
2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] create_entity_and_append_to_device: Creating entity for MEQ0282020:0, CENTRAL_ADDRESS_SPOOFED, homegear-BidCos-RF
2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] create_entity_and_append_to_device: select: MEQ0282020:0 CENTRAL_ADDRESS_SPOOFED
2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] create_entity_and_append_to_device: Creating entity for MEQ0282020:0, CONFIG_PENDING, homegear-BidCos-RF
2022-04-21 16:33:20 DEBUG (MainThread) [hahomematic.device] create_entity_and_append_to_device: binary_sensor: MEQ0282020:0 CONFIG_PENDING
2022-04-21 16:33:20 ERROR (MainThread) [hahomematic.central_unit] create_devices: Exception [('DEFAULT',)] Failed to create entities: homegear-BidCos-RF, MEQ0282020

If i get it right the exception is throw in central_unit.py line 565. i try to learn mor and more.

Thanks for your help

SukramJ commented 2 years ago

central_unit.py line 565

catches the exception that is logged.

Are there any Errors in Homegear logs?

CENTRAL_ADDRESS_SPOOFED seems to be a Homegear specific parameter(?). Do you know what it is?

TBail commented 2 years ago

The homegear logs doesnt show any errors.

CENTRAL_ADDRESS_SPOOFED is homematic/bidcos specific. Meaning is that another central station uses the same address.

SukramJ commented 2 years ago

Have you ever used the old integration?

SukramJ commented 2 years ago

There should be two files under {HA config dir}/homematicip_local/cache/. Please add them.

TBail commented 2 years ago

The old integration works, but it gives just a bunch of entities and no devices.

i renamed the files from .json to .txt homegear_homematic_devices.txt homegear_homematic_paramsets.txt

SukramJ commented 2 years ago

Please replace in custom_components/homematicip_local/manifest.json

"requirements": ["hahomematic==1.1.3"], to "requirements": ["hahomematic==1.1.4"],

and reboot HA

TBail commented 2 years ago

Did it and it fixed the problem. 1 service 64 devices and 388 entities.

Tnaks a lot for your support. Is there an easy explanation?

SukramJ commented 2 years ago

Yes, in homegear_homematic_paramsets.txt i identified that homegear has no DEFAULT value.