Skip to content

STYRBAR (IKEA Remote Control N2) events not firing in Home Assistant #114

@alexruperez

Description

@alexruperez

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:

  1. Pair a STYRBAR (IKEA Remote Control N2) with Dirigera and add it via this integration.
  2. Press any button.
  3. Observe that:
    • No dirigera_platform_event is fired on the HA event bus.
    • Device triggers (single_click, double_click, long_press) do not fire.

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 as dirigera_platform_event with 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_event and forward to HA device triggers.

This would align actual behavior with the documented "Supports STYRBAR Remotes".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions