Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts? #2

Open
mattya802 opened this issue Jan 26, 2018 · 2 comments
Open

Scripts? #2

mattya802 opened this issue Jan 26, 2018 · 2 comments

Comments

@mattya802
Copy link

I was looking through your groups.yaml, as I love the look of the multimedia page and saw you have 4 scripts listed in mp_moods. Do you have the code for those scripts?

How are you playing specific music based on your "mood"?

@maattdiy
Copy link
Owner

The main package for media player is:
https://github.com/maattdiy/home-assistant-config/blob/master/config/packages/mp_general.yaml
There I have :

  • Settings (inputs) for volume, radio stations...
  • Scripts to play/pause, stop, next to easy call
  • A script mp_set to actually play the playlist (in Clementine player), to be called passing the volume and playlist name
  • And finally some scripts, each one for a mood/playlist: mp_wakeup, mp_barney, mp_relax01, mp_nature... (each one call the main script mp_set)

@mattya802
Copy link
Author

Thanks! I'll have to look into this Clementine player/remote. Had never heard of it before. Looking for alternatives since it seems trying to kick off a Google Play Music channel isn't possible through script/automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants