First of all, thank you for building this app.
I tried configuring Google Assistant with domoticz but i found some issues and vague steps in the manual.
First step is to clone the project and install the requirements with "pip install -r". The next step is to start the project with "python3". Shouldn't the "pip install -r" be "pip3 install -r" just to be sure the python packages for python3 are installed?
When i start the project with "python3" there is still a package missing named pyngrok. This could be my setup only. Also i think you can remove pkg-resources from the requirements list.
I can start the app with "python3" and everything works so far. I can go to /settings and edit everything. I can see my devices from domoticz appearing in the app.
When i sync the devices i can see a 404 in the log:
2019-12-01 13:57:03 - DEBUG -
https://homegraph.googleapis.com:443 "POST /v1/devices:requestSync?key=******************* HTTP/1.1" 404 None
When i open google home on my android device the "[test]appname" does appear but when i click it it does nothing. I wont get a login or anything. I dont see anything in my logs on my raspberry pi. There seems to be no connection between google and the domoticz app on my raspberry. When i click "test" on the "actions on google" console i get a error "something went wrong". Should i see any logs on my raspberry when i test the action on "actions on google"?
I have run trough the manual multiple times and all the settings should be correct. Could using my IP without a certificate cause any problems? I use nginx as proxy with https but without valid certificate. Since i have already a app running on port 443 on my raspberry pi iam running nginx on port 444 and portfoward 443 to 444 on my router. Are there also any privacy settings on my google account i should check?
Edit: i fixed it now by using the ngrok tunnel. I guess using my public IP without valid certificate wont work. Will it work when i use a domain name with valid certificate? Also, is it possible to hide devices from google home?
There is one issue with my milight lights. I have them setup as a switch in domoticz and my milights appear in google home but with the following error:
Error handling message {'requestId': '1786981529328158506', 'inputs': [{'context': {'locale_country': 'NL', 'locale_language': 'nl'}, 'intent': 'action.devices.EXECUTE', 'payload': {'commands': [{'devices': [{'id': 'ColorSwitch21'}], 'execution': [{'params': {'on': False}, 'command': 'action.devices.commands.OnOff'}]}]}}]}: {'errorCode': 'unknownError'}
127.0.0.1 - - [01/Dec/2019 15:32:07] "POST /smarthome HTTP/1.1" 200 -
Response: {
"requestId": "1786981529328158506",
"payload": {
"errorCode": "unknownError"
}
}
This is the milight when i sync devices:
{
"willReportState": false,
"deviceInfo": {
"manufacturer": "milight"
},
"traits": [
"action.devices.traits.OnOff",
"action.devices.traits.Brightness",
"action.devices.traits.ColorSetting"
],
"attributes": {
"colorTemperatureRange": {
"temperatureMinK": 1700,
"temperatureMaxK": 6500
},
"colorModel": "rgb"
},
"name": {
"name": "Slaapkamer Lamp"
},
"type": "action.devices.types.LIGHT",
"id": "ColorSwitch21"
}
I can still use my voice commands to turn on/off the light but google home mini says there is an error each time. The google home app says it is not responding.