Google cast sur docker

bonjour,

j’ai installé un jeedom sous docker sur un systeme debian et je n’arrive pas a detecter mon google home avec le scan. J’ai un autre jeedom sans docker qui n’a pas de probleme.

Est ce un probleme de reseau ?
L’adresse de jeedom est de type 172.17.x.x alors que celle de mon reseau local est de type 192.168.68.x.

Comment peut on resoudre ce probleme ?

lorsque je lance le deamon en mode debug j’ai le log suivant dans google_cast local :

[2022-02-14 07:28:38]DEBUG : SOCKETHANDLER------Client connected to [127.0.0.1:50896]
[2022-02-14 07:28:38]DEBUG : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "learnout"}
[2022-02-14 07:28:38]DEBUG : SOCKETHANDLER------Client disconnected from [127.0.0.1:50896]
[2022-02-14 07:28:39]DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-02-14 07:28:39]DEBUG : SOCKET-READ------Received command from jeedom : learnout
[2022-02-14 07:28:39]INFO : SOCKET-READ------Leave learn mode
[2022-02-14 07:28:39]DEBUG : SENDER------Send to jeedom :  {'learn_mode': 0, 'source': 'local'}
[2022-02-14 07:28:43]DEBUG : SOCKETHANDLER------Client connected to [127.0.0.1:50900]
[2022-02-14 07:28:43]DEBUG : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "learnout"}
[2022-02-14 07:28:43]DEBUG : SOCKETHANDLER------Client disconnected from [127.0.0.1:50900]
[2022-02-14 07:28:43]DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-02-14 07:28:43]DEBUG : SOCKET-READ------Received command from jeedom : learnout
[2022-02-14 07:28:43]INFO : SOCKET-READ------Leave learn mode
[2022-02-14 07:28:43]DEBUG : SENDER------Send to jeedom :  {'learn_mode': 0, 'source': 'local'}
[2022-02-14 07:29:12]DEBUG : SCANNER------ Start scanning... (schedule)
[2022-02-14 07:29:12]DEBUG :  MEMORY---- Total CPU time used : 1.308s (0.33%)  |  Last 62 sec : 0.146s (0.23%)  | Memory : 36 Mo

lorsque je lance un scan ca ajoute au log :

[2022-02-14 07:32:56]DEBUG : SOCKETHANDLER------Client connected to [127.0.0.1:50932]
[2022-02-14 07:32:56]DEBUG : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "learnout"}
[2022-02-14 07:32:56]DEBUG : SOCKETHANDLER------Client disconnected from [127.0.0.1:50932]
[2022-02-14 07:32:56]DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-02-14 07:32:56]DEBUG : SOCKET-READ------Received command from jeedom : learnout
[2022-02-14 07:32:56]INFO : SOCKET-READ------Leave learn mode
[2022-02-14 07:32:56]DEBUG : SENDER------Send to jeedom :  {'learn_mode': 0, 'source': 'local'}
[2022-02-14 07:33:44]DEBUG : SOCKETHANDLER------Client connected to [127.0.0.1:50936]
[2022-02-14 07:33:44]DEBUG : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "learnin"}
[2022-02-14 07:33:44]DEBUG : SOCKETHANDLER------Client disconnected from [127.0.0.1:50936]
[2022-02-14 07:33:44]DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-02-14 07:33:44]DEBUG : SOCKET-READ------Received command from jeedom : learnin
[2022-02-14 07:33:44]INFO : SOCKET-READ------Enter in learn mode
[2022-02-14 07:33:44]DEBUG : SENDER------Send to jeedom :  {'learn_mode': 1, 'source': 'local'}
[2022-02-14 07:33:46]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:46]DEBUG :  MEMORY---- Total CPU time used : 0.795s (0.46%)  |  Last 50 sec : 0.124s (0.25%)  | Memory : 36 Mo
[2022-02-14 07:33:46]DEBUG : ZEROCONF------ Stopping zeroconf monitoring thread...
[2022-02-14 07:33:46]DEBUG : ZEROCONF------ Start zeroconf monitoring thread...
[2022-02-14 07:33:46]DEBUG : Using selector: EpollSelector
[2022-02-14 07:33:48]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:48]DEBUG :  MEMORY---- Total CPU time used : 0.813s (0.47%)  |  Last 2 sec : 0.018s (0.91%)  | Memory : 36 Mo
[2022-02-14 07:33:50]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:50]DEBUG :  MEMORY---- Total CPU time used : 0.820s (0.47%)  |  Last 2 sec : 0.007s (0.34%)  | Memory : 36 Mo
[2022-02-14 07:33:52]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:52]DEBUG :  MEMORY---- Total CPU time used : 0.825s (0.46%)  |  Last 2 sec : 0.005s (0.24%)  | Memory : 36 Mo
[2022-02-14 07:33:54]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:54]DEBUG :  MEMORY---- Total CPU time used : 0.831s (0.46%)  |  Last 2 sec : 0.006s (0.32%)  | Memory : 36 Mo
[2022-02-14 07:33:56]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:56]DEBUG :  MEMORY---- Total CPU time used : 0.836s (0.46%)  |  Last 2 sec : 0.005s (0.26%)  | Memory : 36 Mo
[2022-02-14 07:33:58]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:33:58]DEBUG :  MEMORY---- Total CPU time used : 0.842s (0.46%)  |  Last 2 sec : 0.006s (0.28%)  | Memory : 36 Mo
[2022-02-14 07:34:00]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:00]DEBUG :  MEMORY---- Total CPU time used : 0.847s (0.46%)  |  Last 2 sec : 0.005s (0.25%)  | Memory : 36 Mo
[2022-02-14 07:34:02]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:02]DEBUG :  MEMORY---- Total CPU time used : 0.852s (0.45%)  |  Last 2 sec : 0.006s (0.28%)  | Memory : 36 Mo
[2022-02-14 07:34:04]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:04]DEBUG :  MEMORY---- Total CPU time used : 0.857s (0.45%)  |  Last 2 sec : 0.005s (0.25%)  | Memory : 36 Mo
[2022-02-14 07:34:06]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:06]DEBUG :  MEMORY---- Total CPU time used : 0.863s (0.45%)  |  Last 2 sec : 0.005s (0.26%)  | Memory : 36 Mo
[2022-02-14 07:34:08]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:08]DEBUG :  MEMORY---- Total CPU time used : 0.868s (0.45%)  |  Last 2 sec : 0.005s (0.26%)  | Memory : 36 Mo
[2022-02-14 07:34:10]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:10]DEBUG :  MEMORY---- Total CPU time used : 0.873s (0.45%)  |  Last 2 sec : 0.005s (0.25%)  | Memory : 36 Mo
[2022-02-14 07:34:12]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:12]DEBUG :  MEMORY---- Total CPU time used : 0.878s (0.44%)  |  Last 2 sec : 0.005s (0.26%)  | Memory : 36 Mo
[2022-02-14 07:34:14]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:14]DEBUG :  MEMORY---- Total CPU time used : 0.883s (0.44%)  |  Last 2 sec : 0.005s (0.25%)  | Memory : 36 Mo
[2022-02-14 07:34:16]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:16]DEBUG :  MEMORY---- Total CPU time used : 0.889s (0.44%)  |  Last 2 sec : 0.006s (0.28%)  | Memory : 36 Mo
[2022-02-14 07:34:18]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:18]DEBUG :  MEMORY---- Total CPU time used : 0.895s (0.44%)  |  Last 2 sec : 0.007s (0.33%)  | Memory : 36 Mo
[2022-02-14 07:34:20]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:20]DEBUG :  MEMORY---- Total CPU time used : 0.900s (0.44%)  |  Last 2 sec : 0.005s (0.26%)  | Memory : 36 Mo
[2022-02-14 07:34:22]DEBUG : SOCKETHANDLER------Client connected to [127.0.0.1:50942]
[2022-02-14 07:34:22]DEBUG : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "learnout"}
[2022-02-14 07:34:22]DEBUG : SOCKETHANDLER------Client disconnected from [127.0.0.1:50942]
[2022-02-14 07:34:22]DEBUG : SCANNER------ Start scanning... (learnmode)
[2022-02-14 07:34:22]DEBUG :  MEMORY---- Total CPU time used : 0.907s (0.44%)  |  Last 2 sec : 0.007s (0.33%)  | Memory : 36 Mo
[2022-02-14 07:34:22]DEBUG : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-02-14 07:34:22]DEBUG : SOCKET-READ------Received command from jeedom : learnout
[2022-02-14 07:34:22]INFO : SOCKET-READ------Leave learn mode
[2022-02-14 07:34:22]DEBUG : SENDER------Send to jeedom :  {'learn_mode': 0, 'source': 'local'}

Bonjour,

Le plug-in ne va scanner que le réseau local entre le container et son hôte, docker, et il ne va rien trouver puisqu’il n’y a rien à trouver évidemment.

Vous devez probablement configurer votre container autrement (network en mode hôte ou macvlan devrait fonctionner mais c’est hors sujet du plug-in)
Ou peut-être en configurant un équipement manuellement, j’ignore si cela fonctionne.

Hello

Pour t’aider au cas echéant

1 « J'aime »

merci je vais tester ca ce soir et si c’est trop complique je vais basculer mon jeedom hors docker …