netbeast / api

:rocket: Node.js wrapper for the resources Netbeast Router HTTP API.
http://netbeast.co
11 stars 7 forks source link

Error at using beast('lights' ).set(power: "off") #9

Closed cayrodmed1 closed 8 years ago

cayrodmed1 commented 8 years ago

I've discovered that you can't use power: "off" while turning lights off (didn't try with other topics). If you want to turn power off, you have to use power: false in the set method. It doesn't happen while turning lights on, they both work power: "on" and power: true.

┆Issue is synchronized with this Asana task

jsdario commented 8 years ago

You are not the first one in experiencing this issue. This probably has to do with the virtual bulb plugin. I'll assign @pablopi but also I'll try to check it tomorrow myself. If you want to help please take a look on this line which might be the problem.

https://github.com/netbeast/bulb-plugin/blob/master/plugin.js#L80