Hue Lights discussion

Posted on
Thu Jan 27, 2022 2:33 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Thanks Karl!

I'll start working on merging things. I'll actually release a 1.7.65 patch release before releasing a version that includes all of your changes. The 1.7.65 version will include the new devices you've added though. The version that includes all the code changes will be in a new version 1.8.0.

Posted on
Thu Jan 27, 2022 2:50 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Version 1.7.65 Posted

  • Added support for another GLEDOPTO light strip controller
  • Added support for another Osram garden light pole.
  • Added support for another Hue color/ambiance bulb.
  • Added support for another Hue outdoor wall color light.
  • Added support for 2 new Hue color spot lights.
  • Added support for 2 new Hue dimmable lights.

Posted on
Fri Jan 28, 2022 4:48 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

Nathan,
looking at the definitions:
it seems that we don't need the supported devices. py. all the info is in bulbs["type"]
These are the types of the lights I have:
Dimmable light
Extended color light
Color temperature light
On/Off plug-in unit

and the same for sensosr I have:
Daylight
ZLLSwitch
CLIPGenericStatus

that completely defines the properties of the devices and how the plugin should handle them!?? At least the hub & app use that info, no need to enter any new config info for any of the bulbs I add the the iPhone app.

Then we could get out of manually adding devices to supportedDevices. py

That would naturally mean we need to rewrite some code, we only need to add the type definitions and then 99% of all new devices should work automatically.

I shall have a look at that .

any comments / issues with that approach?

Karl

Posted on
Fri Jan 28, 2022 1:11 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Hi Karl.

You're correct. It's generally possible with the lights to determine the available features based on the "type" classification. The plugin actually uses that info now for light strip devices since there are so many different types of light strips.

But to avoid boring everyone else with this discussion, let's continue the discussion via private message instead. I'll send you a PM.

Posted on
Sat Jan 29, 2022 6:09 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Hue Lights discussion

Hi,

new bulb :)

