Page 60 of 114

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 16:00
by Akerboom
Madgeni wrote: Monday 16 April 2018 12:41 <cut>
tl;dr - Web services using REST shouldn't use cookie-based sessions; This would involve effort for minimal return; negative effect on my AWS bill
I understand your concern with the way Domoticz' API works and also that the effort from your end renders minimal return. I don't understand the negative effect on your AWS bill, as it doesn't require extra call's, only handling of the http-headers containing the cookies.

If you could suffice with setting and saving the SID-cookie in the http-header without any negative effect it could be a very minimal change. I tested a Domoticz API call with username+password and a corrupted and outdated SID. This unfortunately gives an Auth error and doesn't use the username+password as back-up. Therefor managing the validity (expire-date) is vital and adds to the complexity you described.

Thanks for your elaborate respons, it was an easy fix for my own services too bad this isn't as easy when scaled up :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 16:14
by Madgeni
lupo2a wrote: Tuesday 17 April 2018 15:33 I have a google home mini
Can I be a tester of Controlicz?
It's live - search in your Google Home app :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 16:19
by Madgeni
Akerboom wrote: Tuesday 17 April 2018 16:00
I understand your concern with the way Domoticz' API works and also that the effort from your end renders minimal return. I don't understand the negative effect on your AWS bill, as it doesn't require extra call's, only handling of the http-headers containing the cookies.

If you could suffice with setting and saving the SID-cookie in the http-header without any negative effect it could be a very minimal change. I tested a Domoticz API call with username+password and a corrupted and outdated SID. This unfortunately gives an Auth error and doesn't use the username+password as back-up. Therefor managing the validity (expire-date) is vital and adds to the complexity you described.

Thanks for your elaborate respons, it was an easy fix for my own services too bad this isn't as easy when scaled up :)
It's all down to handling that cookie - i'd have to persist it *somewhere* - memory if they're shortlived, or storage if they are longer (it looks like they can be set for very long TTL - which is bad btw!) - that's where complexity and cost kick in. Again, this is an anti-pattern for API behaviour.
I'd have to rewrite the Node wrapper i use for the Domoticz API, i'd have to refactor my code to handle bundling of requests, which I don't currently do, and have to verify those cookies and tie them to users before making the calls, adding complexity and degrading performance - it would make the overall round trip slower.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 17:35
by lupo2a
I signed on www.Controlicz.com/login but when I add the app is ask me user/pwd and it doesn't work


Madgeni wrote: Tuesday 17 April 2018 16:14
lupo2a wrote: Tuesday 17 April 2018 15:33 I have a google home mini
Can I be a tester of Controlicz?
It's live - search in your Google Home app :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 17:39
by Madgeni
lupo2a wrote: Tuesday 17 April 2018 17:35 I signed on www.Controlicz.com/login but when I add the app is ask me user/pwd and it doesn't work
you *did* register with Controlicz first right? I can't find your email address in the database

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 15:19
by lupo2a
different address: lupo2alist@
Madgeni wrote: Tuesday 17 April 2018 17:39
lupo2a wrote: Tuesday 17 April 2018 17:35 I signed on www.Controlicz.com/login but when I add the app is ask me user/pwd and it doesn't work
you *did* register with Controlicz first right? I can't find your email address in the database

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 15:33
by Madgeni
lupo2a wrote: Wednesday 18 April 2018 15:19 different address: lupo2alist@
Madgeni wrote: Tuesday 17 April 2018 17:39
lupo2a wrote: Tuesday 17 April 2018 17:35 I signed on www.Controlicz.com/login but when I add the app is ask me user/pwd and it doesn't work
you *did* register with Controlicz first right? I can't find your email address in the database
You're definitely not registered with Controlicz with that email address. I've just registered you, you'll have received an email - have also sent you your password - you can change this via https://www.controlicz.com/forgot

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 19:56
by bkanuka
Thank you! Directions and website UI are a little unclear, but once I got it working, it's amazing. I've been waiting for this - it's just what I needed.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 22:26
by Madgeni
"Congrats on passing policy review and smart home certification. Now that your app has passed, the small icon in the directory will show a "works with Google Assistant” badge"
Danish
German
English
French
Italian
Dutch
Norwegian
Portuguese (Brazil)
Swedish

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 22:49
by gijsje
Nice work to bad google have not yet released the dutch google assistant

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 18 April 2018 23:33
by Madgeni
when it's natively available, Controlicz is ready :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Thursday 19 April 2018 15:48
by lupo2a
Few notes on blind shutters (google home mini, italian language)
1) they are seen as switches -> turn on/off works, open/close doesn't
2) if I set the % the blind always closes

How can I set a blind shutter to a specific %?
Is it possible to use open/close?

How can I have google home telling me the % of a blind shutter?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Thursday 19 April 2018 19:27
by alvi72
Hi all,

I am getting the unable to connect please check your config message when running the test.
The https connection is working and i can log in directly with the username and password that is used in the controlizs profile. I have tried from different browsers and pcs but no joy.

I know it can work as i had it working but then messed up the whole domoticz and had to rebuild ( and yes i had a backup image but that was the cause of the rebuild :( )

Anyway is there anything else i can do / change because i am missing the voice control, now i have gotten used to it.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Thursday 19 April 2018 23:53
by Madgeni
Ignore the test, can you enable Controlicz on your GH?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Friday 20 April 2018 12:25
by alvi72
I should have said that in the previous post the GH connection is also not working. It accepts the password and connection but when it should be loading the devices it stops after a while and gives an error to that it couldn't update the settings.

The other thing i havent mentioned but i believe it does not make a difference is that i am using the self signed certificate from domoticz, which off course fails the safety tests

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Friday 20 April 2018 17:47
by Madgeni
ok, can you mail the admin from your Controlicz profile? thx

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Saturday 21 April 2018 9:59
by Akerboom
@Madgeni: I added my MiLights as On/Off devices instead of Dimmers (because I don't use the dimmer functions). But if I do that, they are not synced. Is this a feature?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 24 April 2018 16:48
by alvi72
any other ideas that I could try besides mail the admin, it seems he is rather busy with other things?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 24 April 2018 16:57
by Madgeni
alvi72 wrote: Tuesday 24 April 2018 16:48 any other ideas that I could try besides mail the admin, it seems he is rather busy with other things?
it's because I have a job!

I emailed you back almost straight away - Controlicz is (still) getting a timeout on your host. Can you confirm that you can access it via the internet?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 24 April 2018 22:47
by alvi72
he, it was not mend as an insult. I was just asking what i could try so that you don't have to spend time on my problem as i actually really appreciate all the time that is spend on these opensource environments.

But forget I asked It seems I am getting mixed result when accessing from the internet so the problem is elsewhere. Thanks for the help