bahamas10 / hue-cli

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

parameter, `colormode`, not available #30

Open strafe opened 3 years ago

strafe commented 3 years ago

Setting the existing state on a light results in an error. Although it still appears to get set correctly.

$ hue -j lights 4 | jq '.state' | hue lights 4 state
light 4 failed: parameter, colormode, not available

State that's being set:

{
  "on": true,
  "bri": 1,
  "hue": 54600,
  "sat": 254,
  "effect": "none",
  "xy": [
    0.3721,
    0.1536
  ],
  "ct": 236,
  "alert": "none",
  "colormode": "xy",
  "mode": "homeautomation",
  "reachable": true
}
m0dbot commented 3 years ago

dont know if this is related but I noticed "hue lights 1 red" doesnt do anything on my tradfri rgbw bulb. thats because they use the xy colormode instead of hsv

strafe commented 3 years ago

dont know if this is related but I noticed "hue lights 1 red" doesnt do anything on my tradfri rgbw bulb. thats because they use the xy colormode instead of hsv

Interesting, I'm using Hue bulbs in this example and they seem to use xy according to the state. Yet using red, blue, etc. still works.

Removing colormode yields:

light 4 failed: parameter, /lights/4/state, is not modifiable

Removing mode as well yields:

light 4 failed: parameter, reachable, not available

Removing reachable as well yields:

light 4 success