Equipement hors ligne sur le plugin Google Cast

Bonjour à tous,
J’ai besoin de votre aide sur un problème qui me dépasse complétement…
J’utilise le plugin Google Cast depuis mes débuts en domotique sans jamais avoir eu un seul problème.
Cependant, pour des raisons de fluidités et de rapidités (vitesse d’exécution des scénarios), j’ai troqué mon RP3 (raspbian) contre un PC (debian 11), et cela fonctionne à merveille, les temps d exécution on été divisé par 3 voir 4, mais voilà… Google Cast ne fonctionne plus correctement.
Mes équipements sont bien détectés lors du scan mais apparaissent ensuite hors ligne .

Jeedom 4.1.25
Google Cast 2.18

1 Tous mes équipements sont bien sur le même réseau ( google home, google home Max, Tv sous android ainsi qu’une MiBox S) avec une IP statiique.
2 Chacun des équipements sont bien détectés avec l’app Google Home et fonctionnent parfaitement
3 J’ai désinstallé le plugin plusieurs fois
4 J’ai essayé de changer la version de zeroconf comme indiqué sur d’autres forums (tentative sans vraiment trop comprendre), cependant cela ne change rien car lorsque je relance les dépendances, elles se remettent à jours automatiquement.

Un extrait de mon log:

[2021-09-06 01:33:45][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-09-06 01:33:45][DEBUG] :  MEMORY---- Total CPU time used : 1.184s (0.11%)  |  Last 62 sec : 0.055s (0.09%)  | Memory : 46 Mo
[2021-09-06 01:33:45][INFO] : SCANNER------ Adding chromecast : Google Home
[2021-09-06 01:33:45][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:33:45][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 2133, in scanner
globals.GCAST_DEVICES[uuid] = JeedomChromeCast(
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 107, in __init__
self.gcast.wait(timeout=globals.SCAN_TIMEOUT)
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 444, in wait
if not self.socket_client.isAlive():
AttributeError: 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:33:50][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Home max
[2021-09-06 01:33:50][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Home max)
[2021-09-06 01:33:51][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-09-06 01:33:51][DEBUG] :  MEMORY---- Total CPU time used : 1.193s (0.11%)  |  Last 6 sec : 0.009s (0.14%)  | Memory : 46 Mo
[2021-09-06 01:33:51][INFO] : SCANNER------ Adding chromecast : Google Home
[2021-09-06 01:33:51][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:33:51][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 2133, in scanner
globals.GCAST_DEVICES[uuid] = JeedomChromeCast(
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 107, in __init__
self.gcast.wait(timeout=globals.SCAN_TIMEOUT)
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 444, in wait
if not self.socket_client.isAlive():
AttributeError: 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:34:06][DEBUG] : GLOBAL------Signal 15 caught, exiting...
[2021-09-06 01:34:06][DEBUG] : GLOBAL------Shutdown
[2021-09-06 01:34:06][DEBUG] : GLOBAL------Removing PID file /tmp/googlecast.pid
[2021-09-06 01:34:06][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2021-09-06 01:34:06][DEBUG] : SENDER------Send to jeedom :  {'stopped': 1, 'source': 'local'}
[2021-09-06 01:34:38][INFO] : ------------------------------------------------------
[2021-09-06 01:34:38][INFO] : ------------------------------------------------------
[2021-09-06 01:34:38][INFO] : GLOBAL------STARTING googlecast
[2021-09-06 01:34:38][INFO] : GLOBAL------Scan Timeout : 5
[2021-09-06 01:34:38][INFO] : GLOBAL------Scan Frequency : 60
[2021-09-06 01:34:38][INFO] : GLOBAL------Log level : debug
[2021-09-06 01:34:38][INFO] : GLOBAL------Socket port : 55012
[2021-09-06 01:34:38][INFO] : GLOBAL------Socket host : 127.0.0.1
[2021-09-06 01:34:38][INFO] : GLOBAL------PID file : /tmp/googlecast.pid
[2021-09-06 01:34:38][INFO] : GLOBAL------Apikey : *******************************
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS Jeedom server : http://192.168.10.2
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS default language : fr-FR
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS default engine : picotts
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS default speech speed : 1.2
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS Google API Key (optional) : NOK
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS default delay before volume restore : 1300 ms
[2021-09-06 01:34:38][INFO] : GLOBAL------TTS default silence before tts : 300 ms
[2021-09-06 01:34:38][INFO] : GLOBAL------Cache status : True
[2021-09-06 01:34:38][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php
[2021-09-06 01:34:38][INFO] : GLOBAL------Event cycle : 0.5
[2021-09-06 01:34:38][INFO] : GLOBAL------Main cycle : 2.0
[2021-09-06 01:34:38][INFO] : GLOBAL------Default status message :  
[2021-09-06 01:34:38][INFO] : -----------------------------------------------------
[2021-09-06 01:34:38][DEBUG] : Writing PID 189900 to /tmp/googlecast.pid
[2021-09-06 01:34:38][DEBUG] : Init request module v2.25.1
[2021-09-06 01:34:38][INFO] : GLOBAL------Network communication to jeedom OK.
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Socket interface started
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------LoopNetServer Thread started
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Listening on: [127.0.0.1:55012]
[2021-09-06 01:34:38][INFO] : GLOBAL------Socket started and waiting for messages from Jeedom...
[2021-09-06 01:34:38][DEBUG] : WARMUPNOTIF------ Checking file generation...
[2021-09-06 01:34:38][DEBUG] : SENDER------Send to jeedom :  {'started': 1, 'source': 'local'}
[2021-09-06 01:34:38][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2021-09-06 01:34:38][DEBUG] : Using selector: EpollSelector
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:35238]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "++", "options": {"ignore_CEC": "0"}}}
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:35238]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:35240]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "++", "options": {"ignore_CEC": "0"}}}
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:35240]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:35242]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "++", "options": {"ignore_CEC": "0"}}}
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:35242]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:35244]
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "++", "options": {"ignore_CEC": "0"}}}
[2021-09-06 01:34:38][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:35244]
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : La Télé
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (La Télé)
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Home max
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Home max)
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Google Home
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Google Home)
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : groupe enceinte
[2021-09-06 01:34:38][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (groupe enceinte)
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Add device : {'uuid': ++', 'options': {'ignore_CEC': '0'}}
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-09-06 01:34:39][DEBUG] : SOCKET-READ------Add device : {'uuid': '++', 'options': {'ignore_CEC': '0'}}
[2021-09-06 01:34:39][INFO] : SCANNER------ Adding chromecast : Home max
[2021-09-06 01:34:39][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:34:39][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 2133, in scanner
globals.GCAST_DEVICES[uuid] = JeedomChromeCast(
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 107, in __init__
self.gcast.wait(timeout=globals.SCAN_TIMEOUT)
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 444, in wait
if not self.socket_client.isAlive():
AttributeError: 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Add device : {'uuid': '++', 'options': {'ignore_CEC': '0'}}
[2021-09-06 01:34:40][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-09-06 01:34:40][DEBUG] :  MEMORY---- Total CPU time used : 0.203s (10.13%)  |  Last 2 sec : 0.203s (10.13%)  | Memory : 41 Mo
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-09-06 01:34:40][DEBUG] : SOCKET-READ------Add device : {'uuid': '++', 'options': {'ignore_CEC': '0'}}
[2021-09-06 01:34:40][DEBUG] : Using selector: EpollSelector
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : La Télé
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (La Télé)
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Home max
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Home max)
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Google Home
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Google Home)
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : groupe enceinte
[2021-09-06 01:34:40][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (groupe enceinte)
[2021-09-06 01:34:41][INFO] : SCANNER------ Adding chromecast : La Télé
[2021-09-06 01:34:41][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2021-09-06 01:34:41][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 2133, in scanner
globals.GCAST_DEVICES[uuid] = JeedomChromeCast(
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 107, in __init__
self.gcast.wait(timeout=globals.SCAN_TIMEOUT)
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 444, in wait
if not self.socket_client.isAlive():
AttributeError: 'SocketClient' object has no attribute 'isAlive'

Je vois bien qu’il y a des erreurs mais je ne les comprends pas…

Aidez moi !!! J’organise une chasse aux trésors pour mes enfants et j’ai besoin de pouvoir caster sur mes différents équipements !

Bonjour,

Debian 11 n’est a ce jour pas préconisé pour une utilisation avec Jeedom, je vous invite donc à revenir sur une version Debian Buster 10.xx afin d’éviter tout souci avec les plugins :wink:

1 « J'aime »

bonjour,
si vous aimez le risque quelques suggestions :

bonne journée

1 « J'aime »

J’ai compris ce qu’il me reste à faire !
Je passerai sur la 10.10 dans la journée.

Je vous tiens informé !

Bonjour,

N’oubliez pas de faire une recherche sur le community avant de poster :wink:

si vous cherchez sur l’erreur visible dans le log: SocketClient' object has no attribute 'isAlive on trouve tout de suite un autre sujet (en plus de celui-ci) avec la solution: https://community.jeedom.com/search?q=SocketClient’%20object%20has%20no%20attribute%20’isAlive

Le problème vient bien de l’utilisation de python3.9 au lieu de 3.7, qui vient avec debian11.

Après plusieurs installations foireuse de la Debian 10.10 , ( pas de wifi, écran noir sur teamviewer, option redémarrer et éteindre absente du menu système jeedom, pas de droit administrateur de jeedom ), j’ai fini par réussir à obtenir ce que je souhaitais : Google cast fonctionne à nouveau !!!
Merci à tous pour votre aide !!!
Concernant le sujet similaire abordé sur ce lien:
https://community.jeedom.com/search?q=SocketClient%27%20object%20has%20no%20attribute%20%27isAlive
Je n’avais pas conscience que Python 3.9 était lié avec Debian 11 puisque la personne dit avoir Debian 10 et avoir lui même fait la mise a jour de python 3.7 → 3.9 .
En tout cas maintenant je sais comment connaitre ma version de python :smiley: et désolé pour le doublon!

Encore merci !

1 « J'aime »