Page 63 of 114

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 17:09
by sincze
As it raining outside i tried to control a mi-light bulb with controlicz.
Mi-Light
Mi-Light
Mi-Light Colour.png (1.98 KiB) Viewed 2389 times
The following commands were issued to the google home:

Code: Select all

Set test light On:	User: username initiated a switch command (999/test light/On)
Set test light Off:	User: username initiated a switch command (999/test light/Off)	
Set test light Brightness 50%:	 User: username initiated a switch command (999/test light/Set Level)

Set test light Red	setcolbrightnessvalue: ID: 11b, bri: 100, color: '{m: 3, RGB: ff0000, CWWW: 0000, CT: 0}'
Set test light Green	Incoming connection from: 35.176.67.167 
Set test light Blue	Incoming connection from: 35.176.67.167 
Set test light Yellow	setcolbrightnessvalue: ID: 11b, bri: 100, color: '{m: 3, RGB: ffff00, CWWW: 0000, CT: 0}
Set test light White	setcolbrightnessvalue: ID: 11b, bri: 100, color: '{m: 1, RGB: ffffff, CWWW: 0000, CT: 0}'
For some reason Green and Blue commands are not resulting into a valid command Domoticz can do something with.
The google home confirms the colour and an entry log of an incoming connection is written down.

I'll try some additional tests with the yeelights to see if they work with all the colours mentioned above.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 17:15
by Madgeni
sincze wrote: Sunday 29 April 2018 17:09 As it raining outside i tried to control a mi-light bulb with controlicz.
Mi-Light Colour.png

For some reason Green and Blue commands are not resulting into a valid command Domoticz can do something with.
The google home confirms the colour and an entry log of an incoming connection is written down.

I'll try some additional tests with the yeelights to see if they work with all the colours mentioned above.
From the Google doc:
spectrumRGB Integer. Spectrum value in RGB (hex value as an integer)
I have to translate that integer to the hex for Domoticz - which is returning FF00 for green.

does this:
/json.htm?type=command&param=setcolbrightnessvalue&idx=<IDXHERE>&hex=ff00&brightness=100&iswhite=false work? I wonder if it's needing the 0xFF00. But i've not had other people commenting on it not working

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 17:22
by Akerboom
Madgeni wrote: Sunday 29 April 2018 16:37 Data should be available in your Profile now also
check, confirmed! thx

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 17:35
by sincze
Madgeni wrote: Sunday 29 April 2018 17:15 From the Google doc:
spectrumRGB Integer. Spectrum value in RGB (hex value as an integer)
I have to translate that integer to the hex for Domoticz - which is returning FF00 for green.

does this:
/json.htm?type=command&param=setcolbrightnessvalue&idx=<IDXHERE>&hex=ff00&brightness=100&iswhite=false work? I wonder if it's needing the 0xFF00. But i've not had other people commenting on it not working
I tried it with: Domoticz V3.9227 / Build Hash: c15d5063 / Build Date: 2018-04-15 04:15:12.

Not working for green:

Code: Select all

{
   "status" : "ERR"
}

Code: Select all

/json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=ff00&brightness=100&iswhite=false
Working for green:

Code: Select all

{
   "status" : "OK",
   "title" : "SetColBrightnessValue"
}

Code: Select all

/json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=ff00&brightness=100&iswhite=true
And also working: :D are the following nice colours. So I was able to obtain blue (baby blue) and green (avocado) in a different way:

Code: Select all

Set test light Amazon	setcolbrightnessvalue: ID: 61f, bri: 47, color: '{m: 3, RGB: 7bffb5, CWWW: 0000, CT: 0}'
Set test light Amber	setcolbrightnessvalue: ID: 61f, bri: 100, color: '{m: 3, RGB: ffbf00, CWWW: 0000, CT: 0}'
Set test light Purple	setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
Set test light Avocado	setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: a8ff05, CWWW: 0000, CT: 0}'
Set test light BabyBlue setcolbrightnessvalue: ID: 11b, bri: 94, color: '{m: 3, RGB: 91dbff, CWWW: 0000, CT: 0}'
Set test light BabyPink	setcolbrightnessvalue: ID: 11b, bri: 95, color: '{m: 3, RGB: ffcaca, CWWW: 0000, CT: 0}'				
Set test light Bright Green setcolbrightnessvalue: ID: 11b, bri: 100, color: '{m: 3, RGB: 66ff00, CWWW: 0000, CT: 0}'
Set test light Brown	setcolbrightnessvalue: ID: 11b, bri: 58, color: '{m: 3, RGB: ff7f00, CWWW: 0000, CT: 0}
Set test light Pink	setcolbrightnessvalue: ID: 61f, bri: 100, color: '{m: 3, RGB: ffbfcb, CWWW: 0000, CT: 0}'

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 18:13
by Madgeni
why iswhite=true?
Interesting that this works for you, despite the API doc giving no info on it.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 18:52
by sincze
Madgeni wrote: Sunday 29 April 2018 18:13 why iswhite=true?
Interesting that this works for you, despite the API doc giving no info on it.
I reset all my lights (mi-light + yeelight) to purple and ran the test again.
To make it a bit more complicated let me clarify my findings (all lights starting in purple)
Purple:
2018-04-29 18:49:17.168 setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
2018-04-29 18:49:17.350 setcolbrightnessvalue: ID: 606, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
2018-04-29 18:49:17.522 setcolbrightnessvalue: ID: 5dc, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
Issue false always results in an error mi-light and yeelight

Code: Select all

{
   "status" : "ERR"
}
Issue white=true results in a WHITE light for mi-light and GREEN light for Yeelight.

Below the result of a Yeelight:

setcolbrightnessvalue: ID: 61f, bri: 100, color: '{m: 1, RGB: 000000, CWWW: 0000, CT: 0}'
Weird stuff.

"Hey Google, Change lights to avocado" and everything is green.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 18:54
by Madgeni
sincze wrote: Sunday 29 April 2018 18:52
I reset all my lights (mi-light + yeelight) to purple and ran the test again.
To make it a bit more complicated let me clarify my findings (all lights starting in purple)
Purple:
2018-04-29 18:49:17.168 setcolbrightnessvalue: ID: 61f, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
2018-04-29 18:49:17.350 setcolbrightnessvalue: ID: 606, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
2018-04-29 18:49:17.522 setcolbrightnessvalue: ID: 5dc, bri: 50, color: '{m: 3, RGB: ff00ff, CWWW: 0000, CT: 0}'
Issue false always results in an error mi-light and yeelight

Issue white=true results in a WHITE light for mi-light and GREEN light for Yeelight.

Weird stuff.
they can't always be erroring, as you said you had some success with some colours?
so mi-lights/yeelights misbehave with the Domoticz API. Great. If you hit some consistency of result, let me know, and i'll see if I can handle it.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 20:07
by sincze
Madgeni wrote: Sunday 29 April 2018 18:54 they can't always be erroring, as you said you had some success with some colours?
so mi-lights/yeelights misbehave with the Domoticz API. Great. If you hit some consistency of result, let me know, and i'll see if I can handle it.
A yes I guess the API of domoticz may not be dealing with device types in the right way.
Personally I never noticed as I use the API like:

Green:
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hue=150&brightness=100&iswhite=false

White:
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hue=150&brightness=100&iswhite=true

Blue:
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hue=250&brightness=100&iswhite=false

For now It works. For controlicz I just ask for:

Blue: Set test light BabyBlue
Green: Set test light Bright Green

I'll just do some more experimenting with the API controlicz is using to talk to domoticz.

Thanks for your support.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 20:15
by sincze
Madgeni wrote: Sunday 29 April 2018 17:15 From the Google doc:
spectrumRGB Integer. Spectrum value in RGB (hex value as an integer)
I have to translate that integer to the hex for Domoticz - which is returning FF00 for green.

does this:
/json.htm?type=command&param=setcolbrightnessvalue&idx=<IDXHERE>&hex=ff00&brightness=100&iswhite=false work? I wonder if it's needing the 0xFF00. But i've not had other people commenting on it not working
Based on http://www.color-hex.com/
I tried your url with 6 hex values

RED
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=990000&brightness=100&iswhite=false

GREEN
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=00ff00&brightness=100&iswhite=false

BLUE:
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=000080&brightness=100&iswhite=false

The yeelight & mi-light are reacting to that correctly.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 21:40
by Madgeni
sincze wrote: Sunday 29 April 2018 20:15
Madgeni wrote: Sunday 29 April 2018 17:15 From the Google doc:
spectrumRGB Integer. Spectrum value in RGB (hex value as an integer)
I have to translate that integer to the hex for Domoticz - which is returning FF00 for green.

does this:
/json.htm?type=command&param=setcolbrightnessvalue&idx=<IDXHERE>&hex=ff00&brightness=100&iswhite=false work? I wonder if it's needing the 0xFF00. But i've not had other people commenting on it not working
Based on http://www.color-hex.com/
I tried your url with 6 hex values

RED
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=990000&brightness=100&iswhite=false

GREEN
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=00ff00&brightness=100&iswhite=false

BLUE:
json.htm?type=command&param=setcolbrightnessvalue&idx=999&hex=000080&brightness=100&iswhite=false

The yeelight & mi-light are reacting to that correctly.
from Google's actual commands:
Red = 16711680 - which translates to ff0000
Green = 65280 - which translates to ff00
Blue = 255 - which translates to ff
Purple = 8388736 - which translates to 800080
Amber = 16760576 - which translates to ffbf00
Amazon = 3897943 - which translates to 3b7a57

and it's not my url, it's from the Domoticz API doc :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 29 April 2018 21:48
by sincze
Haha you are right
Regarding Google colour API implementation accuracy controlicz: 1 domoticz: 0.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 7:04
by ehallq
Hi
Are there some issues at the Controlicz servers?

Because yesterday evening/night it suddenly stopped working. I had during that day switched account for controlicz and also added 2 more lights. Everything worked flawlessly and then I tried to ask for the temperature in the kitchen and then controlicz stopped responding. Just seconds before that I asked Google to turn of the lights in the kitchen, and that worked. Now controlicz says that it can't connect to my server. I have restarted domoticz checked the credentials etc etc, and everything is correct....what have gone wrong?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 9:16
by art4me
Hi there, I've got some problems too. I disconnected the service from Google Assistant and tried to reconnect it but no way, the service doesn't send me any device list. BTW when everything was working, the device list update never worked: when I add an new device on domoticz, it was never added on controlicz instead disconnect and reconnect the service back (and then link devices to all rooms.. a bit boring stuff). I'm missing something?

Thanks mate!

PS. 'v just sent you a money recognition ;)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 9:43
by jaha
Cant 't you make a hardware plugin to domoticz, so we don't have to expose domoticz to the internet via portforwarding?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 12:03
by Madgeni
anyone having issues, can you please verify its ok now? I was testing some feedback, which probably caused issues

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 12:14
by freijn
Temperature and light on / off works perfectly here. Is that what you like to have tested ?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 12:16
by Madgeni
the site should be working again (Test "works" - but still no specific feedback), Device list etc, as well as the actual voice controls. :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 12:45
by art4me
Seems working now.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 13:03
by art4me
I still have problems with Google Assistant update when I add a new device. On website device list works fine (I mean that the new device added on Domoticz is shown) but on Google Assistant not.. :(

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 30 April 2018 20:06
by Haringstad
Dunno if this is the right place, but from today, login at the controlicz site, I only get a brand new website, but it seems that it isn't able to connect to my https based domoticz on port 4433.... While when I use a browser, it works like a charm........