Domoticz-Google-Assistant (dzga) Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
mrfatmen
Posts: 2
Joined: Thursday 24 September 2020 8:41
Target OS: Windows
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by mrfatmen »

DewGew wrote: Thursday 01 October 2020 8:03
Moosjes wrote: Monday 28 September 2020 10:05
mrfatmen wrote: Thursday 24 September 2020 8:49 Maybe i didn't look right.
I have 2 rollerblinds which are set in Domoticz as "Blinds percentage inverted"
Google reconized them as blinds but no percentage and there not inverted.
I now have to say open to close them and Close to open them.

Is this a setting i can change?
I am having the same issue. No solution yet
I have added blinds inverted to beta branch, try it out. I dont use inverted so I need some feedback.
Hi DewGew,

I'm just back from vacation and changed dzga to the beta branch.
Now the blinds are working perfect even with the percentage commands.

Thank you for the quick fix.
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

k20human wrote: Friday 02 October 2020 20:03
DewGew wrote: Friday 02 October 2020 19:45
k20human wrote: Friday 02 October 2020 17:06 Hi,

I try to use dzga but wihtout success for now ...
I follow every steps on the wiki : https://www.domoticz.com/wiki/Google_Assistant

My dzga is successfully installed and accessible via HTTPS (Let's Encrypt already use for others websites on the Rasp, like Domoticz)

When i try to add my application on my Google Home app i have an error
When i watch the logs on dzga i see this :

Code: Select all

2020-10-02 16:50:15 - DEBUG - Host: assistant.emee.info
X-Real-IP: 66.249.93.107
X-Forwarded-For: 66.249.93.107
Connection: close
Content-Length: 80
Content-Type: application/json;charset=UTF-8
Google-Assistant-API-Version: v1
Authorization: Bearer XXXXXXX
User-Agent: Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,br
In my nginx logs i see this :

Code: Select all

66.249.93.107 - - [02/Oct/2020:16:54:24 +0200] "POST /smarthome HTTP/1.1" 404 67 "-" "Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)"
I try this url POST /smarthome on Postman and it give me this response :

Code: Select all

Page not found!: not authorized access!!
What can be wrong with my configuration ?

Thanks
Can you add dzga ([test]testapp)in google home app?
No i can't add dzga. I have the 404 error in my logs when i try to add it.

See error in attachement when i click on my test app
You missed a step somewhere during installation. Restart from scratch.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

DewGew wrote: Saturday 03 October 2020 9:53 You missed a step somewhere during installation. Restart from scratch.
I delete my Actions / GCP project and create a new one.
It's work now perflecly.

Amazing work, thank !
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

So, everything works fine except these problems:

- I can't merge my heater and its thermostat or temperature and thermostat, i see all of them in Google Assistant (no error in logs)

Code: Select all

Device_Config:
  108:
    merge_thermo_idx: '111'
    devicetype: 'heater'
- My scenes don't belong to room. I add this in my config but without success (see attachment) :

Code: Select all

Scene_Config:
  6:
    room: 'Chambre parents'
    nicknames:
        - 'Chambre'
  10:
    room: 'Rez-de-chaussée'
- When i try to sync devices i have this error in logs (maybe problem above are linked to this):

Code: Select all

2020-10-03 20:07:18 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-03 20:07:18 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Light147'}, {'id': 'ColorSwitch51'}, {'id': 'Group8'}, {'id': 'PushButton122'}, {'id': 'Selector179'}, {'id': 'PushButton222'}, {'id': 'PushButton131'}, {'id': 'PushButton139'}, {'id': 'Light248'}, {'id': 'Light69'}, {'id': 'Sensor68'}, {'id': 'Speaker56'}, {'id': 'Thermostat112'}, {'id': 'Group6'}, {'id': 'Group7'}, {'id': 'Sensor245'}, {'id': 'ColorSwitch172'}, {'id': 'Light129'}, {'id': 'Light250'}, {'id': 'Selector133'}, {'id': 'Sensor166'}, {'id': 'Sensor164'}, {'id': 'Selector48'}, {'id': 'Selector178'}, {'id': 'Group3'}, {'id': 'ColorSwitch197'}, {'id': 'Light141'}, {'id': 'ColorSwitch95'}, {'id': 'PushButton75'}, {'id': 'Selector52'}, {'id': 'Group1'}, {'id': 'Group2'}, {'id': 'Light47'}, {'id': 'Thermostat113'}, {'id': 'PushButton132'}, {'id': 'ColorSwitch79'}, {'id': 'Light247'}, {'id': 'Light192'}, {'id': 'Group5'}, {'id': 'Group9'}, {'id': 'ColorSwitch173'}, {'id': 'Light177'}, {'id': 'Light201'}, {'id': 'Light66'}, {'id': 'ColorSwitch198'}, {'id': 'Light64'}, {'id': 'Selector54'}, {'id': 'ColorSwitch171'}, {'id': 'Light45'}, {'id': 'Scene10'}]}}], 'requestId': '10982972176642769495'}: {'errorCode': 'unknownError'}
Attachments
2020-10-03_2013.png
2020-10-03_2013.png (37.12 KiB) Viewed 3033 times
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

k20human wrote: Saturday 03 October 2020 20:14 So, everything works fine except these problems:

- I can't merge my heater and its thermostat or temperature and thermostat, i see all of them in Google Assistant (no error in logs)

Code: Select all

Device_Config:
  108:
    merge_thermo_idx: '111'
    devicetype: 'heater'
- My scenes don't belong to room. I add this in my config but without success (see attachment) :

Code: Select all

Scene_Config:
  6:
    room: 'Chambre parents'
    nicknames:
        - 'Chambre'
  10:
    room: 'Rez-de-chaussée'
- When i try to sync devices i have this error in logs (maybe problem above are linked to this):

Code: Select all

2020-10-03 20:07:18 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-03 20:07:18 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Light147'}, {'id': 'ColorSwitch51'}, {'id': 'Group8'}, {'id': 'PushButton122'}, {'id': 'Selector179'}, {'id': 'PushButton222'}, {'id': 'PushButton131'}, {'id': 'PushButton139'}, {'id': 'Light248'}, {'id': 'Light69'}, {'id': 'Sensor68'}, {'id': 'Speaker56'}, {'id': 'Thermostat112'}, {'id': 'Group6'}, {'id': 'Group7'}, {'id': 'Sensor245'}, {'id': 'ColorSwitch172'}, {'id': 'Light129'}, {'id': 'Light250'}, {'id': 'Selector133'}, {'id': 'Sensor166'}, {'id': 'Sensor164'}, {'id': 'Selector48'}, {'id': 'Selector178'}, {'id': 'Group3'}, {'id': 'ColorSwitch197'}, {'id': 'Light141'}, {'id': 'ColorSwitch95'}, {'id': 'PushButton75'}, {'id': 'Selector52'}, {'id': 'Group1'}, {'id': 'Group2'}, {'id': 'Light47'}, {'id': 'Thermostat113'}, {'id': 'PushButton132'}, {'id': 'ColorSwitch79'}, {'id': 'Light247'}, {'id': 'Light192'}, {'id': 'Group5'}, {'id': 'Group9'}, {'id': 'ColorSwitch173'}, {'id': 'Light177'}, {'id': 'Light201'}, {'id': 'Light66'}, {'id': 'ColorSwitch198'}, {'id': 'Light64'}, {'id': 'Selector54'}, {'id': 'ColorSwitch171'}, {'id': 'Light45'}, {'id': 'Scene10'}]}}], 'requestId': '10982972176642769495'}: {'errorCode': 'unknownError'}
First it seems to be something wrong with your json file. Try generate a new one, make sure its correct project. After edit your config you have to restart dzga then make a sync with voice (if json file is corrupt) or with button in ui.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

DewGew wrote: Friday 02 October 2020 19:42
Xavier82 wrote: Friday 02 October 2020 14:14 Hi DewGew,

I hope you can help.
I'm helping a friend out to install DZGA.
Setup:
Rpi3b with Domoticz installed, DZGA installed, pngrok installed (with Python3.7)
So far so good.
In DZGA I also see the devices within Domitcz.
When access to 3030/settings and login, I completely follow (already tried 3 times all over) the manual in the wiki to setup Google actions.
But I can't get it to work.
It looks like things have changes in manual or at Google.

I have added the smart-home-key.json file in the config folder.
I have entered the ngrok url and the auth and token url in action console.
Client Id is exported out of the smart-home-key.json file.
The client secret is exported out the "client_secret_XXX.JSON file from the Google Cloud Platform under "OAuth 2.0 Client-ID's".

Followed steps for account linking.
When clicking Sync devices in dzga I get the error:
Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync

What is going wrong here?
How can I fix this?
You have to download and rename the json file you can not copy and paste from the file and make sure its correct project.
Try also to delete the json file and then sync with voice, if that works json file is corrupted
There is only 1 project...
I downloaded the json and renamed it to "smart-home-key.json"

Will try to sync with voice.
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

DewGew wrote: Monday 05 October 2020 7:40
k20human wrote: Saturday 03 October 2020 20:14 So, everything works fine except these problems:

- I can't merge my heater and its thermostat or temperature and thermostat, i see all of them in Google Assistant (no error in logs)

Code: Select all

Device_Config:
  108:
    merge_thermo_idx: '111'
    devicetype: 'heater'
- My scenes don't belong to room. I add this in my config but without success (see attachment) :

Code: Select all

Scene_Config:
  6:
    room: 'Chambre parents'
    nicknames:
        - 'Chambre'
  10:
    room: 'Rez-de-chaussée'
- When i try to sync devices i have this error in logs (maybe problem above are linked to this):

Code: Select all

2020-10-03 20:07:18 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-03 20:07:18 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Light147'}, {'id': 'ColorSwitch51'}, {'id': 'Group8'}, {'id': 'PushButton122'}, {'id': 'Selector179'}, {'id': 'PushButton222'}, {'id': 'PushButton131'}, {'id': 'PushButton139'}, {'id': 'Light248'}, {'id': 'Light69'}, {'id': 'Sensor68'}, {'id': 'Speaker56'}, {'id': 'Thermostat112'}, {'id': 'Group6'}, {'id': 'Group7'}, {'id': 'Sensor245'}, {'id': 'ColorSwitch172'}, {'id': 'Light129'}, {'id': 'Light250'}, {'id': 'Selector133'}, {'id': 'Sensor166'}, {'id': 'Sensor164'}, {'id': 'Selector48'}, {'id': 'Selector178'}, {'id': 'Group3'}, {'id': 'ColorSwitch197'}, {'id': 'Light141'}, {'id': 'ColorSwitch95'}, {'id': 'PushButton75'}, {'id': 'Selector52'}, {'id': 'Group1'}, {'id': 'Group2'}, {'id': 'Light47'}, {'id': 'Thermostat113'}, {'id': 'PushButton132'}, {'id': 'ColorSwitch79'}, {'id': 'Light247'}, {'id': 'Light192'}, {'id': 'Group5'}, {'id': 'Group9'}, {'id': 'ColorSwitch173'}, {'id': 'Light177'}, {'id': 'Light201'}, {'id': 'Light66'}, {'id': 'ColorSwitch198'}, {'id': 'Light64'}, {'id': 'Selector54'}, {'id': 'ColorSwitch171'}, {'id': 'Light45'}, {'id': 'Scene10'}]}}], 'requestId': '10982972176642769495'}: {'errorCode': 'unknownError'}
First it seems to be something wrong with your json file. Try generate a new one, make sure its correct project. After edit your config you have to restart dzga then make a sync with voice (if json file is corrupt) or with button in ui.
Hi,

I check my service account again but i have same error.
devices:requestSync request works as expected (HTTP code 200). The error occur only on devices:reportStateAndNotification (HTTP error code 400 not 403).

I just add a new device and it has been add on my Google Assistant. But i can't see new Scene / Group and no merged elements :(
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

k20human wrote: Monday 05 October 2020 11:42
DewGew wrote: Monday 05 October 2020 7:40
k20human wrote: Saturday 03 October 2020 20:14 So, everything works fine except these problems:

- I can't merge my heater and its thermostat or temperature and thermostat, i see all of them in Google Assistant (no error in logs)

Code: Select all

Device_Config:
  108:
    merge_thermo_idx: '111'
    devicetype: 'heater'
- My scenes don't belong to room. I add this in my config but without success (see attachment) :

Code: Select all

Scene_Config:
  6:
    room: 'Chambre parents'
    nicknames:
        - 'Chambre'
  10:
    room: 'Rez-de-chaussée'
- When i try to sync devices i have this error in logs (maybe problem above are linked to this):

Code: Select all

2020-10-03 20:07:18 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-10-03 20:07:18 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'Light147'}, {'id': 'ColorSwitch51'}, {'id': 'Group8'}, {'id': 'PushButton122'}, {'id': 'Selector179'}, {'id': 'PushButton222'}, {'id': 'PushButton131'}, {'id': 'PushButton139'}, {'id': 'Light248'}, {'id': 'Light69'}, {'id': 'Sensor68'}, {'id': 'Speaker56'}, {'id': 'Thermostat112'}, {'id': 'Group6'}, {'id': 'Group7'}, {'id': 'Sensor245'}, {'id': 'ColorSwitch172'}, {'id': 'Light129'}, {'id': 'Light250'}, {'id': 'Selector133'}, {'id': 'Sensor166'}, {'id': 'Sensor164'}, {'id': 'Selector48'}, {'id': 'Selector178'}, {'id': 'Group3'}, {'id': 'ColorSwitch197'}, {'id': 'Light141'}, {'id': 'ColorSwitch95'}, {'id': 'PushButton75'}, {'id': 'Selector52'}, {'id': 'Group1'}, {'id': 'Group2'}, {'id': 'Light47'}, {'id': 'Thermostat113'}, {'id': 'PushButton132'}, {'id': 'ColorSwitch79'}, {'id': 'Light247'}, {'id': 'Light192'}, {'id': 'Group5'}, {'id': 'Group9'}, {'id': 'ColorSwitch173'}, {'id': 'Light177'}, {'id': 'Light201'}, {'id': 'Light66'}, {'id': 'ColorSwitch198'}, {'id': 'Light64'}, {'id': 'Selector54'}, {'id': 'ColorSwitch171'}, {'id': 'Light45'}, {'id': 'Scene10'}]}}], 'requestId': '10982972176642769495'}: {'errorCode': 'unknownError'}
First it seems to be something wrong with your json file. Try generate a new one, make sure its correct project. After edit your config you have to restart dzga then make a sync with voice (if json file is corrupt) or with button in ui.
Hi,

I check my service account again but i have same error.
devices:requestSync request works as expected (HTTP code 200). The error occur only on devices:reportStateAndNotification (HTTP error code 400 not 403).

I just add a new device and it has been add on my Google Assistant. But i can't see new Scene / Group and no merged elements :(
For scenes there is no touch control for those only for groups. works only with voice. To find your scenes in google home app goto assistant-settings --> home control --> click tab scenes.
There is three things that can get this issue:
  • Corrupt json file. (download and rename, not copy and paste the content
  • Config is missconfigured somewhere
  • Using special characters in names
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
k20human
Posts: 6
Joined: Friday 02 October 2020 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by k20human »

Ok for scenes, i will try this.

For the 400 error, it seems it disapear ... I change some devices, maybe it's one of them. Thanks for your help
transalpes
Posts: 10
Joined: Thursday 17 October 2019 12:57
Target OS: Linux
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by transalpes »

Hello DewGew,

I continue to advance in my construction, and I encounter the following difficulty:
I have a device selector in domoticz:
Capture d-ecran du 2020-10-02 23-33-30.png
Capture d-ecran du 2020-10-02 23-33-30.png (20.5 KiB) Viewed 2950 times
it appears well in "domoticz google assistant" as a selector:
Capture d-ecran du 2020-10-02 23-34-46.png
Capture d-ecran du 2020-10-02 23-34-46.png (5.27 KiB) Viewed 2950 times
But in google Home it is recognized as a simple switch "on and off":
20201003_103210.jpg
20201003_103210.jpg (17.86 KiB) Viewed 2950 times
I don't understand my mistake, can you help me please,
thank you for your return

Friendship
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

transalpes wrote: Wednesday 07 October 2020 9:30 Hello DewGew,

I continue to advance in my construction, and I encounter the following difficulty:
I have a device selector in domoticz:
Capture d-ecran du 2020-10-02 23-33-30.png

it appears well in "domoticz google assistant" as a selector:
Capture d-ecran du 2020-10-02 23-34-46.png

But in google Home it is recognized as a simple switch "on and off":
20201003_103210.jpg

I don't understand my mistake, can you help me please,
thank you for your return

Friendship
There is no touch control for selector. After all is voice assistant ;) it should work with voice e.g:
User:Hey Google, Activate Normal on Gestion Chauffage.
Google Assistant: Activates Normal on Gestion Chauffage.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
lec668
Posts: 13
Joined: Sunday 29 January 2017 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris / France !
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by lec668 »

Hi,
Thanks for the GREAT job, I just successfuly configured dgza, works perfectly with french !

I'm trying to improve my setup security :

Is there a way to get dzga "bad authentications" with corresponding source iPs in the logs ?

I'm not keen on opening https access without a way to check everything is running as it should.

I restricted access to dsga with a few firewall rules, only from identified Google servers, but you never know.

Thanks again
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

lec668 wrote: Wednesday 07 October 2020 22:44 Hi,
Thanks for the GREAT job, I just successfuly configured dgza, works perfectly with french !

I'm trying to improve my setup security :

Is there a way to get dzga "bad authentications" with corresponding source iPs in the logs ?

I'm not keen on opening https access without a way to check everything is running as it should.

I restricted access to dsga with a few firewall rules, only from identified Google servers, but you never know.

Thanks again
If you are running on a RPI you can use fail2ban
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
lec668
Posts: 13
Joined: Sunday 29 January 2017 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris / France !
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by lec668 »

DewGew:

Thanks for the quick answer.

Yes, I 'm using an RPI, and tested fail2ban 2 years ago.
The constant logs parsing on the SD card slowed down terribly the system,
so I'm thinking about a simple/light solution.

Do you know the log I could parse to check for authentication errors ?

Regards!
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

Xavier82 wrote: Monday 05 October 2020 9:31
DewGew wrote: Friday 02 October 2020 19:42
Xavier82 wrote: Friday 02 October 2020 14:14 Hi DewGew,

