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

Alexa, Google Home and Siri

Moderator: leecollings

User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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 2025 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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Akerboom
Posts: 36
Joined: Thursday 15 March 2018 19:40
Target OS: -
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Akerboom »

Madgeni wrote: Sunday 29 April 2018 16:37 Data should be available in your Profile now also
check, confirmed! thx
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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}'
Last edited by sincze on Sunday 29 April 2018 18:55, edited 1 time in total.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni »

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 - https://twitter.com/Controlicz
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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 :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by sincze »

Haha you are right
Regarding Google colour API implementation accuracy controlicz: 1 domoticz: 0.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
ehallq
Posts: 45
Joined: Tuesday 29 December 2015 12:34
Target OS: Linux
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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?
art4me
Posts: 7
Joined: Tuesday 12 December 2017 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10264
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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 ;)
User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by jaha »

Cant 't you make a hardware plugin to domoticz, so we don't have to expose domoticz to the internet via portforwarding?
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Madgeni »

anyone having issues, can you please verify its ok now? I was testing some feedback, which probably caused issues
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by freijn »

Temperature and light on / off works perfectly here. Is that what you like to have tested ?
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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. :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
art4me
Posts: 7
Joined: Tuesday 12 December 2017 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10264
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by art4me »

Seems working now.
art4me
Posts: 7
Joined: Tuesday 12 December 2017 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10264
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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.. :(
Haringstad
Posts: 13
Joined: Tuesday 22 November 2016 9:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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........
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest