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.
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.