danielperna84 / hahomematic

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

Buttons of the HmIP-BSM are not useable as a trigger #426

Closed MaDtz closed 2 years ago

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

Home Assistant version (if applicable): 2022.4.7

CCU version:

Describe the bug You can´t use a HmIP-BSM device as a trigger in automations.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings > Automations & Scenes > Automations
  2. Create new, empty automation
  3. Select "device" as Trigger
  4. When you select a HmIP-BSM device, you can´t select a trigger.

Screenshots (if applicable) Selected a HmIP-BSM device: grafik grafik

Selected a HmIP-BDT, HMIP-WRC2 or HmIP-BRC2 device: grafik grafik

Expected behavior I would expect the same behavior like the other divces with buttons, that I can use/select for example "Taster "1" wurde nach langem Tastendruck los gelassen" as a trigger.

Log-Entry

2022-04-26 12:17:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140480635912880] Error handling message: Unknown error (unknown_error) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 292, in with_error_handling await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 351, in websocket_device_automation_list_triggers await async_get_device_automations( File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 224, in async_get_device_automations for domain_results in await asyncio.gather( File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 182, in _async_get_device_automations_from_domain return await asyncio.gather( File "/config/custom_components/homematicip_local/device_trigger.py", line 64, in async_get_triggers control_unit: ControlUnit = hass.data[DOMAIN][entry_id] KeyError: '361ac085b0b9187a8a29ff090a17389c'

Diagnostic Information config_entry-homematicip_local-fda5bb615969b461658aaf796fc25e43.json.txt

SukramJ commented 2 years ago

Are you sure that there are no logs in HA (click on Full log)?

MaDtz commented 2 years ago

Sorry Sukram, I forgot the log. I edited my issue and added the log-entry.

SukramJ commented 2 years ago

Better. Next, add diagnostic Information: "Diagnoseinformationen herunterladen" on the device.

SukramJ commented 2 years ago

Do you use Switch as X for HmIP-BSM?

MaDtz commented 2 years ago

Diagnostic file is added an yes I use Switch as X.

SukramJ commented 2 years ago

The issue is related to new Switch as X feature. This will be fixed in 1.2.0.

Thanks for reporting an issue.

SukramJ commented 2 years ago

1.2.0 is released

MaDtz commented 2 years ago

1.2.0 solved the problem. Everything is fine now. So you can close this issue. Thanks for your help and the good work!!!