Domoticz-Google-Assistant (dzga) Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

tezzlicious
Posts: 39
Joined: Saturday 09 April 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by tezzlicious »

For many months I didn't have any issues, but lately I noticed that some of my lamps/switches didn't get their state correctly via in the home app. After looking into the log I noticed the following:

Code: Select all

2020-12-04 17:24:13 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-12-04 17:24:13 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'PushButton2373'}, {'id': 'ColorSwitch1093'}, {'id': 'Light1583'}, {'id': 'Light2259'}, {'id': 'Light952'}, {'id': 'ColorSwitch2672'}, {'id': 'Light889'}, {'id': 'PushButton2737'}, {'id': 'Selector3019'}, {'id': 'Light224'}, {'id': 'Selector2952'}, {'id': 'Outlet2604'}, {'id': 'Light2795'}, {'id': 'PushButton2733'}, {'id': 'Switch2796'}, {'id': 'ColorSwitch1096'}, {'id': 'Selector2956'}, {'id': 'Light1899'}, {'id': 'PushButton1220'}, {'id': 'Switch1445'}, {'id': 'Light2752'}, {'id': 'PushButton2724'}, {'id': 'Light2955'}, {'id': 'Light2837'}, {'id': 'PushButton2732'}, {'id': 'Light2818'}, {'id': 'ColorSwitch2708'}, {'id': 'Light2548'}, {'id': 'Light2692'}, {'id': 'ColorSwitch2695'}, {'id': 'PushButton2615'}, {'id': 'Light2661'}, {'id': 'ColorSwitch1138'}, {'id': 'PushButton2736'}, {'id': 'ColorSwitch2707'}, {'id': 'Switch1718'}, {'id': 'Light2543'}, {'id': 'Light1500'}, {'id': 'ColorSwitch1094'}, {'id': 'ColorSwitch1684'}, {'id': 'Light2562'}, {'id': 'ColorSwitch1137'}, {'id': 'ColorSwitch1134'}, {'id': 'ColorSwitch1136'}, {'id': 'Light1503'}, {'id': 'Light1039'}, {'id': 'Switch1441'}, {'id': 'ColorSwitch2709'}, {'id': 'Light2126'}, {'id': 'Switch2586'}, {'id': 'Light2751'}, {'id': 'ColorSwitch2671'}, {'id': 'Light2931'}, {'id': 'ColorSwitch1095'}]}}], 'requestId': '91921993758447447'}: {'errorCode': 'unknownError'}
Switching and dimming is working. Also for the devices reported in the log above.

Things I already tried:
- Sync devices
- Completely disconnect and reconnect the account from the Google Home app
- Generate a new JSON (new service account) from the cloud console
- Set report_state: false for these devices and also every selector device (was reading that could cause issues).

I don't know exactly when this started, I use docker and the container updates automatically to the :latest.

Hope someone can help me out. Thanks.
Nielsch
Posts: 10
Joined: Saturday 19 August 2017 20:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Nielsch »

tezzlicious wrote: Friday 04 December 2020 17:35 For many months I didn't have any issues, but lately I noticed that some of my lamps/switches didn't get their state correctly via in the home app. After looking into the log I noticed the following:

Code: Select all

2020-12-04 17:24:13 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-12-04 17:24:13 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'PushButton2373'}, {'id': 'ColorSwitch1093'}, {'id': 'Light1583'}, {'id': 'Light2259'}, {'id': 'Light952'}, {'id': 'ColorSwitch2672'}, {'id': 'Light889'}, {'id': 'PushButton2737'}, {'id': 'Selector3019'}, {'id': 'Light224'}, {'id': 'Selector2952'}, {'id': 'Outlet2604'}, {'id': 'Light2795'}, {'id': 'PushButton2733'}, {'id': 'Switch2796'}, {'id': 'ColorSwitch1096'}, {'id': 'Selector2956'}, {'id': 'Light1899'}, {'id': 'PushButton1220'}, {'id': 'Switch1445'}, {'id': 'Light2752'}, {'id': 'PushButton2724'}, {'id': 'Light2955'}, {'id': 'Light2837'}, {'id': 'PushButton2732'}, {'id': 'Light2818'}, {'id': 'ColorSwitch2708'}, {'id': 'Light2548'}, {'id': 'Light2692'}, {'id': 'ColorSwitch2695'}, {'id': 'PushButton2615'}, {'id': 'Light2661'}, {'id': 'ColorSwitch1138'}, {'id': 'PushButton2736'}, {'id': 'ColorSwitch2707'}, {'id': 'Switch1718'}, {'id': 'Light2543'}, {'id': 'Light1500'}, {'id': 'ColorSwitch1094'}, {'id': 'ColorSwitch1684'}, {'id': 'Light2562'}, {'id': 'ColorSwitch1137'}, {'id': 'ColorSwitch1134'}, {'id': 'ColorSwitch1136'}, {'id': 'Light1503'}, {'id': 'Light1039'}, {'id': 'Switch1441'}, {'id': 'ColorSwitch2709'}, {'id': 'Light2126'}, {'id': 'Switch2586'}, {'id': 'Light2751'}, {'id': 'ColorSwitch2671'}, {'id': 'Light2931'}, {'id': 'ColorSwitch1095'}]}}], 'requestId': '91921993758447447'}: {'errorCode': 'unknownError'}
Switching and dimming is working. Also for the devices reported in the log above.

Things I already tried:
- Sync devices
- Completely disconnect and reconnect the account from the Google Home app
- Generate a new JSON (new service account) from the cloud console
- Set report_state: false for these devices and also every selector device (was reading that could cause issues).

I don't know exactly when this started, I use docker and the container updates automatically to the :latest.

Hope someone can help me out. Thanks.
Same problem here, do you have Shelly dimmers?
tezzlicious
Posts: 39
Joined: Saturday 09 April 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by tezzlicious »

Nielsch wrote: Friday 04 December 2020 17:46
tezzlicious wrote: Friday 04 December 2020 17:35 For many months I didn't have any issues, but lately I noticed that some of my lamps/switches didn't get their state correctly via in the home app. After looking into the log I noticed the following:

Code: Select all

2020-12-04 17:24:13 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-12-04 17:24:13 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'PushButton2373'}, {'id': 'ColorSwitch1093'}, {'id': 'Light1583'}, {'id': 'Light2259'}, {'id': 'Light952'}, {'id': 'ColorSwitch2672'}, {'id': 'Light889'}, {'id': 'PushButton2737'}, {'id': 'Selector3019'}, {'id': 'Light224'}, {'id': 'Selector2952'}, {'id': 'Outlet2604'}, {'id': 'Light2795'}, {'id': 'PushButton2733'}, {'id': 'Switch2796'}, {'id': 'ColorSwitch1096'}, {'id': 'Selector2956'}, {'id': 'Light1899'}, {'id': 'PushButton1220'}, {'id': 'Switch1445'}, {'id': 'Light2752'}, {'id': 'PushButton2724'}, {'id': 'Light2955'}, {'id': 'Light2837'}, {'id': 'PushButton2732'}, {'id': 'Light2818'}, {'id': 'ColorSwitch2708'}, {'id': 'Light2548'}, {'id': 'Light2692'}, {'id': 'ColorSwitch2695'}, {'id': 'PushButton2615'}, {'id': 'Light2661'}, {'id': 'ColorSwitch1138'}, {'id': 'PushButton2736'}, {'id': 'ColorSwitch2707'}, {'id': 'Switch1718'}, {'id': 'Light2543'}, {'id': 'Light1500'}, {'id': 'ColorSwitch1094'}, {'id': 'ColorSwitch1684'}, {'id': 'Light2562'}, {'id': 'ColorSwitch1137'}, {'id': 'ColorSwitch1134'}, {'id': 'ColorSwitch1136'}, {'id': 'Light1503'}, {'id': 'Light1039'}, {'id': 'Switch1441'}, {'id': 'ColorSwitch2709'}, {'id': 'Light2126'}, {'id': 'Switch2586'}, {'id': 'Light2751'}, {'id': 'ColorSwitch2671'}, {'id': 'Light2931'}, {'id': 'ColorSwitch1095'}]}}], 'requestId': '91921993758447447'}: {'errorCode': 'unknownError'}
Switching and dimming is working. Also for the devices reported in the log above.

Things I already tried:
- Sync devices
- Completely disconnect and reconnect the account from the Google Home app
- Generate a new JSON (new service account) from the cloud console
- Set report_state: false for these devices and also every selector device (was reading that could cause issues).

I don't know exactly when this started, I use docker and the container updates automatically to the :latest.

Hope someone can help me out. Thanks.
Same problem here, do you have Shelly dimmers?
No Shelly dimmers here.
hanryz
Posts: 27
Joined: Monday 31 October 2016 23:18
Target OS: Windows
Domoticz version: 3.5837
Location: Netherlands
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by hanryz »

Guys, I have question concerning running DZGA behind Apache proxy, maybe somebody can help... I have setup the following in the apache conf:

<Location /projects/dzga/>
ProxyPass http://127.0.0.1:3030/
ProxyPassReverse http://127.0.0.1:3030/
</Location>

And I can access the login page and I can also login and setup domoticz IP etc. However, the number of connected Domoticz devices is always 0 although the DZGA tells me at startup that it is connected to Domoticz under 127.0.0.1:8080.

On the other hand, when I connect to DZGA directly via http://127.0.0.1:3030/settings and login, I see that the number of Domoticz devices is not zero, as it should be, and everything seems fine. In the apache log I can see the following:

AH00128: File does not exist: F:/NetworkIntranet/WEBSERVER/htdocs/log, referer: http://192.168.0.15/projects/dzga/setti ... =undefined

Herein "F:/NetworkIntranet/WEBSERVER/htdocs/log" is a directory under DocumentRoot "F:/NetworkIntranet/WEBSERVER/htdocs/" set in the Apache config.

Obviously, Apache cannot find the" F:/NetworkIntranet/WEBSERVER/htdocs/log" directory under the DocumentRoot. The question is why it is instructed to look there if there is a correct proxy setting?

Maybe somebody can provide a hint?
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 »

tezzlicious wrote: Friday 04 December 2020 17:54
Nielsch wrote: Friday 04 December 2020 17:46
tezzlicious wrote: Friday 04 December 2020 17:35 For many months I didn't have any issues, but lately I noticed that some of my lamps/switches didn't get their state correctly via in the home app. After looking into the log I noticed the following:

Code: Select all

2020-12-04 17:24:13 - ERROR - 400 Client Error: Bad Request for url: https://homegraph.googleapis.com/v1/devices:reportStateAndNotification
2020-12-04 17:24:13 - ERROR - Error handling message {'inputs': [{'intent': 'action.devices.QUERY', 'payload': {'devices': [{'id': 'PushButton2373'}, {'id': 'ColorSwitch1093'}, {'id': 'Light1583'}, {'id': 'Light2259'}, {'id': 'Light952'}, {'id': 'ColorSwitch2672'}, {'id': 'Light889'}, {'id': 'PushButton2737'}, {'id': 'Selector3019'}, {'id': 'Light224'}, {'id': 'Selector2952'}, {'id': 'Outlet2604'}, {'id': 'Light2795'}, {'id': 'PushButton2733'}, {'id': 'Switch2796'}, {'id': 'ColorSwitch1096'}, {'id': 'Selector2956'}, {'id': 'Light1899'}, {'id': 'PushButton1220'}, {'id': 'Switch1445'}, {'id': 'Light2752'}, {'id': 'PushButton2724'}, {'id': 'Light2955'}, {'id': 'Light2837'}, {'id': 'PushButton2732'}, {'id': 'Light2818'}, {'id': 'ColorSwitch2708'}, {'id': 'Light2548'}, {'id': 'Light2692'}, {'id': 'ColorSwitch2695'}, {'id': 'PushButton2615'}, {'id': 'Light2661'}, {'id': 'ColorSwitch1138'}, {'id': 'PushButton2736'}, {'id': 'ColorSwitch2707'}, {'id': 'Switch1718'}, {'id': 'Light2543'}, {'id': 'Light1500'}, {'id': 'ColorSwitch1094'}, {'id': 'ColorSwitch1684'}, {'id': 'Light2562'}, {'id': 'ColorSwitch1137'}, {'id': 'ColorSwitch1134'}, {'id': 'ColorSwitch1136'}, {'id': 'Light1503'}, {'id': 'Light1039'}, {'id': 'Switch1441'}, {'id': 'ColorSwitch2709'}, {'id': 'Light2126'}, {'id': 'Switch2586'}, {'id': 'Light2751'}, {'id': 'ColorSwitch2671'}, {'id': 'Light2931'}, {'id': 'ColorSwitch1095'}]}}], 'requestId': '91921993758447447'}: {'errorCode': 'unknownError'}
Switching and dimming is working. Also for the devices reported in the log above.

Things I already tried:
- Sync devices
- Completely disconnect and reconnect the account from the Google Home app
- Generate a new JSON (new service account) from the cloud console
- Set report_state: false for these devices and also every selector device (was reading that could cause issues).

I don't know exactly when this started, I use docker and the container updates automatically to the :latest.

Hope someone can help me out. Thanks.
Same problem here, do you have Shelly dimmers?
No Shelly dimmers here.
400 error is usually missing string somewhere. Check if there is a special character or something missing in a device voicecontrol tag or in device_config in config.yaml
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
Nielsch
Posts: 10
Joined: Saturday 19 August 2017 20:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Nielsch »

spawnol wrote: Sunday 06 December 2020 11:58
Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
I didn't solve it (yet)...
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

Nielsch wrote: Sunday 06 December 2020 12:32
spawnol wrote: Sunday 06 December 2020 11:58
Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
I didn't solve it (yet)...

:(
So, you cannot synchronise your device with google ? or you are using NGROK ?
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 »

Nielsch wrote: Sunday 06 December 2020 12:32
spawnol wrote: Sunday 06 December 2020 11:58
Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
I didn't solve it (yet)...
Try update with the install script:
bash <(curl -s https://raw.githubusercontent.com/DewGe ... install.sh)
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

DewGew wrote: Sunday 06 December 2020 14:07
Nielsch wrote: Sunday 06 December 2020 12:32
spawnol wrote: Sunday 06 December 2020 11:58

I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
I didn't solve it (yet)...
Try update with the install script:
bash <(curl -s https://raw.githubusercontent.com/DewGe ... install.sh)
Already tried... :'(
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 »

spawnol wrote: Sunday 06 December 2020 16:50
DewGew wrote: Sunday 06 December 2020 14:07
Nielsch wrote: Sunday 06 December 2020 12:32
I didn't solve it (yet)...
Try update with the install script:
bash <(curl -s https://raw.githubusercontent.com/DewGe ... install.sh)
Already tried... :'(
Running with reverse proxy or nginx
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Nielsch
Posts: 10
Joined: Saturday 19 August 2017 20:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by Nielsch »

spawnol wrote: Sunday 06 December 2020 11:58
Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
Apologies,I thought you meant another issue I have. Did you try this?: viewtopic.php?p=262461#p262461 . There should be a space before 'activate'
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

Nielsch wrote: Sunday 06 December 2020 19:54
spawnol wrote: Sunday 06 December 2020 11:58
Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
Apologies,I thought you meant another issue I have. Did you try this?: viewtopic.php?p=262461#p262461 . There should be a space before 'activate'
Yes, it doesn't work.

With this configuration in the config.yaml :
use_ssl: true
ssl_key: # /etc/letsencrypt/live/xxxxx.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/xxxxxx.duckdns.org/fullchain.pem

It seems to work but the result of the command : #python Domoticz-Google-Assistant
Connecting to Domoticz on http://XXX.X.X.X:XXXX
ssl_key and ssl_cert options are mandatory if use_ssl is True

When i take off the #, nothing works.

I have also an issue with the display when i tried to connect to Domoticz or DZGA with : https://....duckdns.org/Domoticz-Google-Assistant-settings
Do you know why ?
Attachments
Capture d’écran 2020-12-06 à 23.39.14.png
Capture d’écran 2020-12-06 à 23.39.14.png (38.39 KiB) Viewed 2134 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 »

Nielsch wrote: Sunday 29 November 2020 22:02 Since my issue with Shelly Dimmer 2 is still there I thought it would be good to update the dimmers' firmwares and update dzga and try again. However. after updating dzga it doesn't work anymore. Tried uninstalling and installing both master and development. This is the error I get when starting manually:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Domoticz-Google-Assistant/__main__.py", line 4, in <module>
    from server import *
  File "Domoticz-Google-Assistant/server.py", line 6, in <module>
    from helpers import FILE_DIR
  File "Domoticz-Google-Assistant/helpers.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
How can I solve this?
Do the following to fix on Rpi within CLI:
type:
source Domoticz-Google-Assistant/env/bin/activate

then type:
pip3 install pyYAML

then type:
deactivate

Then type:
sudo service dzga restart
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

spawnol wrote: Sunday 06 December 2020 23:47
Nielsch wrote: Sunday 06 December 2020 19:54
spawnol wrote: Sunday 06 December 2020 11:58

I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
Apologies,I thought you meant another issue I have. Did you try this?: viewtopic.php?p=262461#p262461 . There should be a space before 'activate'
Yes, it doesn't work.

With this configuration in the config.yaml :
use_ssl: true
ssl_key: # /etc/letsencrypt/live/xxxxx.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/xxxxxx.duckdns.org/fullchain.pem

It seems to work but the result of the command : #python Domoticz-Google-Assistant
Connecting to Domoticz on http://XXX.X.X.X:XXXX
ssl_key and ssl_cert options are mandatory if use_ssl is True

When i take off the #, nothing works.

I have also an issue with the display when i tried to connect to Domoticz or DZGA with : https://....duckdns.org/Domoticz-Google-Assistant-settings
Do you know why ?
I try to reproduce this with ssl.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

spawnol wrote: Sunday 06 December 2020 23:47
Nielsch wrote: Sunday 06 December 2020 19:54
spawnol wrote: Sunday 06 December 2020 11:58

I have exactly the same issue but nothing work for me..
How did you solve it ?

My DZGa service works when i put the SSL option to false..

Thanks !
Apologies,I thought you meant another issue I have. Did you try this?: viewtopic.php?p=262461#p262461 . There should be a space before 'activate'
Yes, it doesn't work.

With this configuration in the config.yaml :
use_ssl: true
ssl_key: # /etc/letsencrypt/live/xxxxx.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/xxxxxx.duckdns.org/fullchain.pem

It seems to work but the result of the command : #python Domoticz-Google-Assistant
Connecting to Domoticz on http://XXX.X.X.X:XXXX
ssl_key and ssl_cert options are mandatory if use_ssl is True

When i take off the #, nothing works.

I have also an issue with the display when i tried to connect to Domoticz or DZGA with : https://....duckdns.org/Domoticz-Google-Assistant-settings
Do you know why ?
Try with ngrok, mybe you can get it to work with that
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

DewGew wrote: Monday 07 December 2020 8:56
spawnol wrote: Sunday 06 December 2020 23:47
Nielsch wrote: Sunday 06 December 2020 19:54
Apologies,I thought you meant another issue I have. Did you try this?: viewtopic.php?p=262461#p262461 . There should be a space before 'activate'
Yes, it doesn't work.

With this configuration in the config.yaml :
use_ssl: true
ssl_key: # /etc/letsencrypt/live/xxxxx.duckdns.org/privkey.pem
ssl_cert: # /etc/letsencrypt/live/xxxxxx.duckdns.org/fullchain.pem

It seems to work but the result of the command : #python Domoticz-Google-Assistant
Connecting to Domoticz on http://XXX.X.X.X:XXXX
ssl_key and ssl_cert options are mandatory if use_ssl is True

When i take off the #, nothing works.

I have also an issue with the display when i tried to connect to Domoticz or DZGA with : https://....duckdns.org/Domoticz-Google-Assistant-settings
Do you know why ?
Try with ngrok, mybe you can get it to work with that
But it worked with Nginx.. I used it... It didn't work since the update of Dzga...
I am disappointed...
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

Do you have any idea for this ? I have an issue with the display with http://toto.duckdns.org/Domoticz-Google ... t/settings
It works with http://localhost:3030/settings.
Attachments
Capture d’écran 2020-12-07 201924.png
Capture d’écran 2020-12-07 201924.png (387.38 KiB) Viewed 2092 times
spawnol
Posts: 14
Joined: Sunday 06 December 2020 11:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz-Google-Assistant (dzga)

Post by spawnol »

I reinstalled DZGA and nginx.. but when i tried with SSL (nginx)

pi@raspberrypi:~ $ python3 Domoticz-Google-Assistant/
Loading configuration...
Connecting to Domoticz on http://192.168.1.21:8080
Using SSL connection
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "Domoticz-Google-Assistant/__main__.py", line 109, in <module>
startServer()
File "Domoticz-Google-Assistant/__main__.py", line 52, in startServer
secure(server)
File "Domoticz-Google-Assistant/__main__.py", line 26, in secure
server.socket = ssl.wrap_socket (server.socket, keyfile=key, certfile=cert, server_side=True, ssl_version=ssl.PROTOCOL_TLSv1_2)
File "/usr/lib/python3.7/ssl.py", line 1216, in wrap_socket
context.load_cert_chain(certfile, keyfile)
PermissionError: [Errno 13] Permission denied
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 »

spawnol wrote: Monday 07 December 2020 21:28 I reinstalled DZGA and nginx.. but when i tried with SSL (nginx)

pi@raspberrypi:~ $ python3 Domoticz-Google-Assistant/
Loading configuration...
Connecting to Domoticz on http://192.168.1.21:8080
Using SSL connection
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "Domoticz-Google-Assistant/__main__.py", line 109, in <module>
startServer()
File "Domoticz-Google-Assistant/__main__.py", line 52, in startServer
secure(server)
File "Domoticz-Google-Assistant/__main__.py", line 26, in secure
server.socket = ssl.wrap_socket (server.socket, keyfile=key, certfile=cert, server_side=True, ssl_version=ssl.PROTOCOL_TLSv1_2)
File "/usr/lib/python3.7/ssl.py", line 1216, in wrap_socket
context.load_cert_chain(certfile, keyfile)
PermissionError: [Errno 13] Permission denied
You cant use ssl with ngrok. Set ssl to false. Ngrok has already ssl enabled
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest