Method: NLHue::Group#state
- Defined in:
- lib/nlhue/group.rb
#state ⇒ Object
Returns a Hash containing the group’s info and most recently set state, with symbolized key names and hue scaled to 0..360. Example:
:id => 0,
:name => 'Lightset 0',
:type => 'LightGroup',
:lights => [0, 1, 2],
:on => false,
:bri => 220,
:ct => 500,
:x => 0.5,
:y => 0.5,
:hue => 193.5,
:sat => 255,
:colormode => 'hs'
65 66 67 |
# File 'lib/nlhue/group.rb', line 65 def state {lights: light_ids}.merge!(super) end |