Python Plugin: Domoticz-Google-Plugin
Moderator: leecollings
-
- Posts: 65
- Joined: Sunday 09 February 2020 11:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Holland
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Today the notification was translated to english, but my systems works on dutch, it was very funny. I was happy, because the speech was finally working again. I found out that domoticz was displayed in english too. I put my domoticz back in dutch, and the speech was stop working again. I hear a sound, as if the Google home is starting to say something, But then nothing happends.
Anyone else? I have changed the Pychromecast and Zerconf versions
Anyone else? I have changed the Pychromecast and Zerconf versions
Raspberry Pi 4 - Raspbian bullseye - Python 3.9 - stable
Dashticz on apache2 - Mqqt - node red
Zigate - USB Tll - Philips hue - Ikea - Innr - Xiaomi - TPlink - Nest -v3
Dashticz on apache2 - Mqqt - node red
Zigate - USB Tll - Philips hue - Ikea - Innr - Xiaomi - TPlink - Nest -v3
-
- Posts: 65
- Joined: Sunday 09 February 2020 11:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Holland
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
After a year of good work, the notification has stopped completely. In the log it says notification succeed. But nothing happends. Am i the only one?
Raspberry Pi 4 - Raspbian bullseye - Python 3.9 - stable
Dashticz on apache2 - Mqqt - node red
Zigate - USB Tll - Philips hue - Ikea - Innr - Xiaomi - TPlink - Nest -v3
Dashticz on apache2 - Mqqt - node red
Zigate - USB Tll - Philips hue - Ikea - Innr - Xiaomi - TPlink - Nest -v3
-
- Posts: 7
- Joined: Wednesday 25 September 2019 17:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Hi,
I have same problem. Notification no works. When I send command domoticz.notify("","Hello","","","","Living room",domoticz.NSS_GOOGLE_DEVICES) nothing happens. I can see in log file only
I have same problem. Notification no works. When I send command domoticz.notify("","Hello","","","","Living room",domoticz.NSS_GOOGLE_DEVICES) nothing happens. I can see in log file only
Code: Select all
2021-04-05 15:49:37.979 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2021-04-05 15:49:37.980 Status: Notification:
- TiXav
- Posts: 40
- Joined: Saturday 28 November 2015 22:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: France
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Hello,
I think, I found issue :
this plugin use gtts and the mp3 downloaded are always to 0kb
--> update gtts solve the issue for me
pip3 install gTTS-token --upgrade
pip3 install gTTS --upgrade
I think, I found issue :
this plugin use gtts and the mp3 downloaded are always to 0kb
--> update gtts solve the issue for me
pip3 install gTTS-token --upgrade
pip3 install gTTS --upgrade
-
- Posts: 76
- Joined: Wednesday 13 February 2019 18:09
- Target OS: Windows
- Domoticz version: 2023.1
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Hello Dennis,dennis075 wrote: ↑Thursday 24 September 2020 21:30 I had the same thing this afternoon but managed to fix this! Seems there is something wrong in the latest versions of some packages.
- Uninstall zeroconf and reinstall with "pip3 install zeroconf==0.25.1"
- Uninstall pychromecast and reinstall with "pip3 install pychromecast==6.0.0"
After restart of domoticz it should work. Let me know if it isn't!
while this solution worked for a year now, since today the Chromecast is no longer connected. Devices are red. No errors, warnings and debug messages in the domoticz log, but it is just not working. The CC itself is functioning ok in the network (casting from android and from chrome browsers works fine).
Restarting Domoticz, updating to latest beta, nothing helps.
Edit: I see this error in the log when changeing the volume slider of the chromecast in Domoticz:
Code: Select all
2022-02-11 20:41:42.742 Status: User: Admin (IP: 192.168.3.25) initiated a switch command (1796/CC TV Huiskamer Volume/Set Level)
2022-02-11 20:41:42.802 Error: Google Devices: 'onCommand' failed 'KeyError':'('51b18445-ffdf-8acf-6fde-7da6bc6f0942',)'.
2022-02-11 20:41:42.802 Error: Google Devices: Exception traceback:
2022-02-11 20:41:42.802 Error: Google Devices: ----> Line 723 in '()', function Unknown
2022-02-11 20:41:42.802 Error: Google Devices: ----> Line 616 in '()', function Unknown
I think the issue exists since I run the latest stable version of Domoticz (5th of february I installed this version and the logs of the devices show no entries since that time). Can you help me troubleshooting this?
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
hello!
is this plugin still working?
im trying to setup the notifications to a google home, in a raspberry pi but i cant
is this plugin still working?
im trying to setup the notifications to a google home, in a raspberry pi but i cant

