Skip to content

Commit

Permalink
Merge pull request #45 from Wachiwi/patch-1
Browse files Browse the repository at this point in the history
Add uniqueid to Light fields
  • Loading branch information
soffes authored Jan 3, 2024
2 parents c991aed + f91a2e8 commit 258d3cd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/hue/light.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ class Light
# Reserved for future functionality.
attr_reader :point_symbol

# The unique ID of the light.
attr_reader :uid

# The hash of capabilities of the light
attr_reader :capabilities

# The config hash
attr_reader :config

def initialize(client, bridge, id, hash)
@client = client
@bridge = bridge
Expand Down Expand Up @@ -148,7 +157,10 @@ def refresh
:name => :name,
:model => :modelid,
:software_version => :swversion,
:point_symbol => :pointsymbol
:point_symbol => :pointsymbol,
:uid => :uniqueid,
:capabilities => :capabilities,
:config => :config
}

STATE_KEYS_MAP = {
Expand Down

0 comments on commit 258d3cd

Please sign in to comment.