Skip to content

bartellramsey/hass-integrations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Home Assitant integrations

Additional intagrations for Home Assistant

Mopidy

This is a platform integration for Mopidy Music Servers

Installation

Please look at the Mopidy installation & configuration instructions to set up a Mopidy Server.

  1. Clone this repository
  2. Copy the mopidy directory to <config dir>/custom_components/

Setup

GUI

  1. Go to the Integrations page and click + ADD INTEGRATION
  2. Select Mopidy in the list of integrations
  3. Fill out the requested information. Make sure to enter your correct FQDN or IP address. Using localhost, 127.0.0.1, ::1 or any other loopback address will disable Mopidy-Local artwork.
  4. Click Submit.

Repeat the above steps to add more Mopidy Server instances.

Manual Configuration

  1. add a media player to your home assistant configuration (<config dir>/configuration.yaml):
media_player:
- name: <mopidy identifier>
  host: <FQDN or IP address>
  port: <port if different from 6680>
  platform: mopidy
  1. Restart your Home assistant to make changes take effect.

Configuration

- name: <mopidy name>      # The name of your Mopidy server.
  host: <fqdn/ip address>  # The FQDN or IP address of your Mopidy Server, do not use ::1, localhost or 127.0.0.1
  port: <port number>      # The port number of the Mopidy Server, default: 6680
  platform: mopidy         # specify mopidy platform

Services

Service media_player.play_media

The media_content_id needs to be formatted according to the Mopidy URI scheme. These can be easily found using the Developer tools.

When using the play_media service, the Mopidy Media Player platform will attempt to discover your URL when not properly formatted. Currently supported for:

  • Youtube

Notes

Due to the nature of the way Mopidy provides thumbnails of the media, proxying them through Home Assistant is very resource intensive, causing delays. Therefore, I have decided to not proxy the art when using the Media Library for the time being.

Tests

Mopidy v3.1.1

Backends:

  • mopidy-beets v4.0.1
  • mopidy-dleyna 2.0.1
  • mopidy-internetarchive v3.0.0
  • mopidy-local v3.2.0
  • mopidy-podcast v3.0.0
  • mopidy-somafm v2.0.0
  • mopidy-soundcloud v3.0.1
  • mopidy-spotify v4.1.0
  • mopidy-tunein v1.0.2
  • mopidy-YouTube v3.2

About

My custom Home Assistant integrations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%