Skip to content

LukevdPalen/pimatic-sonos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

npm version

pimatic-sonos

##Important This plugin is still under development, please remain calm.. 😎

pimatic plugin for controlling the Sonos Music Player.

###device config example:

{
  "id": "sonos-player",
  "name": "Living room",
  "class": "SonosPlayer",
  "host": "192.168.1.102",
  "port": 1400
}

###device rules examples:

Play music
if smartphone is present then play sonos-player

Pause music
if smartphone is absent then pause sonos-player

Change volume
if buttonVolumeLow is pressed then change volume of sonos-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 sonos plugin. If you would like to do something when the state changes u could use the attribute predicate.
if $sonos-player.state equals "play" then switch speakers on
if $sonos-player.state equals "pause" then switch speakers off
if $sonos-player.currentArtist equals "rick astley" then switch speakers off
if $sonos-player.currentTitle equals "coco jambo" then change volume of sonos-player to 20

About

Pimatic Sonos plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published