ALTHue : Feature Requests

In the latest openLuup development release v18.4.7, I’ve managed to sandbox the string library between separate devices, so this potential issue with other plugins should not happen, and there’s no need to modify their code.

I still believe, however, that it is bad practice to modify system libraries.

Hi
Does Althue plugin support IKEA Tradfri led lamps?

[quote=“json, post:42, topic:199107”]Hi
Does Althue plugin support IKEA Tradfri led lamps?[/quote]
If Philips hue bridge does I do not see why not (, but it as to be tested )

I have tested Ikea bulbs connected to a Hue bridge, and ALTHue does support them.

Hi,
Tested 2 IKEA LED lamps and they are visable in AltHUE information tab.
Althue finds the hue hub and there was no problems to pair but unfortenately i am receiving Can’t Detect Device message from Althue plugin.

Althue version: 0.7

[quote=“json, post:45, topic:199107”]Hi,
Tested 2 IKEA LED lamps and they are visable in AltHUE information tab.
Althue finds the hue hub and there was no problems to pair but unfortenately i am receiving Can’t Detect Device message from Althue plugin.

Althue version: 0.7[/quote]

Try version on github.
also please try this :
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log

[quote=“amg0, post:46, topic:199107”][quote=“json, post:45, topic:199107”]Hi,
Tested 2 IKEA LED lamps and they are visable in AltHUE information tab.
Althue finds the hue hub and there was no problems to pair but unfortenately i am receiving Can’t Detect Device message from Althue plugin.

Althue version: 0.7[/quote]

Try version on github.
also please try this :
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log[/quote]

Hi,
Thanks for support!!

Installed via the link provided as method 1; Install from MCV store.
After setting the IP adress, i am getting luup engine is taking longer to reload. Try again.
Pairing the hue bridge and get OK.
Lamp information for both Hue and IKEA is available under tab: Hue devices.
AltHue reporting: Can’t Detect Device

Anything in the logfile i should check for?

I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file

[quote=“amg0, post:48, topic:199107”]I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file[/quote]

Hi,
First of all, many thanks for your kind support!
Have tried the version on Github without success. Same story, the plugin detects the hue hub but get the Can’t Detect Device message.
Tried the Hue2 plugin from store. Not working.
Today i wiped the Vera and started from 0. Installed the althue plugin but get the same message. Cant detect the device.
From logfile: luup_log:7: ALTHUE: warning: Communication failure with the Hue Hub; msg: <0x751ba520>

Vera Firmware: 1.7.3535

[quote=“json, post:49, topic:199107”][quote=“amg0, post:48, topic:199107”]I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file[/quote]

Hi,
First of all, many thanks for your kind support!
Have tried the version on Github without success. Same story, the plugin detects the hue hub but get the Can’t Detect Device message.
Tried the Hue2 plugin from store. Not working.
Today i wiped the Vera and started from 0. Installed the althue plugin but get the same message. Cant detect the device.
From logfile: luup_log:7: ALTHUE: warning: Communication failure with the Hue Hub; msg: <0x751ba520>

Vera Firmware: 1.7.3535[/quote]
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log

[quote=“amg0, post:50, topic:199107”][quote=“json, post:49, topic:199107”][quote=“amg0, post:48, topic:199107”]I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file[/quote]

Hi,
First of all, many thanks for your kind support!
Have tried the version on Github without success. Same story, the plugin detects the hue hub but get the Can’t Detect Device message.
Tried the Hue2 plugin from store. Not working.
Today i wiped the Vera and started from 0. Installed the althue plugin but get the same message. Cant detect the device.
From logfile: luup_log:7: ALTHUE: warning: Communication failure with the Hue Hub; msg: <0x751ba520>

Vera Firmware: 1.7.3535[/quote]
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log[/quote]

  1. Done
  2. Done
  3. No lamps to play with in the interface
    (Getting: Luup engine is taking longer to reload.)
  4. attached

[quote=“json, post:51, topic:199107”][quote=“amg0, post:50, topic:199107”][quote=“json, post:49, topic:199107”][quote=“amg0, post:48, topic:199107”]I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file[/quote]

Hi,
First of all, many thanks for your kind support!
Have tried the version on Github without success. Same story, the plugin detects the hue hub but get the Can’t Detect Device message.
Tried the Hue2 plugin from store. Not working.
Today i wiped the Vera and started from 0. Installed the althue plugin but get the same message. Cant detect the device.
From logfile: luup_log:7: ALTHUE: warning: Communication failure with the Hue Hub; msg: <0x751ba520>

