Controlicz - Domoticz to Google Home/Assistant integration Topic is solved

Alexa, Google Home and Siri
User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 15:23

Akerboom wrote:
Sunday 29 April 2018 15:21
I can't control 'Lamp Schuur' and 'Spot Zolder'. Please help :)
Would that be 'on / off' or 'colour' or both ;)
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 15:26

sincze wrote:
Sunday 29 April 2018 15:23
Akerboom wrote:
Sunday 29 April 2018 15:21
I can't control 'Lamp Schuur' and 'Spot Zolder'. Please help :)
Would that be 'on / off' or 'colour' or both ;)
Struggling to work out if you're trying to be helpful, or just pushing my buttons. It's Sunday, i'm working on this, go and do something else eh?
Native Alexa skill and Google app - register at https://www.controlicz.com

Akerboom
Posts: 39
Joined: Thursday 15 March 2018 20:40
Target OS: -
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Akerboom » Sunday 29 April 2018 15:43

They should be lights, yes:
Screenshot 2018-04-29 at 15.41.12.png
Screenshot 2018-04-29 at 15.41.12.png (31.54 KiB) Viewed 799 times
Type: Color Switch - SubType: RGB - Added as: On/Off, so I like it as On/Off in Controlicz aswell

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 15:56

Akerboom wrote:
Sunday 29 April 2018 15:43
They should be lights, yes:
Type: Color Switch - SubType: RGB - Added as: On/Off

Type: Color Switch - SubType: RGB - Added as: On/Off, so I like it as On/Off in Controlicz aswell
try now
Native Alexa skill and Google app - register at https://www.controlicz.com

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 16:12

Madgeni wrote:
Sunday 29 April 2018 15:26
sincze wrote:
Sunday 29 April 2018 15:23
Akerboom wrote:
Sunday 29 April 2018 15:21
I can't control 'Lamp Schuur' and 'Spot Zolder'. Please help :)
Would that be 'on / off' or 'colour' or both ;)
Struggling to work out if you're trying to be helpful, or just pushing my buttons. It's Sunday, i'm working on this, go and do something else eh?
Well according to the 'thank you' reputation on this forum that would be: "trying to be helpful".
Just spending a few days with controlicz functionality.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Akerboom
Posts: 39
Joined: Thursday 15 March 2018 20:40
Target OS: -
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Akerboom » Sunday 29 April 2018 16:14

Madgeni wrote:
Sunday 29 April 2018 15:56
try now
Awesome, working: lights show up in Google Assistant and can be controlled!

(The table in https://www.controlicz.com/profiledevs still shows an empty Google/Alexa column though)

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 16:37

Akerboom wrote:
Sunday 29 April 2018 16:14
Madgeni wrote:
Sunday 29 April 2018 15:56
try now
Awesome, working: lights show up in Google Assistant and can be controlled!

(The table in https://www.controlicz.com/profiledevs still shows an empty Google/Alexa column though)
Data should be available in your Profile now also
Native Alexa skill and Google app - register at https://www.controlicz.com

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 17:09

As it raining outside i tried to control a mi-light bulb with controlicz.
Mi-Light Colour.png
Mi-Light
Mi-Light Colour.png (1.98 KiB) Viewed 783 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.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 17:15

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
Native Alexa skill and Google app - register at https://www.controlicz.com

Akerboom
Posts: 39
Joined: Thursday 15 March 2018 20:40
Target OS: -
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Akerboom » Sunday 29 April 2018 17:22

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

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 17:35

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}'
Last edited by sincze on Sunday 29 April 2018 18:55, edited 1 time in total.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 18:13

why iswhite=true?
Interesting that this works for you, despite the API doc giving no info on it.
Native Alexa skill and Google app - register at https://www.controlicz.com

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 18:52

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.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 18:54

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.
Native Alexa skill and Google app - register at https://www.controlicz.com

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 20:07

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.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » 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.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Madgeni
Posts: 1234
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni » Sunday 29 April 2018 21:40

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 :)
Native Alexa skill and Google app - register at https://www.controlicz.com

User avatar
sincze
Posts: 940
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze » Sunday 29 April 2018 21:48

Haha you are right
Regarding Google colour API implementation accuracy controlicz: 1 domoticz: 0.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

ehallq
Posts: 46
Joined: Tuesday 29 December 2015 13:34
Target OS: Linux
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by ehallq » Monday 30 April 2018 7:04

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?

art4me
Posts: 7
Joined: Tuesday 12 December 2017 11:27
Target OS: Raspberry Pi
Domoticz version: 3.8796
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by art4me » Monday 30 April 2018 9:16

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 ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests