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

Mediaplayer card sending "media_play_pause" instead of "media_play" #8672

Closed
3 tasks done
definitio opened this issue Mar 19, 2021 · 1 comment · Fixed by #8845
Closed
3 tasks done

Mediaplayer card sending "media_play_pause" instead of "media_play" #8672

definitio opened this issue Mar 19, 2021 · 1 comment · Fixed by #8845
Assignees
Labels
Bug Current Bug in UI - Extra Attention

Comments

@definitio
Copy link

definitio commented Mar 19, 2021

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

Describe the issue you are experiencing

I have a media player that supports Play and Stop. When pressing the Play button on the card the media_play_pause service is called instead of media_play. This causes the Play command to not work.

Describe the behavior you expected

Play button should call media_play service.

Steps to reproduce the issue

  1. Add a mediaplayer that supports only Stop and Play (not Pause)
  2. Navigate to Lovelace
  3. Click Play, media_play_pause service is called

What version of Home Assistant Core has the issue?

2021.3.4

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 86.0.1

Which operating system are you using to run this browser?

Arch Linux

State of relevant entities

# Paste your state here.

Problem-relevant frontend configuration

# Paste your YAML here.

Javascript errors shown in your browser console/inspector

# Paste your logs here.

Button event:

{
    "event_type": "call_service",
    "data": {
        "domain": "media_player",
        "service": "media_play_pause",
        "service_data": {
            "entity_id": "media_player.vacuum"
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-03-19T12:19:30.581563+00:00",
    "context": {
        "id": "28c9d00eecb1dddea87c75525e3d919c",
        "parent_id": null,
        "user_id": "59507d5e859640a88b270a9bb00babe6"
    }
}
@definitio definitio added the Bug Current Bug in UI - Extra Attention label Mar 19, 2021
@mrand
Copy link
Contributor

mrand commented Apr 7, 2021

This has been a long standing problem - since before June of 2020 (per issue #6097, which expired with no response).

@spacegaier spacegaier self-assigned this Apr 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants