From b744f07fc9f2e6d6bb4cb1a30dbf73b028ab03dd Mon Sep 17 00:00:00 2001 From: David Date: Thu, 7 Jun 2018 15:09:45 +0200 Subject: [PATCH 1/3] add uniqueid to fields --- lib/hue/light.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/hue/light.rb b/lib/hue/light.rb index 10416643..79334501 100644 --- a/lib/hue/light.rb +++ b/lib/hue/light.rb @@ -83,6 +83,9 @@ class Light # Reserved for future functionality. attr_reader :point_symbol + + # The unique ID of the light. + attr_reader :uid def initialize(client, bridge, id, hash) @client = client @@ -148,7 +151,8 @@ def refresh :name => :name, :model => :modelid, :software_version => :swversion, - :point_symbol => :pointsymbol + :point_symbol => :pointsymbol, + :uid => :uniqueid } STATE_KEYS_MAP = { From 7319bbea932bbabbf167f324349c1d672cd14927 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 9 Mar 2019 16:17:32 +0200 Subject: [PATCH 2/3] [ADD] Add capabilities and config --- lib/hue/light.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/hue/light.rb b/lib/hue/light.rb index 79334501..aa880476 100644 --- a/lib/hue/light.rb +++ b/lib/hue/light.rb @@ -83,10 +83,16 @@ 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 @@ -152,7 +158,9 @@ def refresh :model => :modelid, :software_version => :swversion, :point_symbol => :pointsymbol, - :uid => :uniqueid + :uid => :uniqueid, + :capabilities => :capabilities, + :config => :config } STATE_KEYS_MAP = { From c7fe25928ddf7e647f1e55c71048acdbfe7ee065 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 9 Mar 2019 16:17:38 +0200 Subject: [PATCH 3/3] Bump hue to 0.1.6 --- lib/hue/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hue/version.rb b/lib/hue/version.rb index d5140d0f..aee590f8 100644 --- a/lib/hue/version.rb +++ b/lib/hue/version.rb @@ -1,3 +1,3 @@ module Hue - VERSION = '0.1.5' + VERSION = '0.1.6' end