Skip to content

Media Player

Base Example
media_player:
- platform: ... # See supported platforms at the end of this page
name: 'My Media Player'

Common attributes are documented in Common Component Properties.

Triggers can issue actions.

PropertyDescriptionExample
on_playTrigger block that runs when playback starts.then: - switch.turn_on: "screen"
on_pauseTrigger block that runs when playback stops/pauses.then: - switch.turn_off: "screen"
on_volume_changeTrigger block that runs when the volume changes.then: - button.press: "chime"
on_mute_changeTrigger block that runs when the mute state changes.then: - button.press: "chime"

Similar to ESPHome: Media Player