Skip to content

Generic Speaker

Landon Rohatensky edited this page Jun 16, 2023 · 1 revision

load components

(homeassistant_media_player, media_player_source_sonos, media_player_source_spotify, media_player_source_custom)

external_components:
  - source:
      type: git
      url: https://github.com/landonr/homeThing
      ref: main
    refresh: 0s
    components: [homeThing]
  - source:
      type: git
      url: https://github.com/landonr/esphome-components
      ref: main
    refresh: 0s
    components: [
      homeassistant_component,
      homeassistant_media_player,
      media_player_source,
      media_player_source_sonos,
      media_player_source_spotify,
      media_player_source_custom
    ]

set up media player

media_player:
  - platform: homeassistant_media_player
    name: Beam
    entity_id: "media_player.beam" ## replace with your home assistant entity id
    id: media_player_beam
    type: speaker
    sources:
      - id: sonos ## loads sensor.sonos_favorites
        type: sonos
      - id: spotty ## loads spotcast playlists
        type: spotify
      - id: fav_playlists ## manually configured playlists
        type: custom
    commands: ## optional commands to show on now playing menu
      name: "group all"
      command:
        - homeassistant.service:
            service: script.sonos_group_all

Media Players

Speakers

Screens

Receivers

  • Yamaha

Smart home devices

  • Lights
  • Switches
  • Text Sensors

HomeThing

Clone this wiki locally