Fork me on GitHub

pimatic-mopidy by Jonathan Foucher (jfoucher) | github | npm

pimatic-mopidy

pimatic plugin for controlling Mopidy through websockets.

###device config example:

{
  "id": "mopidy-player",
  "name": "Music",
  "class": "MpdPlayer",
  "host": "192.168.1.2",
  "port": 6680
}

###device rules examples:

Play music
if smartphone is present then play mopidy-player

Pause music
if smartphone is absent then pause mopidy-player

Stop music
if smartphone is absent then stop mopidy-player

Change volume
if buttonVolumeLow is pressed then change volume of mopidy-player to 5

Next song
if buttonNext is pressed then play next song Music

Previous song
if buttonPrev is pressed then play previous song Music

Currently no predicates for the mopidy plugin. If you would like to do something when the state changes you could use the attribute predicate.
if $mopidy-player.state equals \"play\" then switch speakers on
if $mopidy-player.state equals \"pause\" then switch speakers off

Plugin Config Options

Mopidy Plugin

Device Config Options

pimatic-mopidy device config schemas

MopidyPlayer

MopidyPlayer config options
OptionDescriptionDefault
port
number
The port of the mopidy server websockets (6680 by default)
host
string
The address of the mopidy server
pimatic-mopidy is written by Jonathan Foucher (jfoucher)