I hope you can help.
I'm helping a friend out to install DZGA.
Setup:
Rpi3b with Domoticz installed, DZGA installed, pngrok installed (with Python3.7)
So far so good.
In DZGA I also see the devices within Domitcz.
When access to 3030/settings and login, I completely follow (already tried 3 times all over) the manual in the wiki to setup Google actions.
But I can't get it to work.
It looks like things have changes in manual or at Google.

I have added the smart-home-key.json file in the config folder.
I have entered the ngrok url and the auth and token url in action console.
Client Id is exported out of the smart-home-key.json file.
The client secret is exported out the "client_secret_XXX.JSON file from the Google Cloud Platform under "OAuth 2.0 Client-ID's".

Followed steps for account linking.
When clicking Sync devices in dzga I get the error:
Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync

What is going wrong here?
How can I fix this?
You have to download and rename the json file you can not copy and paste from the file and make sure its correct project.
Try also to delete the json file and then sync with voice, if that works json file is corrupted
There is only 1 project...
I downloaded the json and renamed it to "smart-home-key.json"

Will try to sync with voice.
So we removed all of the projects in Google Cloud Platform.
Waited for 2 days
Then created a new project in Google Cloud Platform.
Followed (checked with 4 eyes!) the instruction.
Downloaded the .json file, then renamed the file to "smart-home-key.json" uploaded the file to the Domoticz-Google-Assistant/config folder as smart-home-key.json.
Restarted dzga.
Logged on to dzga
Copied the fullfilment url of ngrok to Google
Copied the Authorization url of ngrok to Google
Copied the Token url of ngrok to Google.
Saved
pressed Test
Then went to DZGA for sync devices
The again this error:
"Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync"

When checking on https://console.cloud.google.com/apis/ I see:
1 API key with the name "Browser key (auto created by Firebase)
3 "OAuth 2.0 Client-ID's:
Smart-Home-DZGA
Web client (auto created by Google Service)
New Actions on Google App
1 service account: [email protected].

Strange thing is that the OAuth json files (client secret) contain other client ID number then the created service account with the smart-home-key.json file.

Please help, what are we doing wrong?
ressof
Posts: 60
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by ressof »

Hi
I try to set set a selector switch to type vacuum and us this code in description

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
But then when i reload dzga it says it cant find any devices from domoticz. Are there any certain level names you must use when devicetype is vacuum?
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: Domoticz-Google-Assistant (dzga)

Post by DewGew »

ressof wrote: Monday 12 October 2020 8:11 Hi
I try to set set a selector switch to type vacuum and us this code in description

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
But then when i reload dzga it says it cant find any devices from domoticz. Are there any certain level names you must use when devicetype is vacuum?
Are you running master or beta? Selector switch or on/off switch?.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
ressof
Posts: 60
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by ressof »

DewGew wrote: Monday 12 October 2020 8:38
ressof wrote: Monday 12 October 2020 8:11 Hi
I try to set set a selector switch to type vacuum and us this code in description

Code: Select all

<voicecontrol>
  devicetype = vacuum
</voicecontrol>
But then when i reload dzga it says it cant find any devices from domoticz. Are there any certain level names you must use when devicetype is vacuum?
Are you running master or beta? Selector switch or on/off switch?.
Beta and selector switch
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

Hi,

When I want to check the temperature with "Hey Google, whats the temperature? " I get an error.
When sync devices I can see the temperature device (with the actual temp).
This is what I got in DZGA devices:
19 ToonBurnerName Selector Off
21 Toon Scenes Selector Set Level: 50 % Woonkamer
23 Toon Auto Program Selector Set Level: 30 %
24 ToonTemperature Temperature 21.1 C Woonkamer
25 ToonThermostat Thermostat 21.0 Woonkamer

And this is what I have in config:
Device_Config:
123: # For thermostat devices only, Bug Thermostat idx must be a number above Temp idx
room: 'Woonkamer'
actual_temp_idx: '24'
selector_modes_idx: '21'

How can I fix this issue?
Xavier82
Posts: 178
Joined: Tuesday 07 June 2016 22:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Xavier82 »

Xavier82 wrote: Friday 09 October 2020 17:54
Xavier82 wrote: Monday 05 October 2020 9:31
DewGew wrote: Friday 02 October 2020 19:42
You have to download and rename the json file you can not copy and paste from the file and make sure its correct project.
Try also to delete the json file and then sync with voice, if that works json file is corrupted
There is only 1 project...
I downloaded the json and renamed it to "smart-home-key.json"

Will try to sync with voice.
So we removed all of the projects in Google Cloud Platform.
Waited for 2 days
Then created a new project in Google Cloud Platform.
Followed (checked with 4 eyes!) the instruction.
Downloaded the .json file, then renamed the file to "smart-home-key.json" uploaded the file to the Domoticz-Google-Assistant/config folder as smart-home-key.json.
Restarted dzga.
Logged on to dzga
Copied the fullfilment url of ngrok to Google
Copied the Authorization url of ngrok to Google
Copied the Token url of ngrok to Google.
Saved
pressed Test
Then went to DZGA for sync devices
The again this error:
"Page not found!: 404 Client Error: Not Found for url: https://homegraph.googleapis.com/v1/devices:requestSync"

When checking on https://console.cloud.google.com/apis/ I see:
1 API key with the name "Browser key (auto created by Firebase)
3 "OAuth 2.0 Client-ID's:
Smart-Home-DZGA
Web client (auto created by Google Service)
New Actions on Google App
1 service account: [email protected].

Strange thing is that the OAuth json files (client secret) contain other client ID number then the created service account with the smart-home-key.json file.

Please help, what are we doing wrong?
We finally got it to work!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest