Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ bragi Public

cyd/esphome powered music assistant controller

Notifications You must be signed in to change notification settings

jayrox/bragi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bragi is an ESPHome CYD device that interacts with Home Assistant and Music Assistant to control a media player's state.


It does not play music on its own, just controls the currently playing media.

Pronounced: "BRAH-gee"

Bragi

https://youtu.be/m4RGnzpfPXs

Requires 3 Home Assistant Helpers:

  • input_text.current_album_cache_key
  • input_boolean.current_track_is_favorite
  • input_select.music_playlists

Required edits:

  • media_player_entity_mass: the Home Assistant media_player entity id provided by the Music Assistant integration
  • entity_button_favorite: the Home Assistant entity id for the media player's favorite button
  • <media player id>: replace with the media_player entity id from Home Assistant
  • <home assistant url>: replace with your Home Assistant URL without the trailing slash, this is used to generate the resized album art

configuration.yaml

shell_command:
  resize_album_art: python3 /config/python_scripts/resize_album_art.py --url "{{ url }}" --artist "{{ artist }}" --album "{{ album }}" --title "{{ title }}"

Known Issues:

  • Favoriting a song works but doesn't show up directly on the Music Assistant app, not sure why. Hopefully this gets fixed by their team.
    • This issue can be fixed by using AppDaemon and the python script in the app_daemon folder.

About

cyd/esphome powered music assistant controller

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published