Skip to content

RGB hex codes not working? #16

@rikai

Description

@rikai

Just recently got Hue light starter kit and was messing around with Huey.

All the various bits seem to work except setting the color based on a hex color code. I enter the code and it seems to go through fine, but it doesn't work. Setting H S B manually seems to work fine, but rgb seems to do nothing despite seemingly being successful... Any help would be greatly appreciated! :)

Titan:Desktop studio$ irb
1.9.3-p545 :001 > require 'huey'
 => true

1.9.3-p545 :018 > studio = Huey::Group.new(Huey::Bulb.find(1), Huey::Bulb.find(2), Huey::Bulb.find(3))
 => #<Huey::Group:0x007fdb9b1b1a10 @bulbs=[#<Huey::Bulb:0x007fdb9b029850 @id=1, @changes={:hue=>33196, :sat=>106, :bri=>245}, @name="Left", @on=true, @bri=245, @hue=33196, @sat=106, @xy=[0.4595, 0.4105], @ct=500, @transitiontime=nil, @colormode="ct", @effect="none", @reachable=true, @alert="none">, #<Huey::Bulb:0x007fdb9b024e18 @id=2, @changes={}, @name="Right", @on=true, @bri=254, @hue=14922, @sat=144, @xy=[0.4595, 0.4105], @ct=369, @transitiontime=nil, @colormode="ct", @effect="none", @reachable=true, @alert="none">, #<Huey::Bulb:0x007fdb9b0219e8 @id=3, @changes={}, @name="Center", @on=true, @bri=245, @hue=33196, @sat=106, @xy=[0.4595, 0.4105], @ct=369, @transitiontime=nil, @colormode="ct", @effect="none", @reachable=true, @alert="none">], @attributes_to_write={}>

1.9.3-p545 :026 > studio.rgb = '8FF1F5'
 => "8FF1F5"
1.9.3-p545 :027 > studio.save
 => [true, true, true]

The above does absolutely nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions