🔌 Media Player Hook - Control any media player (play/pause, volume, prev/next track) with one of the supported controllers

I can start the TuneIn stream with a Center button short press but I cannot find the right command to stop a radio stream.

I tried center long press, center double press with
media_player.media_pause
media_player.media_play_pause
media_player.media_stop
media_player.turn_off
but it does not completely stop the stream. It actually stops the stream for 2 seconds and it resumes :confused:

Here is the controller :

alias: Kitchen music (with Tradfri remote E1524)
description: Based on 2021.10.26 blueprint
use_blueprint:
  path: EPMatt/ikea_e1524_e1810.yaml
  input:
    integration: deCONZ
    controller_device: 67bce5a0e24c261314b17ad7b367bc23
    action_button_center_short:
      - service: media_player.play_media
        data:
          media_content_id: France Info
          media_content_type: TUNEIN
        target:
          entity_id: media_player.kitchen
    helper_last_controller_event: input_text.kitchen_media_player_last_controller_event
    action_button_center_double:
      - service: media_player.media_pause
        target:
          entity_id: media_player.kitchen
    button_down_double_press: false
    button_center_double_press: true
    action_button_right_short:
      - service: media_player.play_media
        data:
          media_content_id: RTL
          media_content_type: TUNEIN
        target:
          entity_id: media_player.kitchen

And the Media Hook :

alias: Kitchen music Hook Media Player (with Tradfri remote E1524)
description: Based on 2021.10.29 blueprint
use_blueprint:
  path: EPMatt/media_player.yaml
  input:
    controller_device: 67bce5a0e24c261314b17ad7b367bc23
    controller_model: IKEA E1524/E1810 TRÅDFRI Wireless 5-Button Remote
    media_player: media_player.kitchen

Hello,

is it possible to use this controller with Styrbar IKEA E2001/E2002 via deconz/phoscon?
It doesnt show up in the list of selectable devices?

Best regard,
Stefan

Error: UndefinedError: ‘dict object’ has no attribute ‘event’
Any ideas what i do wrong?

Same problem here

This automation was working great for a long time but seems to have stopped working correctly after some Home Assistant update.

I’m using IKEA E1744 Symfonisk rotary remote, via ZHA, to control my SONOS. The button press to play/stop still works, however volume up/down is no longer received by the Sonos integration.

I’m currently on:
HA 2023.8.3
Controller - IKEA E1744 SYMFONISK Rotary Remote ver. 2022-8-8
Hook - Media Player ver. 2022-7-30

When I turn the remote knob, these are the logs generated:

2023-08-20 13:25:31.332 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Restarting
2023-08-20 13:25:31.333 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Restarting
2023-08-20 13:25:31.335 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Running automation actions
2023-08-20 13:25:31.335 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step delay 0:00:00
2023-08-20 13:25:31.336 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Running automation actions
2023-08-20 13:25:31.336 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step delay 0:00:00
2023-08-20 13:25:31.337 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step setting variables
2023-08-20 13:25:31.337 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step call service
2023-08-20 13:25:31.337 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step setting variables
2023-08-20 13:25:31.338 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step call service

When I click the button, these are the logs generated:

2023-08-20 13:27:05.630 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Restarting
2023-08-20 13:27:05.630 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Restarting
2023-08-20 13:27:05.632 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Running automation actions
2023-08-20 13:27:05.633 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step delay 0:00:00
2023-08-20 13:27:05.633 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Running automation actions
2023-08-20 13:27:05.633 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step delay 0:00:00
2023-08-20 13:27:05.633 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step setting variables
2023-08-20 13:27:05.634 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Executing step call service
2023-08-20 13:27:05.634 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step setting variables
2023-08-20 13:27:05.634 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Executing step call service
2023-08-20 13:27:05.638 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Choose at step 4: choice 5: Running automation actions
2023-08-20 13:27:05.638 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Choose at step 4: choice 5: Executing step ahb_controller_event
2023-08-20 13:27:05.639 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Choose at step 4: choice 5: Running automation actions
2023-08-20 13:27:05.639 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Choose at step 4: choice 5: Executing step ahb_controller_event
2023-08-20 13:27:05.641 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Restarting
2023-08-20 13:27:05.641 INFO (MainThread) [homeassistant.components.automation.controller_ikea_e1744_symfonisk_rotary_remote_kitchen] Controller - IKEA E1744 SYMFONISK Rotary Remote - Kitchen: Choose at step 4: choice 5: Choose at step 2: choice 1: Running automation actions
2023-08-20 13:27:05.641 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_rotary_remote] Kitchen SYMFONISK Sonos Remote Automation: Choose at step 4: choice 5: Choose at step 2: choice 1: Running automation actions
2023-08-20 13:27:05.643 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Running automation actions
2023-08-20 13:27:05.643 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Executing step setting variables
2023-08-20 13:27:05.646 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Choose at step 2: choice 1: Running automation actions
2023-08-20 13:27:05.646 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Choose at step 2: choice 1: Executing step call service
2023-08-20 13:27:05.654 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Running automation actions
2023-08-20 13:27:05.654 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Executing step setting variables
2023-08-20 13:27:05.655 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Choose at step 2: choice 1: Running automation actions
2023-08-20 13:27:05.655 INFO (MainThread) [homeassistant.components.automation.kitchen_symfonisk_sonos_hook] Kitchen SYMFONISK Sonos Remote - Media Player Hook: Choose at step 2: choice 1: Executing step call service

Any ideas what’s preventing the volume adjustment from reaching the media player?

So can I assume this blueprint is abandoned? No activity in the updates or community discussion for a whole year. Is there a better integration for the IKEA Sonos remote now? Thanks