openLuup: Illumination (Philips Hue/LIFX etc.)

As the subject states…
I’ll post (later) my results in operating the Philips Hue plugin (developed by MCV; beta) locally and remotely using openLuup. This is one of my top [5] devices to have function locally within openLuup.

OK, so some simple tests using the beta plugin locally. I think everything is working, it’s just an issue of the icons in an on state {data:[mimetype][;base64],[data]}…

[1] Turn on bulb to 50%.

luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = "50"}, 134)
06	10/28/15 22:55:58.564	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:Dimming1 variable: eLoadLevelStatuse was: 0 now: 50 #hooks: 0
06	10/28/15 22:55:58.564	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:Dimming1 variable: eLoadLevelTargete was: 0 now: 50 #hooks: 0 
06	10/28/15 22:55:58.565	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:SwitchPower1 variable: eStatuse was: 0 now: 1 #hooks: 0 
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAASJSURBVHja7Jp7aI5RHMff123CMOYyMmFY5LZYI5umFmHhD2pyyYzYkju5hCWX0jZKM9rEkCy5tJostxWRIteZe5FLyW2Y68z35Pfq9Os8z573eT3vu9fOr76d5zzn8jyf59x+57yvu6amxlWfrIGrnpkG1sAaWANrYA2sgTWwBnbKGnmT2e12/7MHb8vOaYhgEJQA9YN6Qj2g5lCoSFu4eNF1K3V5sx9o5M+vC0jxvCRoKjQOalmnW9gH0BYI5kKLoE5B06Vttug8KBMKqyX7S+g+9Ab6SGHwAAN2MIICqL9BlifQMegcdAHj9X1QtjBAxcy2BNoENWbJ1VARtAO6BMiaoO7SgG2C4AA0SZF8CFoDyMf/xRgGbCsExVA8S3oEzQJomUG5AQgSoSFQNNSZlqZ4q8uS34Hx0s0MYA+KSQsv/pHlD0eQQctTVFC1MDkQRQrYtQDdoOgFa6F0qGmwdun10Fh2Lx2wOxnseAS7ofZGDhP0DHoAVUJvnQB2e+OWcdcSEKMRnGTZlgN2K+sBWdACRZXfoBPQYeg8ytmC9IrBLjB5T+VQFynLXrz0TDZrC5gJrKrv0HYoG/lf+dpq/vKlMxnsbRqbcsuqYC9B0wH6MGi2h4CJRDCfjT+x9HyR7mUpYIXDkRAoWF9aeBXzovIAcUX6IBMVYzYTedZb+JghCCIo+gFl3gV00sILtcalGHchdPsr1B0v9lJaeiqgjlLRXKRnmED2QpAGjYH6iEdJyeJZp6FCEarcUW8Y7HTpKRKssD0eWLLVDPYqbQtVoGFQAX2gZVBfBuuiuoSDUgpdRv4Yf4/haSxewDyodLZZSMUH+a6AFXDCdUxVQBpZrJj0UHamX4DxoDb0UI/dAsw1KZ5KfrDH9iP9pqKe3mLdhSJtvLNY6vbYhfa2hRNZmRKWPoPFtxhMSkehcJb0ArpRi2THJA91DXR6lo5j8dMSSFeacDx2Ea17T1HHQpbPRSccscj/3KR3tUVwl7V0LjTMyRaOZnG5O49gacUGrbtUUe8KM1iyHKgduzcUdSY62cK9pOvXzPftx/JeUJRPUnRl8dEO03L3t8VRd7X0oUYpJkuPpdAxkSPAHaTrpyytG4uXK8onKO7FsAM74YWJQ4EqyWffZfJO8U526VA27mRrK13/NPCQult4xmyUrZLiG6GuJvmjnOzS8oa+QnG6USZ5XyprVkv9wiM7L3XlOOaz+8zgVWYzXxhp+Raq+GSSJjb/K9kEl2/BKfkRkEM8i3bfJC0NH61SioufYdawPJsVK0V5XQY+S742t32ALWU95jWC4+yIKFpRtszx/bAPVqaY3V+RM2Lm0rYkJ0NlhX4707J5eDCHLTPF1PJmNhJKVtwvQU8YW2d/LiXLJydiOMWTDWBqs0oLM3jAu7QYm78QTHb9+UXCromZOcXOzzYB+csDHRiMoMMBb004NMmoo8RfBwD/Cvo57XTWQZ8tFjsi3E6UPeW3My0njDYOU+hMS/jWEZL7egc6Q4cJqu2mcwfx/4Pp/2lpYA2sgTWwBtbAGlgDO2W/BRgADRV6RjlErQoAAAAASUVORK5CYII=