-
- Posts: 102
- Joined: Tuesday 04 March 2014 10:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Surrey, UK
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
I had it working, I know you have to install a specific version & then do some hacks to the scripts.
If I remember its all in this thread.
If I remember its all in this thread.
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
-
- Posts: 107
- Joined: Thursday 03 November 2016 10:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Is a anyone still using the plugin https://github.com/dnpwwo/Domoticz-Google-Plugin? I used it a while and recently I moved house together with my domoticz installation and with more google devices... So I deleted the previous devices... All new devices are well discovered and created however domoticz is now crashing at least once a day... The crash report indicates clearly this plugin as a reason... Additionally when I disable the plugin, I have no crashes.
I have no clue why I have crashes now (and not in the past). I still use the same configuration. I read in the somewhere to install elder version of zeroconf (however I never did this before). I see that the plugin is not really maintained neither (no reaction on the issues, no code change, ...).
Has anyone some experience how to solve? Or an alternative? I am not that fan of downgrading the zeroconf...
Help is welcome!
Thanks!
I have no clue why I have crashes now (and not in the past). I still use the same configuration. I read in the somewhere to install elder version of zeroconf (however I never did this before). I see that the plugin is not really maintained neither (no reaction on the issues, no code change, ...).
Has anyone some experience how to solve? Or an alternative? I am not that fan of downgrading the zeroconf...
Help is welcome!
Thanks!
- Thuis
- Posts: 267
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Python Version: 3.10.6
Version: 2023.2 (build 15459)
Nest mini: Initialized version 2.0.5, author 'dnpwwo'
No errors, but devices are not created, sadly. Any one up for some ideas ?
i have:
gTTS 2.2.1
gTTS-token 1.1.4
protobuf 3.20.0
PyChromecast 6.0.0
zeroconf 0.25.1
Thanks in advance.
Version: 2023.2 (build 15459)
Nest mini: Initialized version 2.0.5, author 'dnpwwo'
No errors, but devices are not created, sadly. Any one up for some ideas ?
i have:
gTTS 2.2.1
gTTS-token 1.1.4
protobuf 3.20.0
PyChromecast 6.0.0
zeroconf 0.25.1
Thanks in advance.
I Love Domoticz ! And the community around it :-)
-
- Posts: 272
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
For me on windows it still works. One but i use Cast combined with curl (direct tts conversion) for speech announcements.
curl.exe -x proxy:port -s -G "http://translate.google.com/translate_tts" --data "ie=UTF-8&total=1&idx=0&client=tw-ob&&tl=nl" --data-urlencode "q='..TEXTMESSAGE.'" -A "Mozilla" --compressed -o message.mp3'
The hardware is still working, i see songs from spotify, can adjust volume & slide the timing of a song.
Big diff is that i am still on a lower python version and higher package versions :
3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]
gTTS 2.3.2
protobuf 3.20.3
PyChromecast 13.0.7
I think you need to update the packages.
On some ocasions i have an empty mp3 thats because the command is cutoff due to a timeout ( slow google tts response) But for me in >90% of the time it just works great.
Why i split the download of the MP3 and the announcements ? Due to timeouts it was unreliable + this way on windows i have more control on what is happing. Now i see some times a delay upto 40 sec in the announcement. I also discovered that a wrong configuration on a managed switch can kill the announcements on google devices. (simply give a speach command to broadcast a message made me discover this issue as some speakers did not work.)
Hope this helps some of you
curl.exe -x proxy:port -s -G "http://translate.google.com/translate_tts" --data "ie=UTF-8&total=1&idx=0&client=tw-ob&&tl=nl" --data-urlencode "q='..TEXTMESSAGE.'" -A "Mozilla" --compressed -o message.mp3'
The hardware is still working, i see songs from spotify, can adjust volume & slide the timing of a song.
Big diff is that i am still on a lower python version and higher package versions :
3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]
gTTS 2.3.2
protobuf 3.20.3
PyChromecast 13.0.7
I think you need to update the packages.
On some ocasions i have an empty mp3 thats because the command is cutoff due to a timeout ( slow google tts response) But for me in >90% of the time it just works great.
Why i split the download of the MP3 and the announcements ? Due to timeouts it was unreliable + this way on windows i have more control on what is happing. Now i see some times a delay upto 40 sec in the announcement. I also discovered that a wrong configuration on a managed switch can kill the announcements on google devices. (simply give a speach command to broadcast a message made me discover this issue as some speakers did not work.)
Hope this helps some of you
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
- Thuis
- Posts: 267
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Ok thanks, i just uninstalled these packages gTTs, protobuf and PyChromecast and installed the versions you mentioned.
But sadly, it is the same, Nest mini: Initialized version 2.0.5, author 'dnpwwo' but no devices are created.
Im going to reset the mini and reinstall the plugin again. Perhaps this will help, i already did that, but with the other module versions.
I do not use the curl announcement method, i used to use the notification option Google_Devices in the notify settings of the device...
Thanks for so far
But sadly, it is the same, Nest mini: Initialized version 2.0.5, author 'dnpwwo' but no devices are created.
Im going to reset the mini and reinstall the plugin again. Perhaps this will help, i already did that, but with the other module versions.
I do not use the curl announcement method, i used to use the notification option Google_Devices in the notify settings of the device...
Thanks for so far

I Love Domoticz ! And the community around it :-)
- Thuis
- Posts: 267
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python Plugin: Domoticz-Google-Plugin
Well, i am a step further. I temporarily turned off ipv6 with:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
As soon as the first command gets executed, the devices were added to domoticz.
Now one would think, easy peasy from here, but, the devices work, if i set the volume, i hear the mini do click. So that works,
but when i switch a switch that has the notification: Google_Devices, normally the mini would say:"de boiler is aangezet".
But now, nothing what so ever. So this is the next problem. And i need to firgure out how to make the ipv6 turned off after reboot too.
Any ideas on the notification not working ? I have no clue why i can control the mini now and i hear boep boep when changing volume, but it is not doing the notification...
Thanks in advance !
Ohhh i get an error in the log±
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTING', address=NetworkAddress(address='unknown', port=8009))
But i know the address, and the mini says boep boep when changing volume ???? Can i tell it what the address is, somewhere ?
OH YEAH BABY, i restarted domoticz and now, it says, "Boep Boep, de boiler is aangezet."
Google Devices: Started.
Google Devices: Entering work loop.
Google Devices: Initialized version 2.0.5, author 'dnpwwo'
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTING', address=NetworkAddress(address='unknown', port=8009))
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTED', address=NetworkAddress(address='192.168.10.28', port=8009))
User: admin (IP: 192.168.10.3) initiated a switch command (1520/Google Devices - Nest mini Volume/Set Level)
BOEP BOEP
Conclusion, fidling around helps a lot, the forum members help a lot, the ideas help and turn off the ipv6 setting on the OS. One happy person over here
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
As soon as the first command gets executed, the devices were added to domoticz.
Now one would think, easy peasy from here, but, the devices work, if i set the volume, i hear the mini do click. So that works,
but when i switch a switch that has the notification: Google_Devices, normally the mini would say:"de boiler is aangezet".
But now, nothing what so ever. So this is the next problem. And i need to firgure out how to make the ipv6 turned off after reboot too.
Any ideas on the notification not working ? I have no clue why i can control the mini now and i hear boep boep when changing volume, but it is not doing the notification...
Thanks in advance !
Ohhh i get an error in the log±
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTING', address=NetworkAddress(address='unknown', port=8009))
But i know the address, and the mini says boep boep when changing volume ???? Can i tell it what the address is, somewhere ?
OH YEAH BABY, i restarted domoticz and now, it says, "Boep Boep, de boiler is aangezet."
Google Devices: Started.
Google Devices: Entering work loop.
Google Devices: Initialized version 2.0.5, author 'dnpwwo'
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTING', address=NetworkAddress(address='unknown', port=8009))
Google Devices: Nest mini is now: ConnectionStatus(status='CONNECTED', address=NetworkAddress(address='192.168.10.28', port=8009))
User: admin (IP: 192.168.10.3) initiated a switch command (1520/Google Devices - Nest mini Volume/Set Level)
BOEP BOEP
Conclusion, fidling around helps a lot, the forum members help a lot, the ideas help and turn off the ipv6 setting on the OS. One happy person over here

I Love Domoticz ! And the community around it :-)
Re: Python Plugin: Domoticz-Google-Plugin
Is this plugin still supported on the 2024.2 Domoticz build?
I can see that the Google Home devices are added; but when I do something I get this error:
And then nothing happens..
I can see that the Google Home devices are added; but when I do something I get this error:
Code: Select all
[WebServer] Deprecated RType (graph) for API request. Handled via fallback (graph), please use correct API Command! (<IP Domoticz>)
Who is online
Users browsing this forum: Bing [Bot] and 1 guest