We have moved at community.getvera.com

Author Topic: ALTHue : Feature Requests  (Read 6662 times)

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
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

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

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
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

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

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?

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
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

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
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

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


Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
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

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
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
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

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
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log
1. Done
2. Done
3. No lamps to play with in the interface
(Getting: Luup engine is taking longer to reload.)
4. attached

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
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

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
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log
1. Done
2. Done
3. No lamps to play with in the interface
(Getting: Luup engine is taking longer to reload.)
4. attached
Ok I found one issue, I ll send an update when I am back home in a few days

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
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

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
Please try this
1- enable debug mode on althue
2- reload luup
3- play with the lamp if possible
4- share the log
1. Done
2. Done
3. No lamps to play with in the interface
(Getting: Luup engine is taking longer to reload.)
4. attached
Ok I found one issue, I ll send an update when I am back home in a few days
Many thanks!

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
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

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
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
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

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?

Offline cybrmage

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1104
  • Karma: +113/-43
@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...

Code: [Select]
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)


Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?
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!!

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Ok then please follow the steps 1 to 4 so we see what happens
How exactly did you try to pair ?
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!!
Great, For the community could you please confirm the lamp name / type so that we know what is compatible ?

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
@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...

Code: [Select]
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)

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 !