Domoticz et Google Home via le plugin DZGA
Re: Domoticz et Google Home via le plugin DZGA
Ah bas oui, je me demandais si c'était possible, et ca fonctionne?
Re: Domoticz et Google Home via le plugin DZGA
J'ai reussi, non sans difficulté, avec Nginx... en fait (j'avias un https dans le nginx.conf pour la partie Assistant...) qui me foutait la merd...
Bref, cela fonctionne
Petite question, il faut relancer un certificat de manière réguliere ?
En tout cas, merci samourai47 pour ton aide précieuse !!!
Bref, cela fonctionne

Petite question, il faut relancer un certificat de manière réguliere ?
En tout cas, merci samourai47 pour ton aide précieuse !!!
-
- Messages : 183
- Enregistré le : 04 déc. 2018, 19:44
Re: Domoticz et Google Home via le plugin DZGA
J' ai mis 83 car le port 80 est utilisé par le logiciel de ma clé conbeeericch89 a écrit : ↑17 nov. 2020, 18:20 perso j'ai des erreurs dès l'installation de nginx ..
Vous aviez ca aussi ?
il me met: ACTIVE: failed
et failed to start a high perfomance web server and a reverse proxy server..
Et si je continue la suite du tuto , ce n'est pas mieux ...
En plus je vois sur la configuration de Samourai, le port 83 alors que c'est 80 sur le tuto original
Ras
-
- Messages : 183
- Enregistré le : 04 déc. 2018, 19:44
Re: Domoticz et Google Home via le plugin DZGA
Le certificat est a renouveller tous les 3 mois je vous mettrai comment je fais des que je serai devant mon ordiSpaWnOL a écrit : ↑17 nov. 2020, 18:39 J'ai reussi, non sans difficulté, avec Nginx... en fait (j'avias un https dans le nginx.conf pour la partie Assistant...) qui me foutait la merd...
Bref, cela fonctionne
Petite question, il faut relancer un certificat de manière réguliere ?
En tout cas, merci samourai47 pour ton aide précieuse !!!
-
- Messages : 146
- Enregistré le : 29 févr. 2016, 12:11
Re: Domoticz et Google Home via le plugin DZGA
bon cela commence mal j'ai une erreur à l'installation de
bash <(curl -s https://raw.githubusercontent.com/DewGe ... install.sh)
*--------------------**---------------------*
Install Domoticz-Google-Assistant
---------------------------------------------
*Note : Domoticz-Google-Assistant is free
*for personal use.
---------------------------------------------
Install the Development branch?
(y)es or (N)o? Default : No
Getting the Master Branch
Clonage dans 'Domoticz-Google-Assistant'...
remote: Enumerating objects: 406, done.
remote: Counting objects: 100% (406/406), done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 3751 (delta 97), reused 223 (delta 2), pack-reused 3345
Réception d'objets: 100% (3751/3751), 5.18 MiB | 3.33 MiB/s, fait.
Résolution des deltas: 100% (2089/2089), fait.
This script must run as pi, trying to change user...
Updating your system...
Atteint :1 http://packages.azlux.fr/debian buster InRelease
Atteint :2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Atteint :3 http://archive.raspberrypi.org/debian buster InRelease
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
libffi-dev est déjà la version la plus récente (3.2.1-9).
python3 est déjà la version la plus récente (3.7.3-1).
python3-dev est déjà la version la plus récente (3.7.3-1).
python3-venv est déjà la version la plus récente (3.7.3-1).
libssl-dev est déjà la version la plus récente (1.1.1d-0+deb10u3+rpt1).
python3-pip est déjà la version la plus récente (18.1-5+rpt1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 24 non mis à jour.
Create virtual enviroment...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting setuptools
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: pip, setuptools, wheel
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Found existing installation: setuptools 40.8.0
Uninstalling setuptools-40.8.0:
Could not install packages due to an EnvironmentError: [Errno 28] Aucun espace disponible sur le périphérique
Installing dzga.service...
Created symlink /etc/systemd/system/multi-user.target.wants/dzga.service → /etc/systemd/system/dzga.service.
Starting Domoticz Google Assistant...
Login to Domoticz Google Assistant Server UI at: http://ip.address:3030/settings
Default username is admin and default password is admin
or
Goto Domoticz-Google-Assistant folder and Edit config.yaml and then
restart dzga.server e.g 'sudo systemctl restart dzga'
*-----------------------------------*
j'ai laissé par défaut install the Development branch par défaut
ensuite erreur pb espace disk
après avoir fait un sudo apt-get clean
root@raspberrypi:~# df -H
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root 16G 2,7G 13G 19% /
devtmpfs 474M 0 474M 0% /dev
tmpfs 508M 0 508M 0% /dev/shm
tmpfs 508M 6,8M 501M 2% /run
tmpfs 5,3M 4,1k 5,3M 1% /run/lock
tmpfs 508M 0 508M 0% /sys/fs/cgroup
tmpfs 11M 0 11M 0% /var/tmp
tmpfs 11M 1,5M 9,1M 15% /tmp
/dev/mmcblk0p1 265M 57M 208M 22% /boot
log2ram 42M 9,8M 33M 24% /var/log
tmpfs 102M 0 102M 0% /run/user/1000
1ere etape
carte sd à 20% pas de pb d'inode
bon j'ai trouvé la ram définit pour le tmp etait trop basse , ajout de 10m dans fstab ca passe
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=20m 0 0
2etape
Check configuration.
Connection to Domoticz refused! Check configuration ?
ajout user dans domoticz et de celui-ci dans config.yaml avecsudo systemctl restart dzga
trace dansdomoticz: connected to Google Assistant with DZGA v1.8.14
3etape
Add Homegraph api key or a Homegraph Service Account json file to sync devices in the UI! You can still sync by voice eg. "Hey Google, Sync my devices?
je suis ce lien : https://www.domoticz.com/wiki/Google_As ... _autostart
houa il y a pas mal d'actions à faire sur la google cloud platforme
il me parle d'un compte admin.google.com , ca à l'air obligatoire
bash <(curl -s https://raw.githubusercontent.com/DewGe ... install.sh)
*--------------------**---------------------*
Install Domoticz-Google-Assistant
---------------------------------------------
*Note : Domoticz-Google-Assistant is free
*for personal use.
---------------------------------------------
Install the Development branch?
(y)es or (N)o? Default : No
Getting the Master Branch
Clonage dans 'Domoticz-Google-Assistant'...
remote: Enumerating objects: 406, done.
remote: Counting objects: 100% (406/406), done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 3751 (delta 97), reused 223 (delta 2), pack-reused 3345
Réception d'objets: 100% (3751/3751), 5.18 MiB | 3.33 MiB/s, fait.
Résolution des deltas: 100% (2089/2089), fait.
This script must run as pi, trying to change user...
Updating your system...
Atteint :1 http://packages.azlux.fr/debian buster InRelease
Atteint :2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Atteint :3 http://archive.raspberrypi.org/debian buster InRelease
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
libffi-dev est déjà la version la plus récente (3.2.1-9).
python3 est déjà la version la plus récente (3.7.3-1).
python3-dev est déjà la version la plus récente (3.7.3-1).
python3-venv est déjà la version la plus récente (3.7.3-1).
libssl-dev est déjà la version la plus récente (1.1.1d-0+deb10u3+rpt1).
python3-pip est déjà la version la plus récente (18.1-5+rpt1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 24 non mis à jour.
Create virtual enviroment...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting setuptools
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: pip, setuptools, wheel
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Found existing installation: setuptools 40.8.0
Uninstalling setuptools-40.8.0:
Could not install packages due to an EnvironmentError: [Errno 28] Aucun espace disponible sur le périphérique
Installing dzga.service...
Created symlink /etc/systemd/system/multi-user.target.wants/dzga.service → /etc/systemd/system/dzga.service.
Starting Domoticz Google Assistant...
Login to Domoticz Google Assistant Server UI at: http://ip.address:3030/settings
Default username is admin and default password is admin
or
Goto Domoticz-Google-Assistant folder and Edit config.yaml and then
restart dzga.server e.g 'sudo systemctl restart dzga'
*-----------------------------------*
j'ai laissé par défaut install the Development branch par défaut
ensuite erreur pb espace disk
après avoir fait un sudo apt-get clean
root@raspberrypi:~# df -H
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root 16G 2,7G 13G 19% /
devtmpfs 474M 0 474M 0% /dev
tmpfs 508M 0 508M 0% /dev/shm
tmpfs 508M 6,8M 501M 2% /run
tmpfs 5,3M 4,1k 5,3M 1% /run/lock
tmpfs 508M 0 508M 0% /sys/fs/cgroup
tmpfs 11M 0 11M 0% /var/tmp
tmpfs 11M 1,5M 9,1M 15% /tmp
/dev/mmcblk0p1 265M 57M 208M 22% /boot
log2ram 42M 9,8M 33M 24% /var/log
tmpfs 102M 0 102M 0% /run/user/1000
1ere etape
carte sd à 20% pas de pb d'inode
bon j'ai trouvé la ram définit pour le tmp etait trop basse , ajout de 10m dans fstab ca passe

tmpfs /tmp tmpfs defaults,noatime,nosuid,size=20m 0 0
2etape
Check configuration.
Connection to Domoticz refused! Check configuration ?
ajout user dans domoticz et de celui-ci dans config.yaml avecsudo systemctl restart dzga
trace dansdomoticz: connected to Google Assistant with DZGA v1.8.14

3etape
Add Homegraph api key or a Homegraph Service Account json file to sync devices in the UI! You can still sync by voice eg. "Hey Google, Sync my devices?
je suis ce lien : https://www.domoticz.com/wiki/Google_As ... _autostart
houa il y a pas mal d'actions à faire sur la google cloud platforme

il me parle d'un compte admin.google.com , ca à l'air obligatoire
Re: Domoticz et Google Home via le plugin DZGA
petite question par rapport à la config..samourai47 a écrit : ↑17 nov. 2020, 20:03J' ai mis 83 car le port 80 est utilisé par le logiciel de ma clé conbeeericch89 a écrit : ↑17 nov. 2020, 18:20 perso j'ai des erreurs dès l'installation de nginx ..
Vous aviez ca aussi ?
il me met: ACTIVE: failed
et failed to start a high perfomance web server and a reverse proxy server..
Et si je continue la suite du tuto , ce n'est pas mieux ...
En plus je vois sur la configuration de Samourai, le port 83 alors que c'est 80 sur le tuto original
Ras
Si je comprends bien NGINX, cette première partie devrait rediriger toutes les requêtes HTTP en HTTPS ? non ?
mais à aujourd'hui je peux toujours me connecter en http non sécurisé ?
Ai je bien compris le fonctionnement?
-
- Messages : 183
- Enregistré le : 04 déc. 2018, 19:44
Re: Domoticz et Google Home via le plugin DZGA
Suis pas spécialiste mais nginx permet de rediriger si un ou plusieurs domaines en sécurisé. Ce qui est obligatoire pour Google home. Du coup ça change rien pour domoticz. Tu peux y accéder soit en HTTPS soit httpSpaWnOL a écrit : ↑18 nov. 2020, 09:36petite question par rapport à la config..samourai47 a écrit : ↑17 nov. 2020, 20:03J' ai mis 83 car le port 80 est utilisé par le logiciel de ma clé conbeeericch89 a écrit : ↑17 nov. 2020, 18:20 perso j'ai des erreurs dès l'installation de nginx ..
Vous aviez ca aussi ?
il me met: ACTIVE: failed
et failed to start a high perfomance web server and a reverse proxy server..
Et si je continue la suite du tuto , ce n'est pas mieux ...
En plus je vois sur la configuration de Samourai, le port 83 alors que c'est 80 sur le tuto original
Ras
Si je comprends bien NGINX, cette première partie devrait rediriger toutes les requêtes HTTP en HTTPS ? non ?
mais à aujourd'hui je peux toujours me connecter en http non sécurisé ?
Ai je bien compris le fonctionnement?
Re: Domoticz et Google Home via le plugin DZGA
merci berserk, j'ai fait la modif c'est parfait, ca fonctionne!berserk a écrit : ↑17 nov. 2020, 18:34 bonjour moi j'ai mis domoticz en 444 dans le domoticz.sh
ça evite les conflitsCode : Tout sélectionner
DAEMON_ARGS="$DAEMON_ARGS -www 8080" DAEMON_ARGS="$DAEMON_ARGS -sslwww 444"
Re: Domoticz et Google Home via le plugin DZGA
Moi je ne comprends pas.
Je suis reparti sur un OS vide.
J'ai installé DOMOTICZ
puis DZGA
puis avant de me lancer dans le paramétrage de Google.action
j'ai installé NGINX mais quand je veux le lancer j'ai une erreur. sans rien changé dans les parametres denginx
ov. 18 16:41:01 raspberrypi nginx[1065]: nginx: [emerg] unknown directive "in"
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: configuration file /etc/nginx/n
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Control process exited,
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPre= process belonging to unit nginx.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Failed with result 'exit
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'
nov. 18 16:41:01 raspberrypi systemd[1]: Failed to start A high performance web
-- Subject: L'unité (unit) nginx.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) nginx.service a échoué, avec le résultat failed.
nov. 18 16:41:01 raspberrypi sudo[1037]: pam_unix(sudo:session): session closed
lines 1706-1728/1728 (END)
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: [emerg] unknown directive "in"
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: configuration file /etc/nginx/n
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Control process exited,
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPre= process belonging to unit nginx.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Failed with result 'exit
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'
nov. 18 16:41:01 raspberrypi systemd[1]: Failed to start A high performance web
-- Subject: L'unité (unit) nginx.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) nginx.service a échoué, avec le résultat failed.
nov. 18 16:41:01 raspberrypi sudo[1037]: pam_unix(sudo:session): session closed
Je suis reparti sur un OS vide.
J'ai installé DOMOTICZ
puis DZGA
puis avant de me lancer dans le paramétrage de Google.action
j'ai installé NGINX mais quand je veux le lancer j'ai une erreur. sans rien changé dans les parametres denginx
ov. 18 16:41:01 raspberrypi nginx[1065]: nginx: [emerg] unknown directive "in"
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: configuration file /etc/nginx/n
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Control process exited,
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPre= process belonging to unit nginx.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Failed with result 'exit
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'
nov. 18 16:41:01 raspberrypi systemd[1]: Failed to start A high performance web
-- Subject: L'unité (unit) nginx.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) nginx.service a échoué, avec le résultat failed.
nov. 18 16:41:01 raspberrypi sudo[1037]: pam_unix(sudo:session): session closed
lines 1706-1728/1728 (END)
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: [emerg] unknown directive "in"
nov. 18 16:41:01 raspberrypi nginx[1065]: nginx: configuration file /etc/nginx/n
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Control process exited,
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStartPre= process belonging to unit nginx.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
nov. 18 16:41:01 raspberrypi systemd[1]: nginx.service: Failed with result 'exit
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'
nov. 18 16:41:01 raspberrypi systemd[1]: Failed to start A high performance web
-- Subject: L'unité (unit) nginx.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) nginx.service a échoué, avec le résultat failed.
nov. 18 16:41:01 raspberrypi sudo[1037]: pam_unix(sudo:session): session closed
Re: Domoticz et Google Home via le plugin DZGA
Vous pouvez me dire à quel moment vous avez installé nginx .. ?
Normalement je dois meme pouvoir l'installer sur un OS vide , et ensuite acceder à la page du serveur .. via l'adresse de mon raspberry ...
je ne comprends pas
Normalement je dois meme pouvoir l'installer sur un OS vide , et ensuite acceder à la page du serveur .. via l'adresse de mon raspberry ...
je ne comprends pas