Skip to content

[bug] Physical buttons not always working (not hardware related) #237

@uvjim

Description

@uvjim

Is there an existing issue for this?

  • I have searched the existing issues

Description

Originally reported here: https://unfolded.community/t/physical-buttons/1012

I’m creating an integration to control my Virgin Media TiVo. However, when I assign a media player action to a physical button it doesn’t work - no event is seen by the integration. However, if I add the same action to a soft button on the touch screen it works fine.

I have tried restarting the activity just in case that was a problem, but that doesn’t seem to be the case.

I have mapped an action from the Android TV integration to a physical button, and that works.

Is there anything special that I need to do in my integration to allow physical buttons to be used?

I may have narrowed this down a little more. If I create a button entity in my integration and map that to a physical button - it works.

Any action from a media player entity from my integration does not seem to work when mapped to a physical button, but does when it is mapped to a button on the touch screen.

I'm not sure if this might be related to the following: -

How to Reproduce

Using a custom integration the provides a media player...

  1. Add the media player to an activity
  2. Map a physical button to an action from the media player
  3. Stop the activity on the remote (if it was started)
  4. Start the activity on the remote

Expected behavior

Physical buttons to work with the media player entity from the custom integration.

System version

1.5.2

What part of the system affected by the problem?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions