Page 51 of 103

Re: Hue Lights discussion

PostPosted: Wed Jul 19, 2017 11:03 pm
by nsheldon
Version 1.6.3 Posted

  • Fixed a bug that caused the plugin to crash if a Hue Group had no brightness value.

Re: Hue Lights discussion

PostPosted: Tue Aug 01, 2017 8:15 am
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 ?

Re: Hue Lights discussion

PostPosted: Tue Aug 01, 2017 9:27 pm
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 ?

Re: Hue Lights discussion

PostPosted: Tue Aug 01, 2017 10:07 pm
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.

Re: Hue Lights discussion

PostPosted: Wed Aug 02, 2017 1:58 am
by Busta999
Excellent , I’ll install and try it. Thanks


Sent from my iPad using Tapatalk

Re: Hue Lights discussion

PostPosted: Fri Aug 04, 2017 2:03 am
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!

Re: Hue Lights discussion

PostPosted: Fri Aug 04, 2017 2:27 am
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?

Re: Hue Lights discussion

PostPosted: Fri Aug 04, 2017 9:01 am
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

Re: Hue Lights discussion

PostPosted: Sat Aug 05, 2017 1:04 am
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.

Re: Hue Lights discussion

PostPosted: Sat Aug 05, 2017 10:25 am
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.

Re: Hue Lights discussion

PostPosted: Sat Aug 05, 2017 7:30 pm
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.

Re: Hue Lights discussion

PostPosted: Sun Aug 06, 2017 2:10 am
by marketability
Thanks - will give that a go and let you know how I get on

Re: Hue Lights discussion

PostPosted: Sun Aug 06, 2017 3:09 am
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

Re: Hue Lights discussion

PostPosted: Sun Aug 06, 2017 3:40 am
by nsheldon
Great! I'm glad you were able to get it working.

Re: Hue Lights discussion

PostPosted: Thu Aug 10, 2017 1:56 am
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