Page 7 of 7

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Saturday 06 February 2021 21:39
by RezaRose
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

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Friday 19 March 2021 12:58
by RezaRose
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?

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Monday 05 April 2021 15:51
by tomyc
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

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:

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Friday 11 February 2022 10:48
by TiXav
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

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Friday 11 February 2022 20:40
by stephanvdplas
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!
Hello Dennis,
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?

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Friday 05 August 2022 19:19
by DAVIZINHO
hello!
is this plugin still working?
im trying to setup the notifications to a google home, in a raspberry pi but i cant :-(

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Friday 05 August 2022 19:33
by mark.sellwood
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.

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Saturday 12 November 2022 13:56
by Filip
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!

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Tuesday 25 July 2023 19:54
by Thuis
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.

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Wednesday 26 July 2023 7:22
by zicht
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

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Wednesday 26 July 2023 12:17
by Thuis
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 :-)

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Wednesday 26 July 2023 14:24
by Thuis
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 :-D

Re: Python Plugin: Domoticz-Google-Plugin

Posted: Tuesday 13 February 2024 9:20
by CronoS
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:

Code: Select all

 [WebServer] Deprecated RType (graph) for API request. Handled via fallback (graph), please use correct API Command! (<IP Domoticz>)
And then nothing happens..