Page 8 of 9

Re: [122] Philips Hue support

Posted: Monday 16 March 2015 20:25
by iMiMx
LJ80 wrote:
iMiMx wrote:
LJ80 wrote:simple question:

It is very hard to select a normal warm white color with the hex code.
Or the light will be orange, or it will be very industrial white.

Does someone know or want to post their hex code?
It's not currently possible, as far as I'm aware, as Domoticz does not support the colour temperature setting - the only way is using a script direct to the bridge, then call this from Domoticz. Good explanation on the developer pages

http://www.developers.meethue.com/docum ... e-concepts
Okay too bad then, hope Gizmocuz will make this possible in the future.
Or someonelse with the know how.

Thanks for your answer.
I think, although I might be wrong, it would need a redesign of the colour selector - as it works for true RGB lights, but I don't believe the Hues are. Storing scenes on the bridge, as advised a few posts up, then calling that via a script works pretty well.... but this is probably the one thing that keeps me looking at other options, even though I have Domoticz scripted pretty much how I want it, it's just the Hues ;)

Re: [122] Philips Hue support

Posted: Tuesday 17 March 2015 21:08
by bbqkees
Morcegolas wrote: If I put the same thing with the alert command too it will change the color and blink, but it beaver it's strange, instead of turning ON/OFF it fades a little and then bright again to 100%. The code I used was this:
I tried it with my lights and indeed the flash is not real on/off but low-dim to max. But the effect is definately noticable.

Re: [122] Philips Hue support

Posted: Monday 30 March 2015 23:52
by Jeff
Is there a possible option to port the hue scripts on the raspberry to working scripts for the windows version of domoticz ?
Just copy and paste doesn't fit since windows doesn't have support for .sh scripts.

Personally i was thinking to make a "shared device" from the Pi and use it in the windows variant but when i do so i only get a device named "Hue Remote" but no lights show up.
is anyone having a idea how we can arrange this.

Re: [122] Philips Hue support

Posted: Saturday 02 May 2015 1:46
by JustME125
Hi Guys,

I have been using the Hue lights combined with Domoticz for over 2 weeks now and initial setup worked just fine. Tonight I had to reset my brigde and re-install the whole damn system because my bridge kept triggering old timers which have been removed.

Result is that all my hue light have new id numbers which means that, unfortunately, I needed to change the ID numbers in Domoticz. Since I could not find a way to do this I removed the bridge from the hardware and Domoticz nicely told me it would remove all devices related.....so far exactly what I wanted to achieve.

Then I re-added the brigde as hardware again (with the accept hardware for 5 minutes option enabled) assuming that all my lights would come back in Domoticz (as with the initial setup) but that is where my luck ran out.

I tried to connect to the bridge with a pre-existing key, not working so I reconnected without any key (thus forcing my bridge to generate a new API key for domoticz). Domoticz tells me that the connection to the bridge is fine but adds no devices anymore.

If I try to add a manual switch I cannot select the bridge as hardware.

Anyone any ideas? I have rebooted my pi several times. Removed the hardware, reboot, add the bridge, reboot....no luck.

Luckily I allready control most of the lights with BASH scripts (which are still working) but I need to get the devices added like before.

Please help me out guys :).

Thanks.

Re: [122] Philips Hue support

Posted: Saturday 02 May 2015 9:22
by Edgar
You said you have accept new hardware on when adding the bridge. I don't remember how I added mine but I thought I had to have accept new hardware on and then toggle each light one time on and off to add them to domoticz.

Re: [122] Philips Hue support

Posted: Saturday 02 May 2015 12:10
by JustME125
Hi Edgar,

Thanks for the reply. I tried it and it did not work unfortunately. I can imaging it works like this when using RF stuff because you can intercept wireless commands but my domoticz is not aware of any zigbee communication so it can't intercept those commands.

Domoticz has to query the brigde for the available light but doesn't do that apparently.

-------------Solved-------------------
I have reset my bridge completely back to factory settings and started over again, now it works.
Apparantly Domoticz need to have Hue Light ID's to start with 1, not with 6.

Re: [122] Philips Hue support

Posted: Saturday 02 May 2015 14:13
by mcpoowl
JustME125 wrote:Hi Edgar,

Thanks for the reply. I tried it and it did not work unfortunately. I can imaging it works like this when using RF stuff because you can intercept wireless commands but my domoticz is not aware of any zigbee communication so it can't intercept those commands.

Domoticz has to query the brigde for the available light but doesn't do that apparently.

-------------Solved-------------------
I have reset my bridge completely back to factory settings and started over again, now it works.
Apparantly Domoticz need to have Hue Light ID's to start with 1, not with 6.
What'd you do to reset your bridge completly?

Re: [122] Philips Hue support

Posted: Saturday 02 May 2015 15:38
by JustME125
mcpoowl wrote:
JustME125 wrote:Hi Edgar,

Thanks for the reply. I tried it and it did not work unfortunately. I can imaging it works like this when using RF stuff because you can intercept wireless commands but my domoticz is not aware of any zigbee communication so it can't intercept those commands.

Domoticz has to query the brigde for the available light but doesn't do that apparently.

-------------Solved-------------------
I have reset my bridge completely back to factory settings and started over again, now it works.
Apparantly Domoticz need to have Hue Light ID's to start with 1, not with 6.
What'd you do to reset your bridge completly?
Hit the "reset to factory settings" button on the back of the bridge. This results in a complete reset, you lose everything regarding the bridge (scenes/users/schedules/etc) but hey...it worked.

Re: [122] Philips Hue support

Posted: Sunday 10 January 2016 9:29
by gizmocuz
Don't know why this topic was locked, but let's unlock it

For the above post, when you hard reset the bridge, it will also reset all user accounts.
So in Domoticz you have to delete the Philips hue hardware, and add it again (and register)

Re: [122] Philips Hue support

Posted: Sunday 10 January 2016 14:03
by hal9001
Hi,

I need some help regarding Hue light groups: I have 3 Hue lights + Hub and created 2 light groups using the all4hue android app.
I checked with the Hue CLI debugger that the groups are well stored in the Hub.
As mentioned in the domoticz Hue wiki page (https://www.domoticz.com/wiki/Philips_Hue_Lights) I assumed the groups would appear as switches in domoticz but they don't.
I tried to disable/enable the Hue hardware item in domoticz but without success; no new devices appear in the device page.
Everything else is working fine (controlling each light individually).

Any idea?

Regards,
Karl

Re: [122] Philips Hue support

Posted: Sunday 10 January 2016 14:24
by gizmocuz
Is 'Accept new hardware' enabled in the settings? If not, enable this, then disable/enable the hue hardware in the hardware setup
did you install the 'HueMote' application and confirm that there are groups ?
you should at least get 1 group (group all) regardless if you created any group with the latest beta (#4078+)

Re: [122] Philips Hue support

Posted: Sunday 10 January 2016 16:20
by hal9001
gizmocuz wrote:Is 'Accept new hardware' enabled in the settings? If not, enable this, then disable/enable the hue hardware in the hardware setup
did you install the 'HueMote' application and confirm that there are groups ?
you should at least get 1 group (group all) regardless if you created any group with the latest beta (#4078+)
Yes, accept new hardware is enabled in settings.
Domoticz auto-detected right away any new light I added on the hub.
HueMote application is not available for Android but I used an equivalent andoid app named all4hue that allows light groups creation; I did it and checked using the Hue CLI console that the groups are well created and stored on the Philips Hue Hub (cf. below).

URL: /api/<userid>/groups
method: GET
Result:

Code: Select all

{
	"1": {
		"name": "Salle à manger",
		"lights": [
			"2",
			"1"
		],
		"type": "LightGroup",
		"action": {
			"on": true,
			"bri": 254,
			"hue": 47610,
			"sat": 214,
			"effect": "none",
			"xy": [
				0.2014,
				0.1054
			],
			"ct": 153,
			"alert": "none",
			"colormode": "xy"
		}
	},
	"2": {
		"name": "Chambre parents",
		"lights": [
			"3"
		],
		"type": "LightGroup",
		"action": {
			"on": false,
			"bri": 254,
			"alert": "none"
		}
	}
}
Any other idea?

Regards

Re: [122] Philips Hue support

Posted: Sunday 10 January 2016 17:32
by gizmocuz
I see you are running domoticz on your synology nas, i do not think version #4078+ is available for this correct?
If no, you have to wait until it is

Re: [122] Philips Hue support

Posted: Wednesday 13 January 2016 22:58
by wmn79
Since this topic is unlocked again is this the place to report issues with the implemented Hue support in Domoticz like the one in this topic: http://www.domoticz.com/forum/viewtopic.php?f=23&t=9499.

Re: [122] Philips Hue support

Posted: Thursday 14 January 2016 7:38
by gizmocuz
wmn79 wrote:Since this topic is unlocked again is this the place to report issues with the implemented Hue support in Domoticz like the one in this topic: http://www.domoticz.com/forum/viewtopic.php?f=23&t=9499.
Please only report issues with the native implementation here, not with scripts or other meanings

Re: [122] Philips Hue support

Posted: Thursday 14 January 2016 9:20
by wmn79
gizmocuz wrote:
wmn79 wrote:Since this topic is unlocked again is this the place to report issues with the implemented Hue support in Domoticz like the one in this topic: http://www.domoticz.com/forum/viewtopic.php?f=23&t=9499.
Please only report issues with the native implementation here, not with scripts or other meanings
But isn't LUA and the devicechanged table and otherdevices table not being updated correctly by the native implementation part of that? Or do you mean that it is not supported to switch the Hue lamps with other devices than Domoticz? The state in Domoticz changes correctly but the state in LUA otherdevices table and devicechanged table doesn't change with it. Sorry not trying to be a smart ass but I just want to get it clear. Thanks.

Re: [122] Philips Hue support

Posted: Thursday 14 January 2016 9:23
by gizmocuz
Question is, why do you need lua ?
If there is something missing in the native hue implementation in domoticz, maybe best if you look into this and supply a git pull request with a patch

Re: [122] Philips Hue support

Posted: Thursday 14 January 2016 9:42
by wmn79
gizmocuz wrote:Question is, why do you need lua ?
If there is something missing in the native hue implementation in domoticz, maybe best if you look into this and supply a git pull request with a patch
Both lua and blockly are impacted so maybe I better call it the event system instead of lua. I prefer lua because I find it easier to use/understand. I know that most of the people prefer blockly over lua, so I might be crazy :-). But I need the event system to switch a Hue scene on when I am home and the lux is lower than a certain value and the lights are not on already. I think that can only be done with the event system, switching a Hue scene directly on I think is also only available through a script, although I recently saw this commit:https://github.com/domoticz/domoticz/co ... c3fffafb35 but I haven't been able to locate how configure this in Domoticz.

I have already taken a look into the hardware files but unfortunately I don't have any coding skills. Do you have a suggestion for a good tutorial on basic coding in C++ I would love to contribute some more to this community?

Re: [122] Philips Hue support

Posted: Thursday 14 January 2016 22:44
by hal9001
gizmocuz wrote:I see you are running domoticz on your synology nas, i do not think version #4078+ is available for this correct?
If no, you have to wait until it is
I did the upgrade and groups now appear and work perfectly!
Thanks a lot ;)

Re: [122] Philips Hue support

Posted: Sunday 17 January 2016 23:25
by Marcel
Hi, first of all compliments for this implementation! Really works well!

I do have one practical question; I have a zwave switch triggering a domoticz group setting 3 hue lamps on/off and 2 zwave lamps on/off. The lamps if you control them individually sometimes do not respond because three signal are send rapidly after each other. A native scene in the hue bridge solves the issue. There is one signal sent and that always works.

There is now one issue.... if I add the Hue scene into the domoticz group I can only turn on the lights because for hue you need two scens, one to turn on another to switch off.

How can I solve this? is it possible to add two hue scenes into one domoticz group, one for on another for off?