Page 29 of 114
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 9:50
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)
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 12:13
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 12:29
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 12:32
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.
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 13:57
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?
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 13:58
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 14:26
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

Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 14:26
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 14:32
by wimfabries
Hi Madgeni,
Excuses, mail came into spam folder. Sorry !
Greetz
Wim
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 14:43
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.
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 14:58
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%"
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 15:02
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¶m=setcolbrightnessvalue&idx=' ..lampidx.. '&hex=ffffff'}
end
end
return commandArray
It intercepts the Set Kelvin command issued by Google and changes lamp to white.
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 16:07
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 !
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 16:20
by Madgeni
hey MaxArma -
pas de soucis, ma française est plus mauvais - vous avez accès maintenant

Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 17:06
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 17:10
by gijsje
if i ask for white they they change to warm white has always worked for me
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 17:51
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 17:58
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
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 18:08
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¶m=setkelvinlevel&idx=63&kelvin=50
does that not do anything?
Re: Controlicz - Domoticz to Google Home/Assistant integration
Posted: Thursday 04 January 2018 18:13
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.