Page 59 of 114

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 09 April 2018 14:50
by vchecco
finally google assistant speaks Italian.
I immediately tried controlicz and it works well.
but I have a problem:
I can only control "switch" devices.
I can not control "scenes" or "groups" even if I view them

when "I call" the scene ("ok google, accendi pianta") he searches on google.
(example in photo)

I tried to rename Domoticz, I tried to add the description (Controlicz: <friendlyname>) but nothing. does not work.
google understands the names, because I did some tests, but it seems that it does not accept the "scene".

How can I fix this problem? for me it is very important

thank you

sorry for my english

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 09 April 2018 15:00
by Madgeni
Hi -
Can you try "Turn on" - or the italian equivalent :)
i don't think this is a Controlicz issue, maybe a bug with Italian Google smart home controls - will raise a ticket with Google

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 09 April 2018 17:56
by Akerboom
In my logs, I get:

Code: Select all

User: Admin initiated a switch command
But I have no user 'Admin', and I created the user 'controlicz' for the connection setup on controlicz.com.

How is controlicz connecting to make this behavior happen?

[edit]
I allowed local networks without password. But my domoticz is behind nginx and all it sees all connections as local. That why it entered as without credentials as Admin. Fixed now.

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 09 April 2018 23:27
by mantoz
vchecco wrote: Monday 09 April 2018 14:50 finally google assistant speaks Italian.
I immediately tried controlicz and it works well.
but I have a problem:
I can only control "switch" devices.
I can not control "scenes" or "groups" even if I view them

when "I call" the scene ("ok google, accendi pianta") he searches on google.
(example in photo)

I tried to rename Domoticz, I tried to add the description (Controlicz: <friendlyname>) but nothing. does not work.
google understands the names, because I did some tests, but it seems that it does not accept the "scene".

How can I fix this problem? for me it is very important

thank you

sorry for my english
Hi vchecco, I'm Italian as well... and for what I know, scenes are not currently supported by Google Home in Italian.
I think we need to wait for the native support, hoping it will come soon.

mantoz

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 10 April 2018 8:58
by Madgeni
Have had confirmation from Google - not supported yet

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 10 April 2018 22:27
by TheCondor
HarR wrote: Tuesday 03 April 2018 23:23
woody4165 wrote:
TheCondor wrote:Hi Madgeni, i encountering a strange behaviour for two specific room: the bath and the kitchen.

in the bath i have two lights, described in domoticz as:
Controlicz:Bath Light
Controlicz:Bath Mirror Light

Controlicz:Kitchen Light
Controlicz:Kitchen Top Light

When i call "ok google, turn on/off bath light" it answer something like "sorry, i dont know what light do you mean".
So they are indeed two lights in the bathroom, but just one is called Bath Light.
The same behaviour is happen with the kitchen, all other rooms works fine... how can i workaround that?
Probably GH thinks that both words contain kitchen bath, try to change one light word with lux (or another word) and I think It will works.
Google home is being “smart”.
Make sure room names and device names are not the same. I have front garden and back garden defined as rooms. If I say “turn on garden light”, it will even know both are gardens, and turn on the lights in both front and back garden. Giving one of your lights the name garden light, will be confusing to GH.
Also GH will know a light switch is a light. So if I have a light called couch, saying “turn on the couch”, will do the same as “turn on the couch light”.
Also both turn on “living room” and “turn on living room lights”. Will turn on all lights in that room.



Sent from my iPad using Tapatalk
Hi, thanks for your reply. I changed in domoticz and controlicz like this:

Luce Sala A
Luce Sala B
Room Name: Soggiorno

So the Name of the room is different and i cani turn all' light on with "turn on soggiorno lights" but with the opposite turn off it say "i don't know What device to power off"

I Also tryed to change the name light to "led" but it's the same...
Any other tricks to try? Thanks again!

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 12:41
by woody4165
As far as I understood, if I add a device in the Roomplan in Domoticz (or if I remove it) it will not been shown in the Google Home app with Controlicz service active, even if I swipe in the device list.

If this is true, I have to unlink and relink Controlicz. But in this case, if I have set Nickname and Rooms for the devices, I will have to re-enter, correct?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 12:45
by Madgeni
Hi Woody - not sure I understand -
If you put a device in a Roomplan, then "sync my devices" (or italian equivalent) - it will appear in Google Home. If you remove it, then the device and the nickname will disappear, but any "Google" Rooms remain

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 13:28
by woody4165
Something like that, but where I should find the "sync my device" option?
Thanks

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 13:59
by Madgeni
you can either say it, or type it (using google assistant)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 14:17
by woody4165
Thanks @Madgeni

It seems that it's not active in my country, Italy. I have read an article from late December 2017 and it was active only in the USA.

Really strange.

Any italian user here that can confirm or have some news?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 16:44
by TheCondor
Yep, i'm italian and the equivalent to "sync my devices" always end in: SORRY, I DIDN'T UNDERSTAND.
It's needed to unlink and relink controlicz.
Currently i've got an issure with my system as reported before. Maybe madgeni can you give me some advice for correctly identify my lights?
All my house lights are controlled under domoticz -> controlicz...
Thanks ;)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 17:42
by Madgeni
I think we can safely say Google Home in Italian isn't ready for Google Smart Home apps :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Wednesday 11 April 2018 19:57
by woody4165
Controlicz is recognised and all the devices are imported correctly, but like the "sync my devices" was introduced just last December in the USA, it will arrive in the next few weeks (I hope!) or months.

Does this work in other country where Google Home is working, like France, Germany or other european countries?

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Thursday 12 April 2018 22:50
by Madgeni
i believe so - the latest version is being approved for: Danish; Dutch; French; German; Italian; Norwegian; Portuguese and Swedish

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Saturday 14 April 2018 22:30
by Akerboom
@Madgeni: Could you reuse a session by saving the 'sid' cookie?
That way the logs won't be cluttered by 'Incoming connection from'-lines:

Code: Select all

2018-04-14 20:06:37.828 User: controlicz initiated a switch command (316/Spot Keuken/Off)
2018-04-14 20:06:37.862 Incoming connection from: 35.176.67.167
2018-04-14 20:06:37.877 User: controlicz initiated a switch command (272/Spot Woonkamer 1/Off)
2018-04-14 20:06:37.907 Incoming connection from: 35.176.67.167
2018-04-14 20:06:37.920 User: controlicz initiated a switch command (238/Lamp Eettafel/Off)
2018-04-14 20:06:37.954 Incoming connection from: 35.176.67.167
2018-04-14 20:06:37.969 User: controlicz initiated a switch command (228/Staande lamp woonkamer/Off)
2018-04-14 20:06:38.008 Incoming connection from: 35.176.67.167
2018-04-14 20:06:38.024 User: controlicz initiated a switch command (257/Spot Woonkamer 2/Off)
2018-04-14 20:06:38.065 Incoming connection from: 35.176.67.167
2018-04-14 20:06:38.080 User: controlicz initiated a switch command (287/Spot Woonkamer 3/Off)
2018-04-14 20:06:38.108 Incoming connection from: 35.176.67.167
2018-04-14 20:06:38.123 User: controlicz initiated a switch command (302/Lamp Hal/Off)
2018-04-14 20:06:38.180 Incoming connection from: 35.176.67.167
2018-04-14 20:06:38.196 User: controlicz initiated a switch command (333/Spot Overloop/Off)
2018-04-14 20:06:38.258 Incoming connection from: 35.176.67.167
2018-04-14 20:06:38.281 User: controlicz initiated a switch command (389/Lamp Badkamer/Off)
2018-04-14 20:06:38.325 Incoming connection from: 35.176.67.167
Will be as follows if you reuse the sid:

Code: Select all

2018-04-14 20:06:18.633 Incoming connection from: 35.176.67.167
2018-04-14 20:06:37.828 User: controlicz initiated a switch command (316/Spot Keuken/Off)
2018-04-14 20:06:37.877 User: controlicz initiated a switch command (272/Spot Woonkamer 1/Off)
2018-04-14 20:06:37.920 User: controlicz initiated a switch command (238/Lamp Eettafel/Off)
2018-04-14 20:06:37.969 User: controlicz initiated a switch command (228/Staande lamp woonkamer/Off)
2018-04-14 20:06:38.024 User: controlicz initiated a switch command (257/Spot Woonkamer 2/Off)
2018-04-14 20:06:38.080 User: controlicz initiated a switch command (287/Spot Woonkamer 3/Off)
2018-04-14 20:06:38.123 User: controlicz initiated a switch command (302/Lamp Hal/Off)
2018-04-14 20:06:38.196 User: controlicz initiated a switch command (333/Spot Overloop/Off)
2018-04-14 20:06:38.281 User: controlicz initiated a switch command (389/Lamp Badkamer/Off)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 15 April 2018 10:04
by Madgeni
Hi - i'm afraid each call is a new call, as each call is a new call to the Domoticz API - i don't use a session cookie for the interactions with your Domoticz instances, solely for your interaction with the Controlicz site.
I believe this is the right approach, as each request should be distinct, but I appreciate the hassle it creates in your logs :)

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Sunday 15 April 2018 21:12
by Akerboom
I understand each call is a new call, but if you use a cookie-jar for each user then you can reuse the Domoticz session and reduce unneeded logging and session creation.
I do this with all my scripts who connect to the domoticz api:

Code: Select all

curl -b /tmp/domoticz-api-cookie-jar -c /tmp/domoticz-api-cookie-jar http://127.0.0.1:8080/json.htm?username=cn**&password=cnBpM**&type=command&param=etc...

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Monday 16 April 2018 12:41
by Madgeni
Akerboom wrote: Sunday 15 April 2018 21:12 I understand each call is a new call, but if you use a cookie-jar for each user then you can reuse the Domoticz session and reduce unneeded logging and session creation.
I do this with all my scripts who connect to the domoticz api:

Code: Select all

curl -b /tmp/domoticz-api-cookie-jar -c /tmp/domoticz-api-cookie-jar http://127.0.0.1:8080/json.htm?username=cn**&password=cnBpM**&type=command&param=etc...
*edit* -
I wrote a big response to this, which i deleted, then reposted, then deleted again :)

the cookie-jar method you employ is fine, when you control the environment. It's not an ideal method for managing REST api calls (which should be atomic and stateless).
I control session state between Google/Alexa and Controlicz with OAUTH2 tokens, this is a correct method for managing sessions for APIs (Tokens are now the default method for authenticating APIs. I built an OAUTH2 service, which G/A auth with, and i control those tokens, and what they can (and can't do in Controlicz).
I also control session for your interactions with Controlicz (the web site) with cookies - I can do this, as you're interacting with a client which can handle those - your browser.
The cookie.sid you talk about in terms of 'session' is from your Domoticz, and then, perversely, Controlicz becomes the client, and i'd have to persist the cookie. It is possible that I could obtain that, persist it 'somewhere' and work out a way of matching that to you as a user (the 'cookie-jar') - but if this is simply to reduce your logging, then the benefit is outweighed by effort, and the negative effect on Controlicz as a service (i'd have to store those cookies, and manage them for validity etc).


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

Re: Controlicz - Domoticz to Google Home/Assistant integration

Posted: Tuesday 17 April 2018 15:33
by lupo2a
I have a google home mini
Can I be a tester of Controlicz?