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

Alexa, Google Home and Siri

Moderator: leecollings

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 »

hmm, i could hardcode that hex, so if it matches, it sets that switch iswhite to true (usually it's false, as it's setting another colour)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Tyturion
Posts: 11
Joined: Tuesday 26 December 2017 23:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Tyturion »

Madgeni wrote: Thursday 04 January 2018 9:50 hmm, i could hardcode that hex, so if it matches, it sets that switch iswhite to true (usually it's false, as it's setting another colour)
Yeah, you are right. This command also changes the color to white even though the statement "iswhite" is still false:

https://192.168.2.9/json.htm?type=comma ... hite=false

Let me know if you need some testing done.

Cheers,
Thomas
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 »

Tyturion wrote: Thursday 04 January 2018 12:13
Madgeni wrote: Thursday 04 January 2018 9:50 hmm, i could hardcode that hex, so if it matches, it sets that switch iswhite to true (usually it's false, as it's setting another colour)
Yeah, you are right. This command also changes the color to white even though the statement "iswhite" is still false:

https://192.168.2.9/json.htm?type=comma ... hite=false

Let me know if you need some testing done.

Cheers,
Thomas
ok, so if that's the case, then there's not much I can do. i'm guessing that when you ask Google to set the lamp to white, it's triggering the 'colortemperature' trait, rather than 'colorSpectrum' trait - which means I have no control over it, otherwise it would be working. So in Domoticz terms, it's using that setKelvinLevel, rather than setcolbrightnessvalue
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
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 »

On SelectorSwitches - as i've said before - it's stupid. Google have to manually configure every level type you use individually, in order for you to use them. I've asked them for a 'mode' which is more configurable, so simply passes on the level word, and I deal with it, but we'll see.
In the interim, i've got it working, if you use off/small/medium/large for your selector switch levels in Domoticz. Now i don't use them, so i don't know how silly that is for you, but it's all i can do at the moment, as this is the only mode selectors they've configured.
So set your levels to all/some of those, then when you've re-sync'd you can say 'set <device> load to <small/medium/large> and it should work.

It's silly, but a minor step forward.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by DewGew »

I have zwave dimmers and 433mhz dimmers but dimming is not working. GA is responding correct with " Sure, dimming the lamp by 50 percent."
Any ideas?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
wimfabries
Posts: 5
Joined: Sunday 30 October 2016 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by wimfabries »

Hi Madgeni,

I have asked several times to include me in the beta programm, but no reply. Am I doing something wrong ?


Greetz Wim
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 »

Hi -

you were added a while back, maybe you didn't receive the email notification. I get a lot of posts on here, and I also have a job, so i do miss things :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
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 »

DewGew wrote: Thursday 04 January 2018 13:57 I have zwave dimmers and 433mhz dimmers but dimming is not working. GA is responding correct with " Sure, dimming the lamp by 50 percent."
Any ideas?
hey - can you PM your email address, and i'll take a look
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
wimfabries
Posts: 5
Joined: Sunday 30 October 2016 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by wimfabries »

Hi Madgeni,

Excuses, mail came into spam folder. Sorry !

Greetz

Wim
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 »

DewGew wrote: Thursday 04 January 2018 13:57 I have zwave dimmers and 433mhz dimmers but dimming is not working. GA is responding correct with " Sure, dimming the lamp by 50 percent."
Any ideas?
ok - so here's the thing. Currently (as far as i can tell) google doesn't allow you to decrement/increment percentages, but it does say it does. So technically, the only brightness control is absolute (set light to x%) - but you can ask to decrement/increment, but it sets it to 0 in the actual request.

Will investigate - but if you say 'set my device to x%' - that should work.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by DewGew »

Madgeni wrote: Thursday 04 January 2018 14:43
DewGew wrote: Thursday 04 January 2018 13:57 I have zwave dimmers and 433mhz dimmers but dimming is not working. GA is responding correct with " Sure, dimming the lamp by 50 percent."
Any ideas?
ok - so here's the thing. Currently (as far as i can tell) google doesn't allow you to decrement/increment percentages, but it does say it does. So technically, the only brightness control is absolute (set light to x%) - but you can ask to decrement/increment, but it sets it to 0 in the actual request.

Will investigate - but if you say 'set my device to x%' - that should work.
Thanks I got it working with "set lamp to 50%"
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
alanlsmith
Posts: 132
Joined: Monday 07 August 2017 17:17
Target OS: Linux
Domoticz version: Latest β
Location: Near London (Saaarf!)
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by alanlsmith »

Madgeni wrote: Thursday 04 January 2018 12:29
ok, so if that's the case, then there's not much I can do. i'm guessing that when you ask Google to set the lamp to white, it's triggering the 'colortemperature' trait, rather than 'colorSpectrum' trait - which means I have no control over it, otherwise it would be working. So in Domoticz terms, it's using that setKelvinLevel, rather than setcolbrightnessvalue
Ok, So I know it's a bodge and shouldn't really be needed but if you add the following script: 'script_device_lampname.lua
( change lampname & idx to your lamp name and lamp idx )

Code: Select all

commandArray = {}

local lampname = 'Sofa_Lights'
local lampidx = 299

if( devicechanged[lampname] ) then

	if ( otherdevices[lampname] == 'Set Kelvin Level' ) then 
		print(lampname.. 'wants to be white')
		commandArray[#commandArray+1] = {['OpenURL']='http://127.0.0.1:8080/json.htm?type=command&param=setcolbrightnessvalue&idx=' ..lampidx.. '&hex=ffffff'}
	end
end

return commandArray
It intercepts the Set Kelvin command issued by Google and changes lamp to white.
Domoticz Latest β, RPi 4B with 110Gb SSD for Domoticz, RPi 4B with 110Gb SSD for Node-Red & a RPi 2B for logging / IP addressing. RFXCOM, PiZiGate, Z-Wave, Harmony, Hue lamps and a bit of Broadlink.
MaxArma
Posts: 2
Joined: Sunday 31 December 2017 14:20
Target OS: -
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by MaxArma »

Hello Madgeni,
I Would like to participate to test your solution for GH.
I am registred on Controlicz with the mail [email protected] and i have acces to domoticz in HTTPS.
Can you add me to your test group ?
Thank you for your job.

Ps: sorry for my english, i'm french !
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 »

hey MaxArma -
pas de soucis, ma française est plus mauvais - vous avez accès maintenant :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
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 »

Madgeni wrote: Thursday 04 January 2018 12:29 ok, so if that's the case, then there's not much I can do. i'm guessing that when you ask Google to set the lamp to white, it's triggering the 'colortemperature' trait, rather than 'colorSpectrum' trait - which means I have no control over it, otherwise it would be working. So in Domoticz terms, it's using that setKelvinLevel, rather than setcolbrightnessvalue
ok...
can someone try the 'white' thing again please? both white and warm white - thanks
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by gijsje »

if i ask for white they they change to warm white has always worked for me
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
Tyturion
Posts: 11
Joined: Tuesday 26 December 2017 23:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by Tyturion »

Madgeni wrote: Thursday 04 January 2018 17:06
Madgeni wrote: Thursday 04 January 2018 12:29 ok, so if that's the case, then there's not much I can do. i'm guessing that when you ask Google to set the lamp to white, it's triggering the 'colortemperature' trait, rather than 'colorSpectrum' trait - which means I have no control over it, otherwise it would be working. So in Domoticz terms, it's using that setKelvinLevel, rather than setcolbrightnessvalue
ok...
can someone try the 'white' thing again please? both white and warm white - thanks
No, doesn't work, but thanks for trying.

Cheers,
Thomas
User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by gijsje »

I have tested again.
In the past if you say white it did change to warm white almost yellow to the max warm white of the mi light bulbs.
If i ask now for white they change to cold white.
If i ask for warm white the change to something in between warm and cold white
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
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 »

Tyturion wrote: Thursday 04 January 2018 17:51
No, doesn't work, but thanks for trying.
Cheers,
Thomas
so if you curl https://yourhost:port/json.htm?type=command&param=setkelvinlevel&idx=63&kelvin=50

does that not do anything?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
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 »

gijsje wrote: Thursday 04 January 2018 17:58 I have tested again.
In the past if you say white it did change to warm white almost yellow to the max warm white of the mi light bulbs.
If i ask now for white they change to cold white.
If i ask for warm white the change to something in between warm and cold white
Is that good or bad? It sounds bad.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest