homestar-sonos
v0.1.11
Published
HomeStar / IOTDB Bridge for sonos
Downloads
25
Readme
homestar-sonos
IOTDB / HomeStar Controller for Sonos
See the samples for details how to add to your project.
Important Bug List
- This has never been tested: I don't own a Sonos
- We don't know the Sonos UUID. We have to get them to figure that out in the sonos library
Quick Start
Set the channel to 3
$ npm install -g homestar ## with 'sudo' if error
$ homestar setup
$ homestar install homestar-sonos
$ node
>>> iotdb = require('iotdb')
>>> iot = iotdb.iot()
>>> things = iot.connect("SonosPlay")
>>> things.set(":volume", 20)
>>> things.set(":mute", true)
>>> things.set(":media.mode", ":media.mode.play")
LGSmartTV
- volume: integer from 0 to 100 (iot-attribute:volume)
- mute: true or false (iot-attribute:mute)
- media.mode: string, see below (iot-attribute:media.mode.*)
- next: a work in progress
- previous: a work in progress
Modes
Supported Media Modes (so far)
- media.mode.play
- media.mode.pause
- media.mode.stop