Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] add Matter integration for IKEA remotes #1050

Open
ianlockhead opened this issue Oct 4, 2024 · 6 comments
Open

[FEATURE REQUEST] add Matter integration for IKEA remotes #1050

ianlockhead opened this issue Oct 4, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@ianlockhead
Copy link

Hi @xaviml ! As IKEA released the matter update and we can now integrate the remotes via Dirigera and expose them into Matter integration I have a question if its possible to configure the remotes via ControllerX in future?
I love ControllerX and I actually use it with few Styrbars via Z2M integration but since 90% of my zigbee stuff comes from IKEA I would like to migrate it to Dirigera with Matter.
Thanks for your opinion.

@ianlockhead ianlockhead added the enhancement New feature or request label Oct 4, 2024
@xaviml
Copy link
Owner

xaviml commented Oct 4, 2024

Hi @ianlockhead ,

Thank you for the proposal, I think it is a good idea to open the doors to new integrations.

Do you have more information about how the events can be capture from Dirigera? For example, AppDaemon can read from MQTT which allows the Zigbee2Mqtt integration to work, or the HA events, which allows ZHA and other ones to work as well.

@ianlockhead
Copy link
Author

@xaviml actually I am testing this blueprint for E2002 (Styrbar) made especially for matter integration. On the site is also a description how can be the events catched. I am afraid that this will be a little more tricky but I hope it can work - I trust you :)
The blueprint works good but not perfect - i.e. setting the brightness of light in steps down/up by long press cant be setup. Also switching different colours via left/right button can be defined.
https://community.home-assistant.io/t/ikea-styrbar-remote-e2002-for-matter/768127

Thanks!

@xaviml
Copy link
Owner

xaviml commented Oct 4, 2024

Hi @ianlockhead ,

It would be ideal if you share with me the event to listen to and the actions that the controller triggers when being pressed.

You can do that in the "Developer Tools > Events". Then, you can put the event in the "Listen to events" section.

Thanks!

@ianlockhead
Copy link
Author

ianlockhead commented Oct 4, 2024

event_type: state_changed
data:
entity_id: event.office_styrbar_remote_button
old_state:
entity_id: event.office_styrbar_remote_button
state: "2024-10-04T13:20:33.925+00:00"
attributes:
event_types:
- initial_press
- short_release
- long_press
- long_release
event_type: initial_press
newPosition: 1
device_class: button
friendly_name: Office Styrbar remote Button
last_changed: "2024-10-04T13:20:33.925526+00:00"
last_reported: "2024-10-04T13:20:33.925526+00:00"
last_updated: "2024-10-04T13:20:33.925526+00:00"
context:
id: 01J9BV0W450TE2NCT297CYT035
parent_id: null
user_id: null
new_state:
entity_id: event.office_styrbar_remote_button
state: "2024-10-04T13:20:33.926+00:00"
attributes:
event_types:
- initial_press
- short_release
- long_press
- long_release
event_type: initial_press
newPosition: 1
device_class: button
friendly_name: Office Styrbar remote Button
last_changed: "2024-10-04T13:20:33.926097+00:00"
last_reported: "2024-10-04T13:20:33.926097+00:00"
last_updated: "2024-10-04T13:20:33.926097+00:00"
context:
id: 01J9BV0W46JNENHN7D9F5BR5N2
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-10-04T13:20:33.926097+00:00"
context:
id: 01J9BV0W46JNENHN7D9F5BR5N2
parent_id: null
user_id: null

@xaviml hope this is exactly what you need

@xaviml
Copy link
Owner

xaviml commented Oct 5, 2024

Hi @ianlockhead ,

Yes, but could you:

  • Format the output with ```?
  • Separate each event and tell me which button you press, hold or released.
  • Share with me the event you listen to.

@ianlockhead
Copy link
Author

Button 1 is the top button (high brightness)
Button 2 is the bottom button (low brightness)
Button 3 is the left button
Button 4 is the right button

Button 1 event after short press:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button old_state: entity_id: event.office_styrbar_remote_button state: "2024-10-06T07:38:33.524+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:38:33.524272+00:00" last_reported: "2024-10-06T07:38:33.524272+00:00" last_updated: "2024-10-06T07:38:33.524272+00:00" context: id: 01J9GC82NMWHPSR68JA6QSAKYM parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button state: "2024-10-06T07:38:33.525+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: short_release previousPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:38:33.525887+00:00" last_reported: "2024-10-06T07:38:33.525887+00:00" last_updated: "2024-10-06T07:38:33.525887+00:00" context: id: 01J9GC82NNJKZ9P9D8YFXHTPM1 parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:38:33.525887+00:00" context: id: 01J9GC82NNJKZ9P9D8YFXHTPM1 parent_id: null user_id: null

Button 2 after short press:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button_2 old_state: entity_id: event.office_styrbar_remote_button_2 state: "2024-10-06T07:34:33.474+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:34:33.474576+00:00" last_reported: "2024-10-06T07:34:33.474576+00:00" last_updated: "2024-10-06T07:34:33.474576+00:00" context: id: 01J9GC0R82VX2MXNTM61G1VR0H parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button_2 state: "2024-10-06T07:34:33.476+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: short_release previousPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:34:33.476949+00:00" last_reported: "2024-10-06T07:34:33.476949+00:00" last_updated: "2024-10-06T07:34:33.476949+00:00" context: id: 01J9GC0R84F643Y09AD7G3WC44 parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:34:33.476949+00:00" context: id: 01J9GC0R84F643Y09AD7G3WC44 parent_id: null user_id: null

Button 3 after short press:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button_3 old_state: entity_id: event.office_styrbar_remote_button_3 state: "2024-10-04T11:41:23.098+00:00" attributes: event_types: - initial_press event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-05T17:57:30.756323+00:00" last_reported: "2024-10-05T17:57:30.756323+00:00" last_updated: "2024-10-05T17:57:30.756323+00:00" context: id: 01J9EX8PG493TNH9G2KCNEGRGD parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button_3 state: "2024-10-06T07:41:37.540+00:00" attributes: event_types: - initial_press event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:41:37.540436+00:00" last_reported: "2024-10-06T07:41:37.540436+00:00" last_updated: "2024-10-06T07:41:37.540436+00:00" context: id: 01J9GCDPC41PMG9JDSKY6JMD37 parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:41:37.540436+00:00" context: id: 01J9GCDPC41PMG9JDSKY6JMD37 parent_id: null user_id: null

Button 4 after short press:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button_4 old_state: entity_id: event.office_styrbar_remote_button_4 state: "2024-10-04T11:44:22.197+00:00" attributes: event_types: - initial_press event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-05T17:57:30.753564+00:00" last_reported: "2024-10-05T17:57:30.753564+00:00" last_updated: "2024-10-05T17:57:30.753564+00:00" context: id: 01J9EX8PG1Q8PCN6MMVWNFMDFN parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button_4 state: "2024-10-06T07:42:10.119+00:00" attributes: event_types: - initial_press event_type: initial_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:42:10.119249+00:00" last_reported: "2024-10-06T07:42:10.119249+00:00" last_updated: "2024-10-06T07:42:10.119249+00:00" context: id: 01J9GCEP6744TMQH00BRZGEFFF parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:42:10.119249+00:00" context: id: 01J9GCEP6744TMQH00BRZGEFFF parent_id: null user_id: null

Button 1 after long press and release:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button old_state: entity_id: event.office_styrbar_remote_button state: "2024-10-06T07:42:50.315+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: long_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:42:50.315479+00:00" last_reported: "2024-10-06T07:42:50.315479+00:00" last_updated: "2024-10-06T07:42:50.315479+00:00" context: id: 01J9GCFXEBXSV8E1YWXSDY7R7V parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button state: "2024-10-06T07:42:50.773+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: long_release previousPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:42:50.773596+00:00" last_reported: "2024-10-06T07:42:50.773596+00:00" last_updated: "2024-10-06T07:42:50.773596+00:00" context: id: 01J9GCFXWNX621B8670R2E217G parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:42:50.773596+00:00" context: id: 01J9GCFXWNX621B8670R2E217G parent_id: null user_id: null

Button 2 after long press and release:
event_type: state_changed data: entity_id: event.office_styrbar_remote_button_2 old_state: entity_id: event.office_styrbar_remote_button_2 state: "2024-10-06T07:43:32.820+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: long_press newPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:43:32.820967+00:00" last_reported: "2024-10-06T07:43:32.820967+00:00" last_updated: "2024-10-06T07:43:32.820967+00:00" context: id: 01J9GCH6YM2G4KZEHSAQ7AP772 parent_id: null user_id: null new_state: entity_id: event.office_styrbar_remote_button_2 state: "2024-10-06T07:43:33.560+00:00" attributes: event_types: - initial_press - short_release - long_press - long_release event_type: long_release previousPosition: 1 device_class: button friendly_name: Office Styrbar remote Button last_changed: "2024-10-06T07:43:33.561069+00:00" last_reported: "2024-10-06T07:43:33.561069+00:00" last_updated: "2024-10-06T07:43:33.561069+00:00" context: id: 01J9GCH7NSTM5QNWT0SRB6GB64 parent_id: null user_id: null origin: LOCAL time_fired: "2024-10-06T07:43:33.561069+00:00" context: id: 01J9GCH7NSTM5QNWT0SRB6GB64 parent_id: null user_id: null

Button 3 and 4 does not support long press event.

  • I am listening to event "state_changed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants