-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
STYRBAR (IKEA Remote Control N2) events not firing in Home Assistant
Describe the bug
Although the README states "Supports STYRBAR Remotes", no events or device triggers are received in Home Assistant when pressing STYRBAR buttons.
To Reproduce
Steps:
- Pair a STYRBAR (IKEA Remote Control N2) with Dirigera and add it via this integration.
- Press any button.
- Observe that:
- No
dirigera_platform_eventis fired on the HA event bus. - Device triggers (
single_click,double_click,long_press) do not fire.
- No
What happens in the logs
The Dirigera hub correctly sends remotePressEvent messages:
{"type":"remotePressEvent","data":{"id":"xxxxxxxx","remoteType":"shortcutController","clickPattern":"singlePress"}}
But the integration logs:
discarding non state message: remotePressEvent
So the events are ignored and never forwarded to HA.
Expected behavior
- STYRBAR button presses should be exposed as device triggers (
single_click,double_click,long_press) and/or asdirigera_platform_eventwith proper payload. - This matches what the README promises ("Supports STYRBAR Remotes").
Additional context
- Integration version: [add your version here]
- HA Core version: [add your version here]
- Devices: IKEA STYRBAR Remote Control N2 (E2001/E2002)
- The integration already registers device triggers for STYRBAR, but they never fire because the hub events are discarded.
Suggested fix
Handle remotePressEvent in hub_event_listener.py:
- Map
clickPattern(singlePress,doublePress,longPress) HA trigger types (single_click,double_click,long_press). - Fire a
dirigera_platform_eventand forward to HA device triggers.
This would align actual behavior with the documented "Supports STYRBAR Remotes".
Metadata
Metadata
Assignees
Labels
No labels