Code: Select all
Hue Lights Debug                Got response {u'24': {u'swversion': u'0122052017', u'name': u'Water', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2022-01-28T12:14:48'}, u'uniqueid': u'a4:c1:38:cd:8e:9a:91:01-01', u'capabilities': {u'control': {u'ct': {u'max': 454, u'min': 250}, u'colorgamuttype': u'other'}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Extended color light', u'state': {u'on': True, u'hue': 14988, u'colormode': u'ct', u'effect': u'none', u'alert': u'select', u'xy': [0.4336, 0.4031], u'reachable': False, u'mode': u'homeautomation', u'bri': 254, u'ct': 328, u'sat': 27}, u'manufacturername': u'AwoX', u'config': {u'function': u'mixed', u'direction': u'omnidirectional', u'archetype': u'spotbulb'}, u'type': u'Extended color light', u'modelid': u'TLSR82xx'}, u'10': {u'swversion': u'1.2.214', u'name': u'Divano5', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2019-11-23T15:30:47'}, u'uniqueid': u'08:6b:d7:ff:fe:04:ec:30-01', u'capabilities': {u'control': {}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Dimmable light', u'state': {u'on': False, u'reachable': True, u'mode': u'homeautomation', u'bri': 254, u'alert': u'none'}, u'manufacturername': u'IKEA of Sweden', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Dimmable light', u'modelid': u'TRADFRI bulb E14 W op/ch 400lm'}, u'15': {u'swversion': u'V1.05.09', u'name': u'Televisione Camera', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2020-04-22T09:22:26'}, u'uniqueid': u'7c:b0:3e:aa:0a:08:70:d8-03', u'capabilities': {u'control': {}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'On/Off plug', u'state': {u'on': False, u'reachable': False, u'mode': u'homeautomation', u'alert': u'select'}, u'manufacturername': u'OSRAM', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'plug'}, u'type': u'On/Off plug-in unit', u'modelid': u'Plug 01'}, u'21': {u'swversion': u'2.0', u'name': u'Comodino Giorgia', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2021-04-08T08:50:46'}, u'uniqueid': u'00:15:8d:00:04:ad:94:c1-01', u'capabilities': {u'control': {u'ct': {u'max': 370, u'min': 153}}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Color temperature light', u'state': {u'on': False, u'colormode': u'ct', u'alert': u'select', u'reachable': True, u'mode': u'homeautomation', u'bri': 1, u'ct': 367}, u'manufacturername': u'MLI', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Color temperature light', u'modelid': u'ZBT-ColorTemperature'}, u'22': {u'swversion': u'1.93.7', u'name': u'Soffitto', u'swupdate': {u'state': u'noupdates', u'lastinstall': u'2022-01-21T11:05:34'}, u'productid': u'Philips-LTG002-3-GU10CTv2', u'uniqueid': u'00:17:88:01:08:d2:f5:dc-0b', u'capabilities': {u'control': {u'mindimlevel': 200, u'maxlumen': 350, u'ct': {u'max': 454, u'min': 153}}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': True}, u'productname': u'Hue ambiance spot', u'state': {u'on': False, u'colormode': u'ct', u'alert': u'select', u'reachable': True, u'mode': u'homeautomation', u'bri': 127, u'ct': 366}, u'manufacturername': u'Signify Netherlands B.V.', u'swconfigid': u'87D6EF03', u'config': {u'function': u'functional', u'startup': {u'configured': True, u'customsettings': {u'bri': 254, u'ct': 366}, u'mode': u'custom'}, u'direction': u'downwards', u'archetype': u'spotbulb'}, u'type': u'Color temperature light', u'modelid': u'LTG002'}, u'16': {u'swversion': u'1.3.002', u'name': u'Mobile Camera', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2020-09-22T18:40:16'}, u'uniqueid': u'cc:cc:cc:ff:fe:9e:8b:26-01', u'capabilities': {u'control': {u'colorgamuttype': u'other'}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Color light', u'state': {u'on': False, u'hue': 8682, u'colormode': u'ct', u'effect': u'none', u'alert': u'select', u'xy': [0.458, 0.41], u'reachable': True, u'mode': u'homeautomation', u'bri': 1, u'sat': 245}, u'manufacturername': u'IKEA of Sweden', u'config': {u'function': u'decorative', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Color light', u'modelid': u'TRADFRI bulb E14 CWS opal 600lm'}, u'19': {u'swversion': u'', u'name': u'Robot', u'swupdate': {u'state': u'notupdatable', u'lastinstall': None}, u'uniqueid': u'ec:1b:bd:ff:fe:80:4c:5d-0b', u'capabilities': {u'control': {}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'On/Off plug', u'state': {u'on': True, u'reachable': True, u'mode': u'homeautomation', u'alert': u'select'}, u'manufacturername': u'_TZ3000_kdi2o9m6', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'plug'}, u'type': u'On/Off plug-in unit', u'modelid': u'TS011F'}, u'23': {u'swversion': u'2.0.024', u'name': u'Macchina Caff\xe8', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2021-07-26T17:19:04'}, u'uniqueid': u'80:4b:50:ff:fe:20:13:e6-01', u'capabilities': {u'control': {}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'On/Off plug', u'state': {u'on': False, u'reachable': True, u'mode': u'homeautomation', u'alert': u'select'}, u'manufacturername': u'IKEA of Sweden', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'On/Off plug-in unit', u'modelid': u'TRADFRI control outlet'}, u'20': {u'swversion': u'2.0', u'name': u'Comodino Marco', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2021-04-08T08:48:32'}, u'uniqueid': u'00:15:8d:00:04:ad:9b:a4-01', u'capabilities': {u'control': {u'ct': {u'max': 370, u'min': 153}}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'Color temperature light', u'state': {u'on': False, u'colormode': u'ct', u'alert': u'select', u'reachable': True, u'mode': u'homeautomation', u'bri': 1, u'ct': 367}, u'manufacturername': u'MLI', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'classicbulb'}, u'type': u'Color temperature light', u'modelid': u'ZBT-ColorTemperature'}, u'1': {u'swversion': u'1.50.2_r30933', u'name': u'Luna', u'swupdate': {u'state': u'transferring', u'lastinstall': u'2020-03-03T12:00:31'}, u'productid': u'Philips-LCT012-1-E14ECLv1', u'uniqueid': u'00:17:88:01:03:40:59:ad-0b', u'capabilities': {u'control': {u'ct': {u'max': 500, u'min': 153}, u'colorgamut': [[0.6915, 0.3083], [0.17, 0.7], [0.1532, 0.0475]], u'mindimlevel': 2000, u'maxlumen': 450, u'colorgamuttype': u'C'}, u'streaming': {u'renderer': True, u'proxy': True}, u'certified': True}, u'productname': u'Hue color candle', u'state': {u'on': True, u'hue': 48733, u'colormode': u'xy', u'effect': u'none', u'alert': u'select', u'xy': [0.5338, 0.3859], u'reachable': False, u'mode': u'homeautomation', u'bri': 199, u'ct': 156, u'sat': 254}, u'manufacturername': u'Signify Netherlands B.V.', u'swconfigid': u'A9AFB57A', u'config': {u'function': u'mixed', u'startup': {u'configured': False, u'customsettings': {u'bri': 254, u'ct': 366}, u'mode': u'custom'}, u'direction': u'omnidirectional', u'archetype': u'wallshade'}, u'type': u'Extended color light', u'modelid': u'LCT012'}, u'3': {u'swversion': u'1.88.1', u'name': u'TV-1', u'swupdate': {u'state': u'noupdates', u'lastinstall': u'2021-08-13T10:30:21'}, u'productid': u'3241-3127-7871-LS00', u'uniqueid': u'00:17:88:01:04:53:55:b3-0b', u'capabilities': {u'control': {u'ct': {u'max': 500, u'min': 153}, u'colorgamut': [[0.6915, 0.3083], [0.17, 0.7], [0.1532, 0.0475]], u'mindimlevel': 100, u'maxlumen': 540, u'colorgamuttype': u'C'}, u'streaming': {u'renderer': True, u'proxy': True}, u'certified': True}, u'productname': u'Hue play', u'state': {u'on': False, u'hue': 8392, u'colormode': u'hs', u'effect': u'none', u'alert': u'select', u'xy': [0.4996, 0.4277], u'reachable': True, u'mode': u'homeautomation', u'bri': 1, u'ct': 439, u'sat': 216}, u'manufacturername': u'Signify Netherlands B.V.', u'swconfigid': u'5290BE03', u'config': {u'function': u'decorative', u'startup': {u'configured': True, u'customsettings': {u'bri': 254, u'ct': 366}, u'mode': u'custom'}, u'direction': u'upwards', u'archetype': u'hueplay'}, u'type': u'Extended color light', u'modelid': u'LCT024'}, u'2': {u'swversion': u'1.88.1', u'name': u'Mobile Cameretta', u'swupdate': {u'state': u'noupdates', u'lastinstall': u'2021-08-13T10:30:26'}, u'productid': u'Philips-LCT012-1-E14ECLv1', u'uniqueid': u'00:17:88:01:03:40:59:a7-0b', u'capabilities': {u'control': {u'ct': {u'max': 500, u'min': 153}, u'colorgamut': [[0.6915, 0.3083], [0.17, 0.7], [0.1532, 0.0475]], u'mindimlevel': 2000, u'maxlumen': 450, u'colorgamuttype': u'C'}, u'streaming': {u'renderer': True, u'proxy': True}, u'certified': True}, u'productname': u'Hue color candle', u'state': {u'on': False, u'hue': 508, u'colormode': u'xy', u'effect': u'none', u'alert': u'none', u'xy': [0.6563, 0.3211], u'reachable': True, u'mode': u'homeautomation', u'bri': 1, u'ct': 500, u'sat': 233}, u'manufacturername': u'Signify Netherlands B.V.', u'swconfigid': u'AE68C57D', u'config': {u'function': u'mixed', u'startup': {u'configured': True, u'customsettings': {u'bri': 254, u'ct': 366}, u'mode': u'custom'}, u'direction': u'omnidirectional', u'archetype': u'tableshade'}, u'type': u'Extended color light', u'modelid': u'LCT012'}, u'5': {u'swversion': u'V1.04.12', u'name': u'Microonde', u'swupdate': {u'state': u'notupdatable', u'lastinstall': u'2019-11-15T14:08:34'}, u'uniqueid': u'7c:b0:3e:aa:0a:03:18:b7-03', u'capabilities': {u'control': {}, u'streaming': {u'renderer': False, u'proxy': False}, u'certified': False}, u'productname': u'On/Off plug', u'state': {u'on': False, u'reachable': True, u'mode': u'homeautomation', u'alert': u'select'}, u'manufacturername': u'OSRAM', u'config': {u'function': u'functional', u'direction': u'omnidirectional', u'archetype': u'plug'}, u'type': u'On/Off plug-in unit', u'modelid': u'Plug 01'}, u'4': {u'swversion': u'1.88.1', u'name': u'TV-2', u'swupdate': {u'state': u'noupdates', u'lastinstall': u'2021-08-13T10:30:16'}, u'productid': u'3241-3127-7871-LS00', u'uniqueid': u'00:17:88


Name is "Water" :)

Posted on
Sat Jan 29, 2022 8:45 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Thanks Marco.

I'll add support in the next plugin update.

Posted on
Sun Jan 30, 2022 3:31 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

After chatting with Nathan, I am going forward to add the following feature:

The plugin will only use device types for the light devices (not yet sensors = switches) not the modelId anymore
This will enable to model id not any more required to add new lamp types, the plugin will auto detect the right type of lamp and know which functions it can use.

here are the types I have found:
    Dimmable light
    Extended color light
    Color light
    Color temperature light
    Dimmable light
    On/Off plug-in unit
I need some one to check if these are all device types,...

==Enable hue plugin debug in config, restart plugin
in indigo log
find u'type':
in section
loaded lights list - {u'11': {u'swversion': u'1.65.11_hB798F2', u'name': u'Library spot 3', u'swupdate': {u'state': u'transferring', u'lastinstall': u'2022-01-21T21:14:26'}, u'productid': u'Philips-LCG002-3-GU10ECLv2', u'uniqueid': u'00:17:88:01:0c:39:74:32-0b', u'capabilities': {u'control': {u'ct': {u'max': 500, u'min': 153}, u'colorgamut': [[0.6915, 0.3083], [0.17, 0.7], [0.1532, 0.0475]], u'mindimlevel': 200, u'maxlumen': 300, u'colorgamuttype': u'C'}, u'streaming': {u'renderer': True, u'proxy': True}, u'certified': True}, u'productname': u'Hue Fugato color spot', u'state': {u'on': True, u'hue': 36069, u'colormode': u'xy', u'effect': u'none', u'alert': u'select', u'xy': [0.2272, 0.3807], u'reachable': False, u'mode': u'homeautomation', u'bri': 254, u'ct': 153, u'sat': 178}, u'manufacturername': u'Signify Netherlands B.V.', u'swconfigid': u'B6B8B914', u'config': {u'function': u'mixed', u'startup': {u'configured': True, u'mode': u'safety'}, u'direction': u'omnidirectional', u'archetype': u'doublespot'},
>>>>>> u'type': u'Extended color light', <<<<<< like this one
u'modelid': u'5063230P7'}, u'10': {u'swversion': u'1.65.11_hB798F2', u'name': u'Library spot 4', u'swupdate': {u'state': u'transferring', u'lastinstall': u'2022-01-21T21:14:16'}, u'productid': u'Philips-LCG002-3-GU10ECLv2', u'uniqueid': u'00:17:88:01:0c:39:76:1f-0b', u'capabilities': {u'control': {u'ct': {u'max': 500, u'min': 153}, u'colorgamut': [[0.6915, 0.3083], [0.17, 0.7], [0.1532, 0. ....

I need to know If I there are other dev types other than in the list above

if you could post the results

Karl

Posted on
Mon Jan 31, 2022 3:15 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Hue Lights discussion

Hi Karl,

those JSON values I have under "productname", not under "type".

Posted on
Mon Jan 31, 2022 7:17 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

Could you post the whole json for one device?


Sent from my iPhone using Tapatalk

Posted on
Mon Jan 31, 2022 9:49 am
nick.perry offline
Posts: 24
Joined: Feb 04, 2008

Re: Hue Lights discussion

For the sample of devices I've checked. both u'productname': and u'type' are the same value.

Posted on
Mon Jan 31, 2022 10:12 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

and anything that is not listed?
and mine (all philips hue) are all different "type !=productname"

anyway the hue system uses type for properties of the lamp

Karl
[edit] I have one osram light and yes there product name and type are identical

Posted on
Mon Jan 31, 2022 1:48 pm
nick.perry offline
Posts: 24
Joined: Feb 04, 2008

Re: Hue Lights discussion

Sorry - bad sampling! My OSRAM and GLEDOPT devices have identical
Code: Select all
productname
and
Code: Select all
type
but not Phillip/Signify.

The extent of my 'type's is a subset of yours:

Code: Select all
Color light
Color temperature light
Dimmable light
Extended color light
On/Off plug-in unit

Posted on
Mon Jan 31, 2022 4:33 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

I have a preliminary version ready - anyone willing to test?

modelID is not used anymore (for light devices) ONLY type is used. (sensors = buttons, dimmers temp .. sensors still use modeled, but there are not that many)

All types are defined, hence new bulb types don't need any new entry in supported devices.py

this is BETA!

Karl

Posted on
Mon Jan 31, 2022 4:35 pm
nick.perry offline
Posts: 24
Joined: Feb 04, 2008

Re: Hue Lights discussion

anyone willing to test?


Sure - and I have some devices I know aren't in the latest plugin too.

Posted on
Tue Feb 01, 2022 4:03 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Hue Lights discussion

After discussing with nathan here the download link to version 1.8
https://github.com/nsheldon/Hue-Lights- ... ag/v1.8.63

this is beta!
list of changes:
    1. not using model id for lamps anymore.
    This enables new lamp types to be added w/o having to manually adding the modelid to the supporteddevices.py file
    2. fixed bug that when deleting an indigo device causing error message "File "plugin.py", line xxx, in parseOneHueLightData"
    3. added menu item to print hue device lists and detailed json for individual devices
    4. added support for multiple hubs. Each hue device now has a property hubNumber, hence in each device edit you need to select the hub number first
    also in config you need to set ip numbers for the hubs.
==> after upgrading from 1.7.x to 1.8 you might not be able to move back to 1.7. easily
You should make a copy of
/Library/Application Support/Perceptive Automation/Indigo.x.y/Preferences/Plugins/com.nathansheldon.indigoplugin.HueLights.indiPref
when you want to go back restore that file (shutdown indigo server and then restore file, then restart indigo)



Karl

Page 95 of 103 1 ... 92, 93, 94, 95, 96, 97, 98 ... 103

Who is online

Users browsing this forum: No registered users and 1 guest