bahamas10 / hue-cli

A command line interface to phillips hue
http://bahamas10.github.com/hue-cli/
221 stars 24 forks source link

hue state command not working #25

Closed TerenceTanWT closed 7 years ago

TerenceTanWT commented 7 years ago

The "state" command (e.g. hue lights 1 state) is not working.

When I run the command "cat state.txt | hue lights 1 state", I get the error "light 1 failed: parameter, state, not available". Running the command with -j gives the error: { "description": "parameter, state, not available", "type": 6 }

Am I doing something wrong? I obtain the state.txt json file from the command "hue -j lights 1 > state.txt".

*Edit: I should have read the documentation clearly. It turns out I'm not suppose to just use the entire output from hue -j lights 1. I had to edit it before it worked.