bencevans / node-sonos

🔈 Sonos Media Player Interface/Client

Home Page:https://www.npmjs.com/package/sonos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setLEDState does not work

hklages opened this issue · comments

I would like to setLEDState('Off') but it does not work. getLEDState works fine.
Instead of 'Off' I also tried On, on, off, 0, 1, true, false - all lead to error message.

Current Behavior

I receive "Request failed with status code 500" and the stack.

Sample code or executed example

sonosPlayer.setLEDState('Off') // On | Off
      .catch(error => { console.log('Error occurred %j', error); });

Versions (and Environment)

node-sonos version: 1.12.4.
Node-RED: 1.02

You're right there was a typ-o in the DeviceProperties service. Will be fixed soon.

Thanks a lot. Both issues are solved (this and the playmode).
Great.