Homematic ccu2 - devices not showing up

Hi,

at some point homematic devices do not show up in device configuration. however they still work from frontend, but i cannot “use” them for creating new automations, etc. any ideas where i am wrong?
thank you!

EDIT: I’m on latest ha-version running on intel nuc hassio 3.1.3 image. homematic ccu2 in on latest firmeware, too

# homematic
homematic:
  local_ip: 10.10.5.101
  hosts:
    ccu2:
      host: 10.10.5.100
      port: 2001
      username: Admin
      password: Secret
  interfaces:
    rf:
      host: 10.10.5.100
      callback_ip: 10.10.5.101
      resolvenames: json
      username: Admin
      password: Secret
    groups:
      host: 10.10.5.100
      port: 9292
      resolvenames: json
      username: Admin
      password: Secret
      path: /groups

2020-05-23 19:48:21 WARNING (MainThread) [homeassistant.setup] Setup of homematic is taking over 10 seconds.
2020-05-23 19:48:22 WARNING (SyncWorker_11) [pyhomematic.devicetypes.generic] HMGeneric.getValue: BRIGHTNESS on IEQ0549415:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:29 WARNING (SyncWorker_12) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on LEQ0735431:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:31 WARNING (SyncWorker_3) [pyhomematic.devicetypes.generic] HMGeneric.getValue: WORKING on LEQ1210665:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:31 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform homematic is taking over 10 seconds.
2020-05-23 19:48:31 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform homematic is taking over 10 seconds.
2020-05-23 19:48:31 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform homematic is taking over 10 seconds.
2020-05-23 19:48:31 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform homematic is taking over 10 seconds.
2020-05-23 19:48:32 WARNING (SyncWorker_3) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on LEQ1210665:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_12) [pyhomematic.devicetypes.generic] HMGeneric.getValue: WORKING on LEQ1210665:2 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_12) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on LEQ1210665:2 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_7) [pyhomematic.devicetypes.generic] HMGeneric.getValue: WORKING on LEQ1210665:3 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_7) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on LEQ1210665:3 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_6) [pyhomematic.devicetypes.generic] HMGeneric.getValue: WORKING on LEQ1210665:4 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:33 WARNING (SyncWorker_6) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on LEQ1210665:4 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:35 ERROR (MainThread) [homeassistant.components.climate] Error while setting up homematic platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 446, in _async_add_entity
    entity.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 165, in state
    return self.hvac_mode
  File "/usr/src/homeassistant/homeassistant/components/homematic/climate.py", line 70, in hvac_mode
    if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5:
TypeError: '<=' not supported between instances of 'str' and 'float'
2020-05-23 19:48:36 WARNING (SyncWorker_15) [pyhomematic.devicetypes.generic] HMGeneric.getValue: WORKING on MEQ0325386:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:37 WARNING (SyncWorker_15) [pyhomematic.devicetypes.generic] HMGeneric.getValue: STATE on MEQ0325386:1 Exception: <Fault -1: 'Failure'>
2020-05-23 19:48:37 WARNING (SyncWorker_0) [pyhomematic.devicetypes.generic] HMGeneric.getValue: BRIGHTNESS on LEQ1292629:1 Exception: <Fault -1: 'Failure'>

Do you mean you can’t use them from the integrations-site? That was never possible, and currently isn’t possible as well. Usually only integrations you can set up from the UI shop up as devices. Since you configure HomeMatic via yaml this is not the case. So for now it is only possible to automate by using the entities manually.

As for the error in the log:
that may be a bug. Does the entity for the thermostat still show up in the UI? (Referring to the climate device with the exception)

yes, i thought they showed up on “devices” page under “settings”. i tried to add them via lovelace editor and the homematic devices did not show up. i found out a minute ago, that they show up as entities (under settings). i am a noob. sorry, thanks for your patience.

btw: the thermostat shows up in ui

i have a homematic 4port switch (aktor) and can use the first 3 ports from homeassistant. but the fourth entity does not work from homeassistant (entity not available). however i can control the device via homematic webinterface.
how are the entity names generated? is there an option to refresh the entities? thank you!

That depends how you have set the resolvenames option. It should be either something like switch.deviceid_channel... or switch.name_in_homematic_ui....

Entities are added automatically. When in doubt, restart Home Assistant. All entities the integration hat support for will be added.

I have a new device in Homematic which is not showing up in Home Assistant. Is it not supported yet? I think so that it requires adding as it is the first device I have.

It is called HmIP-PSM-2.
This is a Power Socket with Power Monitoring.

@outlander4000 The core integration is not being maintained anymore. If you require support for newer devices, you should switch to the new integration, which currently is available as a custom component: GitHub - danielperna84/custom_homematic: Custom Home Assistant Component for HomeMatic

Oh no, I was not aware of the new custom integration. I’ll have a look. Thank you @danielperna84

With the core integration all my devices had the following naming by ID
switch.00021be995a2dc
now with the new custom integration they all get a new name
switch.livingroom_tv
which breaks just everything.
Could you please advise if there is a best method to change names or is a manual search and replace job required?

Sorry, I have misread your post. I was under the assumption that you only had that single device, in which case it wouldn’t have been much effort as you couldn’t have automations with it anyways.

There’s no best practice. Of course you can replace the strings within the automation.yaml file to target the new entity ids. In general the transition requires some work. So in the short term you might consider switching back to the old integration, and then doing the switch again when you have enough time to fix everything.

Going forward I will switch to your new custom integration, and it will be worth doing the required changes on my end. Much appreciate your demanding work and that you help HomeMatic become even a better product! From my experience it is still the most solid technology in terms of stability and communication range.

Today I have updated to the new custom integration and it was not too bad at all. Studio Code with auto completion was doing quite a nice job along with search and replace. Well received the system variables as sensors, which does not require sensor configuration anymore in HA. BTW, my new switch HmIP-PSM-2 is now working, too next to approx. 80 other entities! Thank you again.

1 Like