Media Player
media_player: - platform: ... # See supported platforms at the end of this page name: 'My Media Player'Attributes
Section titled “Attributes”Common attributes are documented in Common Component Properties.
Triggers
Section titled “Triggers”Triggers can issue actions.
| Property | Description | Example |
|---|---|---|
on_play | Trigger block that runs when playback starts. | then: - switch.turn_on: "screen" |
on_pause | Trigger block that runs when playback stops/pauses. | then: - switch.turn_off: "screen" |
on_volume_change | Trigger block that runs when the volume changes. | then: - button.press: "chime" |
on_mute_change | Trigger block that runs when the mute state changes. | then: - button.press: "chime" |
Supported Platforms
Section titled “Supported Platforms”Similar to ESPHome: Media Player