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

Alexa, Google Home and Siri

Moderator: leecollings

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: 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 :)
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 »

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 :)
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 »

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.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
lupo2a
Posts: 31
Joined: Thursday 29 September 2016 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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 :)
Raspberry PI 4
Domoticz: V2023.2
- Aeotec Gen5 EU
- Neo CoolCam Door Detector and plug
- FIBARO FGWPE Wall Plug
- 6 FIBARO System FGRM222 Roller Shutter Controller 2
- Kodi SamnsungTV Yamaha plugin
- pluginn manager
- Netatmo
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 »

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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
lupo2a
Posts: 31
Joined: Thursday 29 September 2016 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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
Raspberry PI 4
Domoticz: V2023.2
- Aeotec Gen5 EU
- Neo CoolCam Door Detector and plug
- FIBARO FGWPE Wall Plug
- 6 FIBARO System FGRM222 Roller Shutter Controller 2
- Kodi SamnsungTV Yamaha plugin
- pluginn manager
- Netatmo
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 »

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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
bkanuka
Posts: 7
Joined: Saturday 26 September 2015 15:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

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

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

Nice work to bad google have not yet released the dutch google assistant
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 »

when it's natively available, Controlicz is ready :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
lupo2a
Posts: 31
Joined: Thursday 29 September 2016 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post 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?
Raspberry PI 4
Domoticz: V2023.2
- Aeotec Gen5 EU
- Neo CoolCam Door Detector and plug
- FIBARO FGWPE Wall Plug
- 6 FIBARO System FGRM222 Roller Shutter Controller 2
- Kodi SamnsungTV Yamaha plugin
- pluginn manager
- Netatmo
alvi72
Posts: 4
Joined: Tuesday 17 April 2018 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

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

Ignore the test, can you enable Controlicz on your GH?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
alvi72
Posts: 4
Joined: Tuesday 17 April 2018 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

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

ok, can you mail the admin from your Controlicz profile? thx
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: 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?
alvi72
Posts: 4
Joined: Tuesday 17 April 2018 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

Post by alvi72 »

any other ideas that I could try besides mail the admin, it seems he is rather busy with other things?
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 »

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?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
alvi72
Posts: 4
Joined: Tuesday 17 April 2018 14:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlicz - Domoticz to Google Home/Assistant integration

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

Who is online

Users browsing this forum: No registered users and 0 guests