[2] Turn bulb off.

luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = "0"}, 134)
06	10/28/15 23:02:54.084	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:Dimming1 variable: eLoadLevelStatuse was: 50 now: 0 #hooks: 0 
06	10/28/15 23:02:54.084	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:Dimming1 variable: eLoadLevelTargete was: 50 now: 0 #hooks: 0 
06	10/28/15 23:02:54.085	Device_Variable::m_szValue_set device: 134 service: urn:upnp-org:serviceId:SwitchPower1 variable: eStatuse was: 1 now: 0 #hooks: 0 
http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-OFF-Webx1.png

Looking at this (now that I’m on my 2nd cup of coffee), I think I need to have Amg0 look at this. I have no idea what’s going on and I’m out of ideas on troubleshooting this one… Last observation as seen using the developers tools in Chrome…

http://{ip}/cmh/skins/default/img/devices/device_states

The odd part was it really didn’t indicate anything else (e.g /device_states/VeraBridge.png) which is probably why it gave an error… It might be something or it might be nothing.

@amg0

The device file you requested… Let me know if you need anything else.

@amg0

Here are the log messages within the developers console (test, light at 50% to light at 0%-off). Please let me know if I forgot something

[quote=“CudaNet, post:5, topic:189406”]@amg0

Here are the log messages within the developers console (test, light at 50% to light at 0%-off). Please let me know if I forgot something[/quote]

I see lines like this and maybe the problem is this (‘null’ == ‘B’) expression
can you confirm if this device 134 has a variable called IconValue with the service urn:micasaverde-com:serviceId:PhilipsHue1 and what is the value ?
( maybe go to ALTUI MISC DEBUG and choose One device’s states and type 0-134 for the altuiid)

J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(50 == 0) && ('LCT001' == 'LCT001') conditions:[{"operator":"==","service":"urn:upnp-org:serviceId:Dimming1","value":0,"variable":"LoadLevelStatus"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'B') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"B","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'C') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"C","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'G') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"G","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'M') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"M","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.733Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'O') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"O","variable":"IconValue"}])

Localized bulb.

{
  "altuiid": "0-134",
  "device_type": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
  "states": [
    {
      "id": 2476,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "LCT001",
      "variable": "BulbModelID"
    },
    {
      "id": 2474,
      "service": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
      "value": "B",
      "variable": "IconValue"
    },
    {
      "id": 2475,
      "service": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
      "value": "hue:64879;sat:253",
      "variable": "LampValues"
    },
    {
      "id": 2477,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50.4",
      "variable": "LoadLevelStatus"
    },
    {
      "id": 2478,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50.4",
      "variable": "LoadLevelTarget"
    },
    {
      "id": 2479,
      "service": "urn:upnp-org:serviceId:SwitchPower1",
      "value": "1",
      "variable": "Status"
    }
  ]
}

Bridged bulb:

{
  "altuiid": "0-76",
  "device_type": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
  "states": [
    {
      "id": 1776,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "LCT001",
      "variable": "BulbModelID"
    },
    {
      "id": 1771,
      "service": "urn:micasaverde-com:serviceId:HaDevice1",
      "value": "0",
      "variable": "Configured"
    },
    {
      "id": 1775,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "B",
      "variable": "IconValue"
    },
    {
      "id": 1777,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "hue:64879;sat:253",
      "variable": "LampValues"
    },
    {
      "id": 1774,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50",
      "variable": "LoadLevelStatus"
    },
    {
      "id": 1773,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50",
      "variable": "LoadLevelTarget"
    },
    {
      "id": 1770,
      "service": "urn:micasaverde-com:serviceId:HaDevice1",
      "value": "1:;2:;3:;4:",
      "variable": "ModeSetting"
    },
    {
      "id": 1772,
      "service": "urn:upnp-org:serviceId:SwitchPower1",
      "value": "0",
      "variable": "Status"
    }
  ]
}

Bridged bulb console:

2015-10-31T18:49:45.329Z: ALTUI v0.95:_evaluateConditions(deviceid:76 devsubcat:-1 str:(50 == 0) && ('LCT001' == 'LCT001') conditions:[{"operator":"==","service":"urn:upnp-org:serviceId:Dimming1","value":0,"variable":"LoadLevelStatus"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"}])
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:_evaluateConditions(deviceid:76 devsubcat:-1 str:('LCT001' == 'LCT001') && ('B' == 'B') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"B","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:Icon for device id:0-76  str :http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-ON-B-Webx1.png
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:Icon for device id:0-76  IconPath:http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-ON-B-Webx1.png

[quote=“amg0, post:6, topic:189406”][quote=“CudaNet, post:5, topic:189406”]@amg0

Here are the log messages within the developers console (test, light at 50% to light at 0%-off). Please let me know if I forgot something[/quote]

I see lines like this and maybe the problem is this (‘null’ == ‘B’) expression
can you confirm if this device 134 has a variable called IconValue with the service urn:micasaverde-com:serviceId:PhilipsHue1 and what is the value ?
( maybe go to ALTUI MISC DEBUG and choose One device’s states and type 0-134 for the altuiid)

[code]
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(50 == 0) && (‘LCT001’ == ‘LCT001’) conditions:[{“operator”:“==”,“service”:“urn:upnp-org:serviceId:Dimming1”,“value”:0,“variable”:“LoadLevelStatus”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(‘LCT001’ == ‘LCT001’) && (‘null’ == ‘B’) conditions:[{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“B”,“variable”:“IconValue”}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(‘LCT001’ == ‘LCT001’) && (‘null’ == ‘C’) conditions:[{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“C”,“variable”:“IconValue”}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(‘LCT001’ == ‘LCT001’) && (‘null’ == ‘G’) conditions:[{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“G”,“variable”:“IconValue”}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(‘LCT001’ == ‘LCT001’) && (‘null’ == ‘M’) conditions:[{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“M”,“variable”:“IconValue”}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.733Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(‘LCT001’ == ‘LCT001’) && (‘null’ == ‘O’) conditions:[{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“LCT001”,“variable”:“BulbModelID”},{“operator”:“==”,“service”:“urn:micasaverde-com:serviceId:PhilipsHue1”,“value”:“O”,“variable”:“IconValue”}])

[/code][/quote]

[quote=“CudaNet, post:7, topic:189406”]Localized bulb.

{
  "altuiid": "0-134",
  "device_type": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
  "states": [
    {
      "id": 2476,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "LCT001",
      "variable": "BulbModelID"
    },
    {
      "id": 2474,
      "service": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
      "value": "B",
      "variable": "IconValue"
    },
    {
      "id": 2475,
      "service": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
      "value": "hue:64879;sat:253",
      "variable": "LampValues"
    },
    {
      "id": 2477,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50.4",
      "variable": "LoadLevelStatus"
    },
    {
      "id": 2478,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50.4",
      "variable": "LoadLevelTarget"
    },
    {
      "id": 2479,
      "service": "urn:upnp-org:serviceId:SwitchPower1",
      "value": "1",
      "variable": "Status"
    }
  ]
}

Bridged bulb:

{
  "altuiid": "0-76",
  "device_type": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
  "states": [
    {
      "id": 1776,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "LCT001",
      "variable": "BulbModelID"
    },
    {
      "id": 1771,
      "service": "urn:micasaverde-com:serviceId:HaDevice1",
      "value": "0",
      "variable": "Configured"
    },
    {
      "id": 1775,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "B",
      "variable": "IconValue"
    },
    {
      "id": 1777,
      "service": "urn:micasaverde-com:serviceId:PhilipsHue1",
      "value": "hue:64879;sat:253",
      "variable": "LampValues"
    },
    {
      "id": 1774,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50",
      "variable": "LoadLevelStatus"
    },
    {
      "id": 1773,
      "service": "urn:upnp-org:serviceId:Dimming1",
      "value": "50",
      "variable": "LoadLevelTarget"
    },
    {
      "id": 1770,
      "service": "urn:micasaverde-com:serviceId:HaDevice1",
      "value": "1:;2:;3:;4:",
      "variable": "ModeSetting"
    },
    {
      "id": 1772,
      "service": "urn:upnp-org:serviceId:SwitchPower1",
      "value": "0",
      "variable": "Status"
    }
  ]
}

Bridged bulb console:

2015-10-31T18:49:45.329Z: ALTUI v0.95:_evaluateConditions(deviceid:76 devsubcat:-1 str:(50 == 0) && ('LCT001' == 'LCT001') conditions:[{"operator":"==","service":"urn:upnp-org:serviceId:Dimming1","value":0,"variable":"LoadLevelStatus"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"}])
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:_evaluateConditions(deviceid:76 devsubcat:-1 str:('LCT001' == 'LCT001') && ('B' == 'B') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"B","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:Icon for device id:0-76  str :http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-ON-B-Webx1.png
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:Icon for device id:0-76  IconPath:http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-ON-B-Webx1.png

[quote=“amg0, post:6, topic:189406”][quote=“CudaNet, post:5, topic:189406”]@amg0

Here are the log messages within the developers console (test, light at 50% to light at 0%-off). Please let me know if I forgot something[/quote]

I see lines like this and maybe the problem is this (‘null’ == ‘B’) expression
can you confirm if this device 134 has a variable called IconValue with the service urn:micasaverde-com:serviceId:PhilipsHue1 and what is the value ?
( maybe go to ALTUI MISC DEBUG and choose One device’s states and type 0-134 for the altuiid)

J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:(50 == 0) && ('LCT001' == 'LCT001') conditions:[{"operator":"==","service":"urn:upnp-org:serviceId:Dimming1","value":0,"variable":"LoadLevelStatus"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'B') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"B","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'C') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"C","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'G') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"G","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'M') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"M","variable":"IconValue"}])
J_ALTUI_utils.js:317 2015-10-31T03:46:41.733Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'O') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"O","variable":"IconValue"}])

[/code][/quote][/quote]

as you can see BBridged bulb ( device 0-76) icon should be ok and ALTUI evaluates it to be 
[code]
J_ALTUI_utils.js:317 2015-10-31T18:49:45.329Z: ALTUI v0.95:Icon for device id:0-76  IconPath:http://apps.mios.com/pluginicons/8162/DS-HUE-A19-Light-ON-B-Webx1.png
[/code]

but Localized bulb (device 0-134) cannot be good because the JSON is wrong. the device 0-134 says this ( note the service ) 
[code]      
      "service": "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1",
      "value": "B",
      "variable": "IconValue"
[/code]

while the expression found in the JSON files expects variable IconValue to be with service urn:micasaverde-com:serviceId:PhilipsHue1 
[code]J_ALTUI_utils.js:317 2015-10-31T03:46:41.732Z: ALTUI v0.95:_evaluateConditions(deviceid:134 devsubcat:-1 str:('LCT001' == 'LCT001') && ('null' == 'B') conditions:[{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"LCT001","variable":"BulbModelID"},{"operator":"==","service":"urn:micasaverde-com:serviceId:PhilipsHue1","value":"B","variable":"IconValue"}])

therefore it evaluates the value to NULL , hence the expression shown the debug log

('LCT001' == 'LCT001') && ('null' == 'B') which never evaluates to true

@amg0 & akbooer

I was able to successfully configure a bulb (locally) using the correct SID (thanks so much amg0) … However, I’m a bit confused on how to tell others how to install the plugin whereby it sets the proper IconValue for each bulb. There are a lot of bulb types from Philips…

So I started with a clean slate and performed this to install the plugin and child devices.

do -- Philips Hue by MiOS
  	local dev = luup.create_device ('', "PhilipsHue2", "PhilipsHue2", "D_PhilipsHue2.xml")  
  	local sid = "urn:micasaverde-com:serviceId:PhilipsHue1"
	luup.variable_set(sid, "IconValue", "", dev)
	luup.variable_set(sid, "LampValues", "", dev)
end

When I do this and inspect the desk lamp (was 76 now 201), it’s variables are indeed null (should I have expected anything less). So I performed the following to set the variable:

luup.variable_set("urn:micasaverde-com:serviceId:PhilipsHue1", "IconValue", "B", 201)

Then the bulb is happy and the icon is displaying perfectly ! However, I have a lot of bulbs and I’m feeling like I didn’t set this up correctly so please feel free to correct the error of my ways.

I’m having difficulty in understanding whether you have a problem with Hue on Vera in general, or on openLuup in particular. I assume the latter otherwise you’d not be raising the issue here, but you’re not speaking my language in terms of what’s wrong or what really needs fixing. This is probably because (as usual) I don’t actually own a Hue device myself, so I’m not familiar with its functioning.

If it’s specifically an openLuup issue, can you describe in more basic terms what’s wrong? It looks like your icon variable is not being set as you expect. This is perhaps more of a VeraBridge issue than anything fundamental with openLuup. But without a complete set of logs from both a real Vera and openLuup it’s really just guesswork.

Anyway, kudos to @amg0 for finding the root of your difficulties, despite the fact that this is really not an issue with AltUI.

My assumption, also, is that if you are hunting this issue, then everything else is going absolutely swimmingly?

The issue has more to do with either me (highest probability) or openLuup/VeraBridge (lowest probability). When I install the plugin locally, I use this:

do -- Philips Hue by MiOS
  	local dev = luup.create_device ('', "PhilipsHue2", "PhilipsHue2", "D_PhilipsHue2.xml")  
  	local sid = "urn:micasaverde-com:serviceId:PhilipsHue1"
	luup.variable_set(sid, "IconValue", "", dev)
	luup.variable_set(sid, "LampValues", "", dev)
end

The bridge and various bulb types install and more importantly - the services (which amg0 discovered) are now correct for ‘IconValue’ (the initial culprit) and ‘LampValues’ (stores Hue and Saturation levels). Albeit, their null for every bulb (which is the underlying problem).

When I first installed the plugin on Vera, all the variables/services and values (such as IconValue, LampValues etc.) were automatically pulled from the bridge and assigned to each bulb. This is why they work perfectly bridged. I’m not getting this when I install locally, but again - it might be in the way I configured the plugin to be installed. I just don’t know how to set the ‘IconValue’ when these values are not static, but rather determined by the actual bulb (there are a lot different IconValues to bulb relationships). As for functionality, afaik - all the actions work which is great !

I can certainly remove the plugin on Vera and re-install and provide the log data as I know it’s difficult to troubleshoot a device you don’t have access to. I’ll see if I can do that today and post my results.

[quote=“akbooer, post:10, topic:189406”]I’m having difficulty in understanding whether you have a problem with Hue on Vera in general, or on openLuup in particular. I assume the latter otherwise you’d not be raising the issue here, but you’re not speaking my language in terms of what’s wrong or what really needs fixing. This is probably because (as usual) I don’t actually own a Hue device myself, so I’m not familiar with its functioning.

If it’s specifically an openLuup issue, can you describe in more basic terms what’s wrong? It looks like your icon variable is not being set as you expect. This is perhaps more of a VeraBridge issue than anything fundamental with openLuup. But without a complete set of logs from both a real Vera and openLuup it’s really just guesswork.

Anyway, kudos to @amg0 for finding the root of your difficulties, despite the fact that this is really not an issue with AltUI.

My assumption, also, is that if you are hunting this issue, then everything else is going absolutely swimmingly?[/quote]

@akbooer

Here’s a log of the install on Vera as well as openLuup, I grep’d out everything that indicated ‘Hue’ so I hope I captured it all. If not, I’ll have to clean up the original log as it’s, well - big.
Let me know if you need anything else…

[1] Removed plugin off Vera. Reloaded.
[2] Installed plugin (URL).
[3] Once loaded onto Vera and the bridge device was created, I then loaded the patched lua file (to recognize Hue Lux/Cree bulbs). Reloaded.
[4] All the devices were then recognized and created.

It appears that I’m no longer able to modify the variables within the UI [AltUI v0.95.871]. I’ll check in the AltUI forum to see if anyone else is having this issue.

You say “no longer”, so what has changed. Is this a different AltUI, or openLuup?

You can always revert to an earlier version of AltUI to try.

You’re quite right. I have this issue with the latest of both AltUI and openLuup. I may not have time today to investigate further, though.

Clicking on the value in the variable tag of the interface does nothing, whereas it used to open a box to type a new value.

…and that seems to fix it. I’ll add a post to Tips & Tricks to show how.

Build version 859 works for me.

I probably wouldn’t have stumbled upon the issue anytime soon but I was doing some additional testing on the Philips Hue bulbs and found it odd I couldn’t modify the variable.
It just didn’t feel/look (console data) like an openLuup issue which is why I posted in the AltUI forum. Glad it’s confirmed with a work around and a patch (vosmont).

As for this thread, let me know if you need anything else (when you get an opportunity to look at the log data) from me.

…and that seems to fix it. I’ll add a post to Tips & Tricks to show how.

Build version 859 works for me.[/quote]

Things got pretty quiet around here …

So I was looking through the logs generated by both Vera and openLuup during the installation of the plugin. From what I can tell, the Hue2 plugin utilizes a process of checking the state of the bulb via numerous functions defined within L_PhilipsHue2.lua. I see this happening on Vera (every 10 seconds; default) but not on openLuup. openLuup seems to have handled discovering the bridge and creating all the child devices (bulbs). It also appears it’s properly and quickly handling the state changes of the bulb (on; off; dim level etc.) via actions or UI changes locally.

So when Vera polls the bridge, this is how the IconValue/Hue and Saturation levels/binary state/dimming level etc are all checked. Makes perfect sense as the bulb might have been turned off or the bulb color may have been changed via another device (iPad). So, it would detect this color change, deduce an IconValue as well as Hue/Saturation level and set this within the bulb child device using variables.

Vera polling process:

  17914  06      11/03/15 8:05:21.617    Device_Variable::m_szValue_set device: 395 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17915  50      11/03/15 8:05:21.619    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[2] OFF - Value set to 0! <0x2bbf1680>
   17918  06      11/03/15 8:05:21.623    Device_Variable::m_szValue_set device: 396 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17919  50      11/03/15 8:05:21.625    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[3] OFF - Value set to 0! <0x2bbf1680>
   17922  06      11/03/15 8:05:21.629    Device_Variable::m_szValue_set device: 397 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17923  50      11/03/15 8:05:21.631    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[4] OFF - Value set to 0! <0x2bbf1680>
   17926  06      11/03/15 8:05:21.635    Device_Variable::m_szValue_set device: 398 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17927  50      11/03/15 8:05:21.636    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[5] OFF - Value set to 0! <0x2bbf1680>
   17930  06      11/03/15 8:05:21.639    Device_Variable::m_szValue_set device: 399 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17931  50      11/03/15 8:05:21.640    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[6] OFF - Value set to 0! <0x2bbf1680>
   17934  06      11/03/15 8:05:21.643    Device_Variable::m_szValue_set device: 400 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17935  50      11/03/15 8:05:21.644    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[7] OFF - Value set to 0! <0x2bbf1680>
   17938  06      11/03/15 8:05:21.652    Device_Variable::m_szValue_set device: 401 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17939  50      11/03/15 8:05:21.653    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[8] OFF - Value set to 0! <0x2bbf1680>
   17942  06      11/03/15 8:05:21.658    Device_Variable::m_szValue_set device: 402 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17943  50      11/03/15 8:05:21.660    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[9] OFF - Value set to 0! <0x2bbf1680>
   17946  06      11/03/15 8:05:21.664    Device_Variable::m_szValue_set device: 403 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17947  50      11/03/15 8:05:21.665    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[10] OFF - Value set to 0! <0x2bbf1680>
   17950  06      11/03/15 8:05:21.670    Device_Variable::m_szValue_set device: 404 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17951  50      11/03/15 8:05:21.671    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[11] OFF - Value set to 0! <0x2bbf1680>
   17954  06      11/03/15 8:05:21.675    Device_Variable::m_szValue_set device: 405 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17955  50      11/03/15 8:05:21.677    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[12] OFF - Value set to 0! <0x2bbf1680>
   17958  06      11/03/15 8:05:21.681    Device_Variable::m_szValue_set device: 406 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17959  50      11/03/15 8:05:21.683    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[13] OFF - Value set to 0! <0x2bbf1680>
   17962  06      11/03/15 8:05:21.688    Device_Variable::m_szValue_set device: 407 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17963  50      11/03/15 8:05:21.689    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[14] OFF - Value set to 0! <0x2bbf1680>
   17966  06      11/03/15 8:05:21.693    Device_Variable::m_szValue_set device: 408 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17967  50      11/03/15 8:05:21.695    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[15] OFF - Value set to 0! <0x2bbf1680>
   17970  06      11/03/15 8:05:21.699    Device_Variable::m_szValue_set device: 409 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17971  50      11/03/15 8:05:21.701    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[16] OFF - Value set to 0! <0x2bbf1680>
   17974  06      11/03/15 8:05:21.705    Device_Variable::m_szValue_set device: 410 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17975  50      11/03/15 8:05:21.706    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[17] OFF - Value set to 0! <0x2bbf1680>
   17978  06      11/03/15 8:05:21.709    Device_Variable::m_szValue_set device: 411 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17979  50      11/03/15 8:05:21.710    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[18] OFF - Value set to 0! <0x2bbf1680>
   17982  06      11/03/15 8:05:21.714    Device_Variable::m_szValue_set device: 412 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17983  50      11/03/15 8:05:21.715    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[19] OFF - Value set to 0! <0x2bbf1680>
   17986  06      11/03/15 8:05:21.722    Device_Variable::m_szValue_set device: 413 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17987  50      11/03/15 8:05:21.724    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[20] OFF - Value set to 0! <0x2bbf1680>
   17990  06      11/03/15 8:05:21.727    Device_Variable::m_szValue_set device: 414 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: B #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17991  50      11/03/15 8:05:21.728    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[21] OFF - Value set to 0! <0x2bbf1680>
   17994  06      11/03/15 8:05:21.731    Device_Variable::m_szValue_set device: 415 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: C #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17995  50      11/03/15 8:05:21.732    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[22] OFF - Value set to 0! <0x2bbf1680>
   17998  06      11/03/15 8:05:21.735    Device_Variable::m_szValue_set device: 416 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: G #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   17999  50      11/03/15 8:05:21.736    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[23] OFF - Value set to 0! <0x2bbf1680>
   18002  06      11/03/15 8:05:21.744    Device_Variable::m_szValue_set device: 417 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABY #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   18003  50      11/03/15 8:05:21.746    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[24] OFF - Value set to 0! <0x2bbf1680>
   18006  06      11/03/15 8:05:21.750    Device_Variable::m_szValue_set device: 418 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: ABW #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   18007  50      11/03/15 8:05:21.752    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[25] OFF - Value set to 0! <0x2bbf1680>
   18010  06      11/03/15 8:05:21.756    Device_Variable::m_szValue_set device: 419 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: IconValue was: EMPTY now: G #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   18011  06      11/03/15 8:05:21.759    Device_Variable::m_szValue_set device: 394 service: urn:micasaverde-com:serviceId:PhilipsHue1 variable: BridgeLights was: EMPTY now: 1,Office Lamp;2,Floor Lamp;3,Foyer Globe Light;4,Hallway;5,Hallway 1;6,Hallway 2;7,Pendant 1;8,Pendant 2;9,Bar;10,Linen;11,Guest 1;12,Guest 2;13,Den 4;14,Den 3;15,Den 1;16,Den 2;17,Den 6;18,Den 7;19,Den 8;20,Den 9;21,Den 5;22,Abby Nightlight;23,Porch;24,Arbor;25,Nightstand #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2bbf1680>
   18012  50      11/03/15 8:05:21.760    luup_log:394: (Hue2 Plugin)::(Startup) : Startup Successful <0x2bbf1680>
   18031  08      11/03/15 8:05:31.777    JobHandler_LuaUPnP::HandleActionRequest device: 394 service: urn:micasaverde-com:serviceId:PhilipsHue1 action: BridgeConnect <0x300fd680>
   18033  08      11/03/15 8:05:31.778    JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:PhilipsHue1 <0x300fd680>
   18037  50      11/03/15 8:05:31.987    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[2] OFF - No UI update needed! <0x2f5f1680>
   18038  50      11/03/15 8:05:31.988    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[3] OFF - No UI update needed! <0x2f5f1680>
   18039  50      11/03/15 8:05:31.989    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[4] OFF - No UI update needed! <0x2f5f1680>
   18040  50      11/03/15 8:05:31.990    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[5] OFF - No UI update needed! <0x2f5f1680>
   18041  50      11/03/15 8:05:31.990    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[6] OFF - No UI update needed! <0x2f5f1680>
   18042  50      11/03/15 8:05:31.991    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[7] OFF - No UI update needed! <0x2f5f1680>
   18043  50      11/03/15 8:05:31.992    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[8] OFF - No UI update needed! <0x2f5f1680>
   18044  50      11/03/15 8:05:31.993    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[9] OFF - No UI update needed! <0x2f5f1680>
   18045  50      11/03/15 8:05:31.993    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[10] OFF - No UI update needed! <0x2f5f1680>
   18046  50      11/03/15 8:05:31.994    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[11] OFF - No UI update needed! <0x2f5f1680>
   18047  50      11/03/15 8:05:31.994    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[12] OFF - No UI update needed! <0x2f5f1680>
   18048  50      11/03/15 8:05:31.995    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[13] OFF - No UI update needed! <0x2f5f1680>
   18049  50      11/03/15 8:05:31.996    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[14] OFF - No UI update needed! <0x2f5f1680>
   18050  50      11/03/15 8:05:31.997    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[15] OFF - No UI update needed! <0x2f5f1680>
   18051  50      11/03/15 8:05:31.997    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[16] OFF - No UI update needed! <0x2f5f1680>
   18052  50      11/03/15 8:05:31.998    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[17] OFF - No UI update needed! <0x2f5f1680>
   18053  50      11/03/15 8:05:31.999    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[18] OFF - No UI update needed! <0x2f5f1680>
   18054  50      11/03/15 8:05:31.999    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[19] OFF - No UI update needed! <0x2f5f1680>
   18055  50      11/03/15 8:05:32.000    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[20] OFF - No UI update needed! <0x2f5f1680>
   18056  50      11/03/15 8:05:32.001    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[21] OFF - No UI update needed! <0x2f5f1680>
   18057  50      11/03/15 8:05:32.002    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[22] OFF - No UI update needed! <0x2f5f1680>
   18058  50      11/03/15 8:05:32.003    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[23] OFF - No UI update needed! <0x2f5f1680>
   18059  50      11/03/15 8:05:32.003    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[24] OFF - No UI update needed! <0x2f5f1680>
   18060  50      11/03/15 8:05:32.004    luup_log:394: (Hue2 Plugin)::(pollHueDevice) : Lamp[25] OFF - No UI update needed! <0x2f5f1680>
   18061  50      11/03/15 8:05:32.009    luup_log:394: (Hue2 Plugin)::(bridgeConnect) : Linking with the Bridge device <0x2b2a1000>

So what initiates the polling process ? I see the following functions defined within L_PhilipsHue2.lua but with my limited understanding of how a plugin operates I’m at a stopping point.

function getIconVal(colormode, value)
function setLoadLevelTarget(newLoadlevelTarget, device)
function turnOffLamp(lamp)
function setHueAndSaturation(hue, saturation, device)
function setColorTemperature(colortemperature, device)
function setLampValues(light_id, hueStructure, ...)

Nothing in the openLuup log that indicates anything has failed, then?

Remind me what problem we’re chasing - it’s just the icon is it?

Edit: can you check and compare the attributes for the plugin on both Vera and openLuup ?

I see that the startup code discriminates between two bulb types when it creates the child devices:

if v.modelid == "LWB004" then
	luup.chdev.append(lug_device, g_appendPtr, "hueLamp_"..v.hueid, "HueLux ".. v.hueid ..": ".. v.name, "urn:schemas-micasaverde-com:device:PhilipsHueLuxLamp:1", "D_PhilipsHueLuxLamp2.xml", nil, "urn:micasaverde-com:serviceId:PhilipsHue1,BulbModelID=" .. v.modelid, false)
else
	luup.chdev.append(lug_device, g_appendPtr, "hueLamp_"..v.hueid, "HueLamp ".. v.hueid ..": ".. v.name, "urn:schemas-micasaverde-com:device:PhilipsHueLamp:1", "D_PhilipsHueLamp2.xml", nil, "urn:micasaverde-com:serviceId:PhilipsHue1,BulbModelID=" .. v.modelid, false)
end

Does this have anything to do with what you’re trying to hunt down?