Skip to content

feat: add tv-box device as media player entity#1562

Merged
SusanPhevos merged 6 commits into
XiaoMi:mainfrom
SusanPhevos:feat-tvbox
Dec 18, 2025
Merged

feat: add tv-box device as media player entity#1562
SusanPhevos merged 6 commits into
XiaoMi:mainfrom
SusanPhevos:feat-tvbox

Conversation

@SusanPhevos

@SusanPhevos SusanPhevos commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

Why

The missing of a required property in an optional service should not immediately determine that the device does not comply with the conversion rules of SPEC_DEVICE_TRANS_MAP.
If a television not have the playing-state property, xiaomi_home will never show the right state in the media player entity which will not display the interfaces of play, pause and next correctly. So the playing-state property is required for the play-control service.

Added

  • Add tv-box device as the media player entity.
  • Set play-control service's play-loop-mode property as the sound mode.

Changed

  • Set the playing-state property as the required property in the optional play-control service of the television.

@SusanPhevos SusanPhevos changed the title Feat tvbox feat: add tv-box device as media player entity Dec 16, 2025
@SusanPhevos
SusanPhevos merged commit 86a739b into XiaoMi:main Dec 18, 2025
6 checks passed
@SusanPhevos
SusanPhevos deleted the feat-tvbox branch December 18, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant