Hue Lights discussion

This forum is archived topics from before the plugin was moved to the new owner. All topics are locked, but are preserved here for future reference.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.6.3 Posted
  • Fixed a bug that caused the plugin to crash if a Hue Group had no brightness value.
User avatar
Busta999
Posts: 714
Joined: Wed Mar 30, 2016 4:48 am
Location: Wales UK

Re: Hue Lights discussion

Post by Busta999 »

Anyone got a grip on the Hue Motion Detectors Luminance Readings yet?

It is reading as Lux but I doubt it.

It seems like a range between 0 and 25, 0 being no light and 25 sunshine.

Is that everyone else's interpretation ?
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Hmmm.... You're right. Something's wrong. I think I made a mistake in calculating lux values from the raw light level values. I'll fix that real quick and post an update to the plugin.

Busta999 wrote:Anyone got a grip on the Hue Motion Detectors Luminance Readings yet?

It is reading as Lux but I doubt it.

It seems like a range between 0 and 25, 0 being no light and 25 sunshine.

Is that everyone else's interpretation ?
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.6.4 Posted
  • Fixed incorrect Hue Motion Sensor light level calculations. The correct lux value is now shown for the light sensor on the Hue Motion Sensor.
User avatar
Busta999
Posts: 714
Joined: Wed Mar 30, 2016 4:48 am
Location: Wales UK

Re: Hue Lights discussion

Post by Busta999 »

Excellent , I’ll install and try it. Thanks


Sent from my iPad using Tapatalk
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: Hue Lights discussion

Post by marketability »

Hi Nathan
Is there a way to detect a tap button press or the current scene active on the hub?
I'm trying to get indigo to be aware of the status of the lights when they are controlled outside of indigo
speed of update isn't critical

Thanks (again) for any help!
User avatar
Busta999
Posts: 714
Joined: Wed Mar 30, 2016 4:48 am
Location: Wales UK

Re: Hue Lights discussion

Post by Busta999 »

I am pretty sure that Philips don’t expose states of switches to the API, apart from the motion detector.

You could put a trigger on a Hue Light and detect when it has been turned on or off?
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: Hue Lights discussion

Post by marketability »

Thanks - I want to distinguish between lights being turned off by indigo and being turned off by a Tap/App

thinking about it that way... maybe I can use a variable....hmmm
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Hi.

The Hue Lights plugin automatically detects any changes to all lights after they've been changed outside of Indigo and updates the light status in Indigo with the new settings. Detecting this change isn't instantaneous, of course, because 1) the Hue hub's own internal status for each light doesn't get updated immediately, and 2) the Hue Lights plugin only asks the hub about recent changes every 10 seconds.

The Philips Hue API does expose Hue Tap and Hue Wireless Dimmer Switch states, but the API documentation isn't clear as to how often that state information is updated on the hub, nor is there any mechanism for pushing notifications of switch events to any application using the Hue API (such as the Hue Lights plugin), so switch status updates could be slow and/or unreliable. I don't have any switches to test this with though, so I can't say for sure.

What are your goals in detecting changes to Hue lights outside of Indigo? Perhaps there are other ways around solving what you're trying to do.
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: Hue Lights discussion

Post by marketability »

I have a script that stores the active scene
indigo actions recall the setting when using indigo as a control
I wanted to set that same variable when the scene is set by the hue app or a switch
Cheers
nsheldon wrote:Hi.

The Hue Lights plugin automatically detects any changes to all lights after they've been changed outside of Indigo and updates the light status in Indigo with the new settings. Detecting this change isn't instantaneous, of course, because 1) the Hue hub's own internal status for each light doesn't get updated immediately, and 2) the Hue Lights plugin only asks the hub about recent changes every 10 seconds.

The Philips Hue API does expose Hue Tap and Hue Wireless Dimmer Switch states, but the API documentation isn't clear as to how often that state information is updated on the hub, nor is there any mechanism for pushing notifications of switch events to any application using the Hue API (such as the Hue Lights plugin), so switch status updates could be slow and/or unreliable. I don't have any switches to test this with though, so I can't say for sure.

What are your goals in detecting changes to Hue lights outside of Indigo? Perhaps there are other ways around solving what you're trying to do.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

I think I understand. So, when you change the lights in a room with Hue lights in it, either using the Hue app or a switch, you want Indigo to recognize the change and save the changes for recall later, right?

I don't know the specifics of how you have it set up now or exactly how you want it to work, but maybe this will help you build the action you're looking for.

Create a Hue Group device in Indigo for each room (note that there's a limit of 15 groups on the Hue hub). The Hue app automatically creates groups on the hub, by the way, if you set up rooms within the Hue app. Then create a Device State Change for each Hue Group device's "Red Level" that "Has Any Change". I suggest the "Red Level" because it (along with the Blue Level ) is the most likely to change whenever any light setting changes, such as hue, saturation, brightness and color temperature. Because the Hue hub seems to update Hue group states based on the most recent change to any of the group member lights, any change to any light in the group will be reflected in the Hue Group device, which can then trigger your script to save the scene for that room. Note that there is up to a 20 second delay between when a light in a group is changed and when the Hue Group status changes in Indigo. But this delay may actually be desirable in your case to avoid overly frequent script executions.
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: Hue Lights discussion

Post by marketability »

Thanks - will give that a go and let you know how I get on
User avatar
marketability
Posts: 204
Joined: Tue Dec 08, 2015 11:41 am
Location: UK

Re: Hue Lights discussion

Post by marketability »

Thanks! got it working ok
had to track the BLUE state for a specific bulb as RED and a Group was a bit erratic
much appreciated as ever
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Great! I'm glad you were able to get it working.
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: Hue Lights discussion

Post by yassi »

I would like to buy some cheaper bulbs for my Hue.
Did one tried other than Philips and Osram?
Will they work and if yes, what to select in the plugin (which type of bulbs)?

Here's a link to one in the German Amazon store:
https://www.amazon.de/dimmbare-Retrofit ... s=innr+e27

Thx,
Yassi
Locked

Return to “Archives”