All Projects → ppanagiotis → pymusiccast

ppanagiotis / pymusiccast

Licence: MIT license
Group MusicCast Speakers with Home Assistant

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pymusiccast

ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (-11.76%)
Mutual labels:  media-player, hass, home-assistant, homeassistant
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+355.88%)
Mutual labels:  hass, home-assistant, homeassistant, lovelace
addon-shinobi
Shinobi Pro - Community Hass.io Add-on for Home Assistant
Stars: ✭ 22 (-35.29%)
Mutual labels:  hass, home-assistant, homeassistant, hassio
Hassio Addons
The repository for my Home Assistant Supervisor Add-ons.
Stars: ✭ 71 (+108.82%)
Mutual labels:  media-player, home-assistant, homeassistant
Addon Homebridge
 Homebridge - Community Hass.io Add-on for Home Assistant
Stars: ✭ 96 (+182.35%)
Mutual labels:  hass, home-assistant, homeassistant
Home Assistant.io
📘 Home Assistant User documentation
Stars: ✭ 2,377 (+6891.18%)
Mutual labels:  hass, home-assistant, hassio
charger-card
A lovelace card for electrical vehicle (EV) home chargers and charging robots.
Stars: ✭ 57 (+67.65%)
Mutual labels:  hass, homeassistant, lovelace
bootstrap-grid-card
Bootstrap grid in Lovelace UI
Stars: ✭ 25 (-26.47%)
Mutual labels:  hass, homeassistant, lovelace
Home-Assistant-Configuration
🏡 My home assistant configuration!
Stars: ✭ 28 (-17.65%)
Mutual labels:  hass, homeassistant, hassio
addon-tailscale
Tailscale - Home Assistant Community Add-ons
Stars: ✭ 47 (+38.24%)
Mutual labels:  home-assistant, homeassistant, hassio
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+338.24%)
Mutual labels:  home-assistant, homeassistant, lovelace
Homeassistant Config
Configuration for @brianjking & @KinnaT's Home Assistant Installation
Stars: ✭ 80 (+135.29%)
Mutual labels:  hass, home-assistant, homeassistant
Home Assistant Config
🏠 My Home Assistant configuration, a bit different that others :) Be sure to 🌟 this repository for updates!
Stars: ✭ 1,050 (+2988.24%)
Mutual labels:  hass, home-assistant, homeassistant
xboxone-home-assistant
Control your Xbox One from your Home Assistant device.
Stars: ✭ 26 (-23.53%)
Mutual labels:  media-player, home-assistant, hassio
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+1061.76%)
Mutual labels:  hass, home-assistant, homeassistant
Vacuum Card
Vacuum cleaner card for Home Assistant Lovelace UI
Stars: ✭ 295 (+767.65%)
Mutual labels:  hass, home-assistant, homeassistant
hifiberry
This is a custom component to allow control of HifiberryOS devices in Home Assistant using the audiocontrol2 REST API.
Stars: ✭ 26 (-23.53%)
Mutual labels:  media-player, home-assistant, hassio
hass-pfsense
pfSense integration with Home Assistant
Stars: ✭ 44 (+29.41%)
Mutual labels:  hass, home-assistant, hassio
homeassistant-phonetrack
PhoneTrack custom device_tracker component for Home Assistant.
Stars: ✭ 20 (-41.18%)
Mutual labels:  hass, homeassistant, hassio
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+347.06%)
Mutual labels:  home-assistant, hassio, lovelace

Deprecated after Home Assistant 2021.7. Use official integration

Group MusicCast Speakers with Home Assistant

After waiting a year for pymusiccast to support speakers group I decide to create a custom module, overwriting existing pymusiccast module, using code from this PR (credits @hcoohb).

musiccast group management example

Install

HACS

  • Find it under integrations and select install it.
    ]

Manual

  • Copy entire pymusiccast/custom_components/musiccast_yamaha folder under $HOMEASSISTANT_CONFIG/custom_components/.

Setup

  • At media_server component you have to add the following entry for each media player you want to add
- platform: musiccast_yamaha
  host: `your.speaker.ip.address`
  port: 5009

source ignore / source names attributes (optional)

  • Add source_ignore or / and source_names attributes
- platform: musiccast_yamaha
  host: `your.speaker.ip.address`
  port: 5009
  source_ignore:
    - "AUX"
    - "HDMI6"
  source_names:
    HDMI1: "ChromeCast"
    AV4: "Vinyl"

Using grouping at home assistant as a service

To add a speaker at a group:

action:
  - service: musiccast_yamaha.join
    data:
      entity_id: `THE_CLIENT_SPEAKER`
      master: `THE_MASTER_SPEAKER`

To remove a spearker from group

action:
  - service: musiccast_yamaha.unjoin
    entity_id: `THE_CLIENT_SPEAKER`

Using grouping at home assistant with custom:mini-media-player

To add the group layout at custom:mini-media-player you have to add something like this at your ui-lovelace.yaml:

views:
  - title: Home Assistant
    id: media_player
    icon: mdi:audio-video
    cards:
      - type: entities
        entities:
          - type: custom:mini-media-player
            group: true
            entity: media_player.livingroom
            name: LivingRoom
            toggle_power: false
            artwork: cover
            hide:
              icon: true
              power_state: false
            speaker_group:
              platform: musiccast_yamaha
              expanded: false
              entities:
                - entity_id: media_player.livingroom
                  name: LivingRoom
                - entity_id: media_player.office
                  name: Office
                - entity_id: media_player.bedroom
                  name: BedRoom
                - entity_id: media_player.yard
                  name: Yard
          - type: custom:mini-media-player
            group: true
            name: Office
            hide:
              icon: true
              controls: true
              progress: true
              source: true
              info: true
              power_state: false
            entity: media_player.office
            toggle_power: false
          - type: custom:mini-media-player
            group: true
            name: BedRoom
            hide:
              icon: true
              controls: true
              progress: true
              source: true
              info: true
              power_state: false
            entity: media_player.bedroom
            toggle_power: false
          - type: custom:mini-media-player
            group: true
            name: Yard
            hide:
              icon: true
              controls: true
              progress: true
              source: true
              info: true
              power_state: false
              volume: true
            entity: media_player.yard
            toggle_power: false

You like this project? Be nice!

Buy me a coffee beer! ;-)

Buy me a coffee beer!

License

This project is under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].