Page 13 of 19

Re: Domoticz-Google-Assistant (dzga)

Posted: Sunday 05 June 2022 18:09
by Micha123
possible to add MQTT client gateway connection ? domoticz wil imedialy report state to DZGA with it. it worked fine with homebridge, the states are imedialy reported from domoticz to homebridge. is it possible to add it to dzga ? if then a switch wil be switched in Domoticz then the state wil be imedialy report to dzga and google home also.

and add sensors (temp/hum) sensors wil be fine and not show them as thermostats (i have a lot of them)

thank you, realy nice work with dzga

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 04 August 2022 14:04
by Xavier82
Hi,

Does somebody have a solution for dimmers (Shelly Dimmer2) in DZGA?
Shelly Dimmer 2 comes as "Colorswitch" now in DZGA.

I would like to use the command "All lights on" and this command should trigger only those devices which have device type "Light".
When giving that command at this moment also the lights with device type "Colorswitch" are activated.

I hope there is a solution in DZGA for this, because I want to be able to set them to on/off and dimming with %.
When in device configuration device type is set to "Switch" I can only set them on or off.

I'm aware of the feature to use "routines" within Google Home but thats not what I want/the way I want to use this.

Second question:
I have 4 Google Nest Protects 220V installed in our house.
They mainly provide status since they are not something like a switch.
Though I would like to be able to ask by voice command for the status.
Is it perhaps an idea to add a device type like "fire/smoke detector"?

Thanks!

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 19 August 2022 0:22
by meal
Hello,

I have installed successfully Domoticz to Google Home/Assistant (proxy on apache) on my RPI / domoticz configuration (to replace the IFTTT feature which is becoming useless).

In Google Home I synchronize all the devices declared in Domoticz (via HomeGraph) and I am able to control with the voice the devices.

However the control is not precise enough and sometimes I order several devices at the same time because the device names are very similar.

I would like to control the devices more precisely using a shortname.

As described in Domoticz-Google-Assistant I defined in the Device Description the nickname
For example:
<voicecontrol>
nicknames = parterre
</voicecontrol>

But when I say "Allume le parterre" nothing happens.

If somebody has already implemented successfully the nickname feature I would appreciate to share/benefit from his experience.

Many thanks in advance
BR

Re: Domoticz-Google-Assistant (dzga)

Posted: Tuesday 23 August 2022 13:36
by meal
Hello,

The issue is fixed.

I opened Google Home on my iPhone, unlinked my SmartHome application and linked again my SmartHome application to refresh Google Home with the latest information.

BR

Re: Domoticz-Google-Assistant (dzga)

Posted: Sunday 02 October 2022 15:39
by samourai47
Hello
I find this post on discord
What do you think about that...

DGZA is out the 3 october?
unknown.png
unknown.png (151.35 KiB) Viewed 2493 times
Or have you a solution?
Thank's for the help

Re: Domoticz-Google-Assistant (dzga)

Posted: Sunday 02 October 2022 19:09
by mgugu
This concerns all Google projects which are in production mode. Its is normally up to the developer to update.
This does not concern projects in test mode which is (fortunately) the case for the nodered Google smart home project that I use.
I also use Google assistant relay project, in production mode and developer has produced un update, but complete configuration becomes necessary.
The migration process is discussed here https://github.com/greghesp/assistant-relay/issues/272

Re: Domoticz-Google-Assistant (dzga)

Posted: Tuesday 08 November 2022 17:24
by samourai47
hello
Has somebody test the new domoticz release 2022.2 and dgza.
Problems or not? About blinds?
Thank's

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 11 November 2022 13:40
by Pluisje
DewGew wrote: Friday 27 March 2020 8:34 Functions on latest V1.7.2

There is new function to change device type, icon and some behavior depending on the device (e.g open/close instead of on/off).
For fully control you can remove Image_Override from config.
To change device type, add to discription for your device in domoticz:

Code: Select all

<voicecontrol>
  devicetype = oven
</voicecontrol>
or in Device_Config in config.yaml:

Code: Select all

Device_Config:
   212:
     devicetype: 'oven'
Light Device types to choose from is:
light, ac_unit, bathtub, coffemaker, dishwasher, dryer, fan, heater, kettle, media, microwave, outlet, oven, speaker, switch, vacuum, washer, waterheater, window, gate, garage.

For heater, kettle, waterheater, oven you can also use merge_thermo_idx to merge thermostat to control temperature.

Code: Select all

<voicecontrol>
  devicetype = oven
  merge_thermo_idx = 432
</voicecontrol>
Door Contact devices can choose window, gate or garage

Selector devices can choose only vacuum

Feedback is appreciated
Thank you, looking arround on the internet and finally the sollution. Is there a general list for dzga recognition?

Best regards Cees

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 11 November 2022 16:59
by samourai47
For me blinds are correct in domoticz. Open -> open, Closed -> closed
But when i say in ok Google with dgza order are inverted...
To open i must say closed and to close i must say open....

Some idea?

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 11 November 2022 17:44
by samourai47
I find this solution that work's for me

Code: Select all

https://github.com/DewGew/Domoticz-Google-Assistant/issues/285

Re: Domoticz-Google-Assistant (dzga)

Posted: Friday 02 December 2022 12:54
by Xavier82
Hi all,

Since about 1 week I have some issues with Google Home/DZGA.
When using Google Home app and giving a text command I get the error that there are no devices.
So I tried in the Google Home app to reconnect the linked services ([test] Domoticz....) when doing this I get the error "Client_id ******** invalid"
So I deleted the service and re-added the service but still the same issue.
Nothing has changed in the past few months/weeks with the Home app or on AoG/service accounts API's what so ever.
Anybody any idea on how to fix this?

UPDATE:
I created an entire new project following the wiki.
Got the devices back in Google Home app.

Still 1 issue.....

I'm using android (Samsung S22), while pressing the home button, the Google Assistant pops up and I can give voice or text commands.
When giving a text entry like "sync devices" or "all lights on" I get the message (translated from Dutch): "Looks like your lights are not setup. Go to Assistent settings"
Any idea about that?

Re: Domoticz-Google-Assistant (dzga)

Posted: Sunday 11 December 2022 17:51
by WillemK
Hi,

Since a few days I cannot connect anymore to DZGA from Google Home. It started with a total disruption of all the linked 3rd party services in Google Home. Each service directly gave me "could not access..." immediately. After contacting Google they provided me with a solution, which was resetting the Google Home app and Google Play Service and re-updating them. I appeared that I was not the only one experiencing this issue. After applying the proposed solution I was able to link to all 3rd party services I used before except DZGA :( . When trying to link I get the DZGA login screen, but after entering the credentials Google Home gives met the message "Could not reach [test] ...... Please try again."
Any help would be highly appreciated. I am almost pulling my hair out :-(

Thanks in advance!!

Willem

Re: Domoticz-Google-Assistant (dzga)

Posted: Sunday 11 December 2022 21:12
by WillemK
Additional information:

After trying to link I requested the status of DZGA:
Dec 11 21:08:01 domoticz python3[26509]: Google Assistant requests an action.dev
Dec 11 21:08:01 domoticz python3[26509]: 'Camera_Stream'

What does it mean??

Re: Domoticz-Google-Assistant (dzga)

Posted: Monday 12 December 2022 17:06
by DewGew
WillemK wrote: Sunday 11 December 2022 21:12 Additional information:

After trying to link I requested the status of DZGA:
Dec 11 21:08:01 domoticz python3[26509]: Google Assistant requests an action.dev
Dec 11 21:08:01 domoticz python3[26509]: 'Camera_Stream'

What does it mean??
What does the log say?

Re: Domoticz-Google-Assistant (dzga)

Posted: Monday 12 December 2022 21:08
by WillemK
Hi DewGew,

This is what I found in de log:

2022-12-12 21:10:42 - INFO - Connecting to Domoticz on http://192.168.1.55:8084
2022-12-12 21:10:42 - ERROR - Service account key is not found. Report state will be unavailable
2022-12-12 21:10:42 - INFO - Using SSL connection
2022-12-12 21:10:42 - INFO - ========
2022-12-12 21:10:42 - INFO - Started DZGA v1.22.24 server at port 3030
2022-12-12 21:10:42 - INFO -
2022-12-12 21:10:42 - INFO - Visit https://localhost:3030/settings to access the user interface
2022-12-12 21:10:42 - INFO -
2022-12-12 21:10:42 - INFO - =========
2022-12-12 21:10:42 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2022-12-12 21:10:42 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2022-12-12 21:10:42 - INFO - https://[your public url]/smarthome
2022-12-12 21:10:42 - INFO -
2022-12-12 21:10:42 - INFO - In Account linking, set the Authorization URL to:
2022-12-12 21:10:42 - INFO - https://[your public url]/oauth
2022-12-12 21:10:42 - INFO -
2022-12-12 21:10:42 - INFO - Then set the Token URL to:
2022-12-12 21:10:42 - INFO - https://[your public url]/token
2022-12-12 21:10:42 - INFO -
2022-12-12 21:10:42 - INFO - Finally press 'SAVE' and then 'TEST' button
2022-12-12 21:10:42 - INFO - =======
2022-12-12 21:17:41 - INFO - {
"inputs": [
{
"intent": "action.devices.SYNC"
}
],
"requestId": "18341773653290464337"
}
2022-12-12 21:17:41 - INFO - Google Assistant requests an action.devices.SYNC
2022-12-12 21:17:42 - ERROR - 'Camera_Stream'
2022-12-12 21:17:42 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.SYNC'}], 'requestId': '18341773653290464337'}: {'errorCode': 'unknownError'}
2022-12-12 21:17:42 - INFO - {
"inputs": [
{
"intent": "action.devices.SYNC"
}
],
"requestId": "6242210263203520532"
}
2022-12-12 21:17:42 - INFO - Google Assistant requests an action.devices.SYNC
2022-12-12 21:17:42 - ERROR - 'Camera_Stream'
2022-12-12 21:17:42 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.SYNC'}], 'requestId': '6242210263203520532'}: {'errorCode': 'unknownError'}
2022-12-12 21:17:42 - INFO - {
"inputs": [
{
"intent": "action.devices.SYNC"
}
],
"requestId": "15469753967759146815"
}
2022-12-12 21:17:42 - INFO - Google Assistant requests an action.devices.SYNC
2022-12-12 21:17:43 - ERROR - 'Camera_Stream'
2022-12-12 21:17:43 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.SYNC'}], 'requestId': '15469753967759146815'}: {'errorCode': 'unknownError'}

Re: Domoticz-Google-Assistant (dzga)

Posted: Tuesday 13 December 2022 7:14
by DewGew
Change this in config.yaml and try again:

Code: Select all

Camera_Stream:
  Enabled: false

Re: Domoticz-Google-Assistant (dzga)

Posted: Tuesday 13 December 2022 13:39
by WillemK
It works again with this addition in the config.yaml ! Thank you DewGew!

Just curious, do you know why this is now necessary? Before the link with Google Home worked fine without this parameter.

Re: Domoticz-Google-Assistant (dzga)

Posted: Monday 19 December 2022 7:26
by DewGew
WillemK wrote: Tuesday 13 December 2022 13:39 It works again with this addition in the config.yaml ! Thank you DewGew!

Just curious, do you know why this is now necessary? Before the link with Google Home worked fine without this parameter.
I added some new funktions but that is fixed now in latest

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 22 December 2022 12:11
by kofec
Hi, I have a question regarding sync. Is there an easy way to call "https://[YOUR REVERSE PROXY URL]/sync" from dzVents or any command line instruction which trigger sync. Sync is working fine but first we need to authorized and click "SIGN IN". Maybe there is a way to using wget, curl ?

Re: Domoticz-Google-Assistant (dzga)

Posted: Thursday 22 December 2022 15:55
by DewGew
kofec wrote: Thursday 22 December 2022 12:11 Hi, I have a question regarding sync. Is there an easy way to call "https://[YOUR REVERSE PROXY URL]/sync" from dzVents or any command line instruction which trigger sync. Sync is working fine but first we need to authorized and click "SIGN IN". Maybe there is a way to using wget, curl ?
Maybe try somwething like this:

Code: Select all

local idx = 123
local url = '192.168.1.123:3030'
local token = 'YOURCOOLTOKEN'  --You can find your authToken in dzga settings page

return {
	on = {
		devices = {idx}
	},
	execute = function(domoticz, item)
	    
        domoticz.log(dev, domoticz.LOG_INFO)

		if (item.active) then
            domoticz.openURL({
				url = 'http://'..url..'/sync',
				method = 'POST',
				headers = {
				    Authorization = 'Bearer '..token
				    },
				    
			})
			domoticz.log('Syncing devices with dzga.', domoticz.LOG_INFO)
		end

	end
}