We have moved at community.getvera.com

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

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Here's just a wild guess...

...some of this code adds extra functions to the string library.  This may cause incompatibilities between plugins.

I don't think modifying system libraries in general is a good plan.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Amg0: Something a little odd I discovered trying to install on Openluup. Once the plugin is installed, the iphone locator plugin stops working: it is no longer able to ping the iphone. Once I delete the althue plugin, the iphone locator works again...

it works fine for me with both enabled , in UI7 and UI5.
please enable DEBUG on IphoneLocator, then reload luup and send me the logs

Offline jeubanks

  • Beta Testers
  • Full Member
  • *****
  • Posts: 225
  • Karma: +11/-4
Not sure if this is "normal".  In a PLEG automation, I used setLoadLevel on a Hue light and nothing happened.  Do I need to turn on first then set the level?

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Not sure if this is "normal".  In a PLEG automation, I used setLoadLevel on a Hue light and nothing happened.  Do I need to turn on first then set the level?

The official action name is the dimming service file is SetLoadLevelTarget not setloadlevel
I tried on a switched off light to call SetLoadLevelTarget with a proper parameter and it switched the light on

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Amg0: Something a little odd I discovered trying to install on Openluup. Once the plugin is installed, the iphone locator plugin stops working: it is no longer able to ping the iphone. Once I delete the althue plugin, the iphone locator works again...

it works fine for me with both enabled , in UI7 and UI5.
please enable DEBUG on IphoneLocator, then reload luup and send me the logs which I have PMed you

Ok. Will do. Will need some time as I will be out of time the rest of the week.

Edit: I was able to reproduce the problem 3 times by installing and uninstalling the ALTHue plugin. I found nothing useful in the logs.
« Last Edit: April 02, 2018, 10:30:13 pm by rafale77 »
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1464
  • Karma: +41/-36
+1 amg0.
Vera 3, 1.7.1040, CT101, Everspring Motion, GE/Jasco Switch/Dimmer, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, LB60Z-1 bulb, Hue, Alexa, Zooz 4-1

Offline jeubanks

  • Beta Testers
  • Full Member
  • *****
  • Posts: 225
  • Karma: +11/-4
Not sure if this is "normal".  In a PLEG automation, I used setLoadLevel on a Hue light and nothing happened.  Do I need to turn on first then set the level?

The official action name is the dimming service file is SetLoadLevelTarget not setloadlevel
I tried on a switched off light to call SetLoadLevelTarget with a proper parameter and it switched the light on

Yeah yeah, I didn't use the "offical" name when I was posting, sorry  ::)

Anyways, it was about 2 minutes later I came back and updated my post saying NEVERMIND.... but I don't see it anywhere, so it must not have actually posted.  It turns out that someone had turned the lamp off.  Found out when I went into the plugin and looked at the "information" section. 

On the flip side everything is working as it should (for me at least).  I'm doing so re-org stuff over the next couple days.  re-installing another pi with openLuup.  Not sure if I want to move Hue off to that or not.  I have two VeraPlus units already 1 for z-wave/zigbee one for virtual devices except for lights (Caseta and Hue).  Still looking for more ideas on what to do with openLuup and that second VeraPlus box...

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
About ALTHue & IPhoneLocator issue on openluup

I have posted a fix on https://github.com/amg0/ALTHue and on https://github.com/amg0/IPhoneLocator for the issue.  you can download and apply these new versions. I have a openluup running with both enabled right now

it does seem to come from the fact that device plugins openluup share the same instance of the global libraries ( like string ), so I avoided the conflict but other plugins could have the same issue. I ll check on mines

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
it does seem to come from the fact that device plugins openluup share the same instance of the global libraries ( like string ), so I avoided the conflict but other plugins could have the same issue.

I've just checked, and it turns out that the Arduino (MySensors) plugin also modifies the string library, so if you're running that, there may be problems too.

It's easy to generate an error and terminate a plugin if it tries to do this.  It turns out to be much harder to give each plugin its own set of system libraries.  I may add an optional check to openLuup to catch this type of error in future.  Apologies for any difficulties caused.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Thank you to both amg0 for the fix and akbooer for the idea and the openluup check.
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Thank you to both amg0 for the fix and akbooer for the idea and the openluup check.

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.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline json

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Hi
Does Althue plugin support IKEA Tradfri led lamps?

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Hi
Does Althue plugin support IKEA Tradfri led lamps?
If Philips hue bridge does I do not see why not (, but it as to be tested )

Offline cybrmage

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

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