Vera Firmware: 1.7.3535[/quote]
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log[/quote]

  1. Done
  2. Done
  3. No lamps to play with in the interface
    (Getting: Luup engine is taking longer to reload.)
  4. attached[/quote]
    Ok I found one issue, I ll send an update when I am back home in a few days

[quote=“amg0, post:52, topic:199107”][quote=“json, post:51, topic:199107”][quote=“amg0, post:50, topic:199107”][quote=“json, post:49, topic:199107”][quote=“amg0, post:48, topic:199107”]I suggested using the version on github . Github/amg0/althue
Regarding the log , I do not know what to search for, so wanted to have a general look myself in the debug mode log file[/quote]

Hi,
First of all, many thanks for your kind support!
Have tried the version on Github without success. Same story, the plugin detects the hue hub but get the Can’t Detect Device message.
Tried the Hue2 plugin from store. Not working.
Today i wiped the Vera and started from 0. Installed the althue plugin but get the same message. Cant detect the device.
From logfile: luup_log:7: ALTHUE: warning: Communication failure with the Hue Hub; msg: <0x751ba520>

Vera Firmware: 1.7.3535[/quote]
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log[/quote]

  1. Done
  2. Done
  3. No lamps to play with in the interface
    (Getting: Luup engine is taking longer to reload.)
  4. attached[/quote]
    Ok I found one issue, I ll send an update when I am back home in a few days[/quote]
    Many thanks!

I committed a version 0.9 on github which should allow us to go at least one step further. please let me know how it goes

in case it fails, Please follow this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log

[quote=“amg0, post:54, topic:199107”]I committed a version 0.9 on github which should allow us to go at least one step further. please let me know how it goes

in case it fails, Please follow this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log[/quote]
Thank you !
Downloaded all files from Github and installed. Entered IP adress and saved. Reload Luua. Unfortenately, I can not pair to the hue HUB.
Message: The operation did not succeed

Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?

@amg0: With version 0.9, I am seeing the pluging crash when setAttrIfChanged is called… Specifically, it is being passed the modelid for an Ecosmart bulb, and the value is nil causing the string.format function in the debug statement to error out…

2018-04-13 12:41:36.041   luup_log:76: ALTHUE: debug: data:{"2":{"etag":"f5ec436d66027f7b14258aca04695b27","hascolor":false,"manufacturername":"2.1.0_16d_YF05","modelid":null,"name":"Light 2","state":{"alert":"none","bri":25,"on":false,"reachable":true},"swversion":null,"type":"Dimmable light","uniqueid":"dd:16:ab:ff:f1:a1:67:70-01"}}
2018-04-13 12:41:36.041   luup.variable_set:: 76.urn:upnp-org:serviceId:althue1.LastValidComm was: 1523644896 now: 1523644896 #hooks:0
2018-04-13 12:41:36.041   luup_log:76: ALTHUE: debug: ALTHueHttpCall(76,GET,sensors,)
2018-04-13 12:41:36.041   luup_log:76: ALTHUE: debug: Calling Hue with GET http://192.168.1.124/api/AADD8AA672/sensors , body:
2018-04-13 12:41:36.061   luup_log:76: ALTHUE: debug: request:1
2018-04-13 12:41:36.061   luup_log:76: ALTHUE: debug: code:200
2018-04-13 12:41:36.061   luup_log:76: ALTHUE: debug: data:{"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"529620323fdefbfa2f549f9c32fa48c7","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"daylight":true,"lastupdated":"2018-04-13T13:27:04","status":160},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:01:02:e5-01"}}
2018-04-13 12:41:36.061   luup.variable_set:: 76.urn:upnp-org:serviceId:althue1.LastValidComm was: 1523644896 now: 1523644896 #hooks:0
2018-04-13 12:41:36.062   luup_log:76: ALTHUE: debug: SyncLights(76)
2018-04-13 12:41:36.062   luup.chdev.append:: [dd:16:ab:ff:f1:a1:67:70-01] Hue Light 2
2018-04-13 12:41:36.062   luup_log:76: ALTHUE: debug: SyncSensors(76)
2018-04-13 12:41:36.062   luup.chdev.sync:: [76] raspbeegw, syncing children
2018-04-13 12:41:36.062   luup_log:76: ALTHUE: debug: InitDevices(76) MapUID2Index is: {"dd:16:ab:ff:f1:a1:67:70-01":"2"}
2018-04-13 12:41:36.062   luup_log:76: ALTHUE: debug: setAttrIfChanged(name,Hue Light 2,77)
2018-04-13 12:41:36.062   luup_log:76: ALTHUE: debug: setAttrIfChanged(manufacturer,2.1.0_16d_YF05,77)
2018-04-13 12:41:36.063   luup.attr_set:: 77.manufacturer = 2.1.0_16d_YF05
2018-04-13 12:41:36.063   openLuup.context_switch::  ERROR: [string "L_ALTHUE.lua"]:150: bad argument #3 to 'format' (string expected, got nil)
2018-04-13 12:41:36.063   luup.delay_callback:: function: 0x1c321e0 ERROR: [string "L_ALTHUE.lua"]:150: bad argument #3 to 'format' (string expected, got nil)

[quote=“amg0, post:56, topic:199107”]Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?[/quote]
Hi,
Re-installed all files from Github this morning and everything works fine with ver 0.9! (Hmm, Dont know what i did yesterday evening but…)
All lamps are now showing up in the interface.
Big thanks for all support and kind help!!

[quote=“json, post:58, topic:199107”][quote=“amg0, post:56, topic:199107”]Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?[/quote]
Hi,
Re-installed all files from Github this morning and everything works fine with ver 0.9! (Hmm, Dont know what i did yesterday evening but…)
All lamps are now showing up in the interface.
Big thanks for all support and kind help!![/quote]
Great, For the community could you please confirm the lamp name / type so that we know what is compatible ?

[quote=“cybrmage, post:57, topic:199107”]@amg0: With version 0.9, I am seeing the pluging crash when setAttrIfChanged is called… Specifically, it is being passed the modelid for an Ecosmart bulb, and the value is nil causing the string.format function in the debug statement to error out…

2018-04-13 12:41:36.041 luup_log:76: ALTHUE: debug: data:{"2":{"etag":"f5ec436d66027f7b14258aca04695b27","hascolor":false,"manufacturername":"2.1.0_16d_YF05","modelid":null,"name":"Light 2","state":{"alert":"none","bri":25,"on":false,"reachable":true},"swversion":null,"type":"Dimmable light","uniqueid":"dd:16:ab:ff:f1:a1:67:70-01"}} 2018-04-13 12:41:36.041 luup.variable_set:: 76.urn:upnp-org:serviceId:althue1.LastValidComm was: 1523644896 now: 1523644896 #hooks:0 2018-04-13 12:41:36.041 luup_log:76: ALTHUE: debug: ALTHueHttpCall(76,GET,sensors,) 2018-04-13 12:41:36.041 luup_log:76: ALTHUE: debug: Calling Hue with GET http://192.168.1.124/api/AADD8AA672/sensors , body: 2018-04-13 12:41:36.061 luup_log:76: ALTHUE: debug: request:1 2018-04-13 12:41:36.061 luup_log:76: ALTHUE: debug: code:200 2018-04-13 12:41:36.061 luup_log:76: ALTHUE: debug: data:{"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"529620323fdefbfa2f549f9c32fa48c7","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"daylight":true,"lastupdated":"2018-04-13T13:27:04","status":160},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:01:02:e5-01"}} 2018-04-13 12:41:36.061 luup.variable_set:: 76.urn:upnp-org:serviceId:althue1.LastValidComm was: 1523644896 now: 1523644896 #hooks:0 2018-04-13 12:41:36.062 luup_log:76: ALTHUE: debug: SyncLights(76) 2018-04-13 12:41:36.062 luup.chdev.append:: [dd:16:ab:ff:f1:a1:67:70-01] Hue Light 2 2018-04-13 12:41:36.062 luup_log:76: ALTHUE: debug: SyncSensors(76) 2018-04-13 12:41:36.062 luup.chdev.sync:: [76] raspbeegw, syncing children 2018-04-13 12:41:36.062 luup_log:76: ALTHUE: debug: InitDevices(76) MapUID2Index is: {"dd:16:ab:ff:f1:a1:67:70-01":"2"} 2018-04-13 12:41:36.062 luup_log:76: ALTHUE: debug: setAttrIfChanged(name,Hue Light 2,77) 2018-04-13 12:41:36.062 luup_log:76: ALTHUE: debug: setAttrIfChanged(manufacturer,2.1.0_16d_YF05,77) 2018-04-13 12:41:36.063 luup.attr_set:: 77.manufacturer = 2.1.0_16d_YF05 2018-04-13 12:41:36.063 openLuup.context_switch:: ERROR: [string "L_ALTHUE.lua"]:150: bad argument #3 to 'format' (string expected, got nil) 2018-04-13 12:41:36.063 luup.delay_callback:: function: 0x1c321e0 ERROR: [string "L_ALTHUE.lua"]:150: bad argument #3 to 'format' (string expected, got nil) [/quote]

I have put a v0.91 on github which should fix this issue. if it works, please report back the device name/type so we know what is compatible
thx !