Équipements ne semblent pas connectés et ne sons pas pilotables

Bonjour
Depuis quelques temps mon plugin Google Cast ne semble plus fonctionner.
Je l’ai réinstaller, et lancer le scan.
Il détecte bien mes équipements, mais ces derniers ne semblent pas connectés et ne sons pas pilotables …

Bonjour,

Page santé jeedom et tous les logs comme d’habitude :wink:

Désolé j’ai validé trop vite :slight_smile:

Le log Google cast


[2023-11-19 15:26:05][DEBUG] : This is a message from googlecast program local
[2023-11-19 15:26:05][INFO] : Process stopped !
[2023-11-19 15:26:07][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel debug --socketport 55012 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php --apikey a1dgqckbRfHZ1tCBhsydWLFsDFXFuMKIbv9Lgb0kyGSdB8yK9rF9l0ZA3jSNpDPg --ttsweb http://10.0.0.150 --ttslang fr-FR --ttsengine jeedomtts --ttsspeed 1.2 --ttscache 1 --ttsgapikey none --gcttsvoice fr-FR-Standard-A --ttsdefaultrestoretime 1300 --ttsdefaultsilenceduration 300 --daemonname local --cyclefactor 1 --defaultstatus ' '
[2023-11-19 15:26:07][DEBUG] : This is a message from googlecast program local
[2023-11-19 15:26:07][INFO] : Process started. Sending known devices now...

Le log google cast local


[2023-11-19 15:26:05][DEBUG] : GLOBAL------Signal 15 caught, exiting...
[2023-11-19 15:26:05][DEBUG] : GLOBAL------Shutdown
[2023-11-19 15:26:05][DEBUG] : GLOBAL------Removing PID file /tmp/googlecast.pid
[2023-11-19 15:26:05][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2023-11-19 15:26:05][DEBUG] : SENDER------Send to jeedom :  {'stopped': 1, 'source': 'local'}
[2023-11-19 15:26:07][INFO] : ------------------------------------------------------
[2023-11-19 15:26:07][INFO] : ------------------------------------------------------
[2023-11-19 15:26:07][INFO] : GLOBAL------STARTING googlecast
[2023-11-19 15:26:07][INFO] : GLOBAL------Scan Timeout : 5
[2023-11-19 15:26:07][INFO] : GLOBAL------Scan Frequency : 60
[2023-11-19 15:26:07][INFO] : GLOBAL------Log level : debug
[2023-11-19 15:26:07][INFO] : GLOBAL------Socket port : 55012
[2023-11-19 15:26:07][INFO] : GLOBAL------Socket host : 127.0.0.1
[2023-11-19 15:26:07][INFO] : GLOBAL------PID file : /tmp/googlecast.pid
[2023-11-19 15:26:07][INFO] : GLOBAL------Apikey : *******************************
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS Jeedom server : http://10.0.0.150
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS default language : fr-FR
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS default engine : jeedomtts
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS default speech speed : 1.2
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS Google API Key (optional) : NOK
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS default delay before volume restore : 1300 ms
[2023-11-19 15:26:07][INFO] : GLOBAL------TTS default silence before tts : 300 ms
[2023-11-19 15:26:07][INFO] : GLOBAL------Cache status : True
[2023-11-19 15:26:07][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php
[2023-11-19 15:26:07][INFO] : GLOBAL------Event cycle : 0.5
[2023-11-19 15:26:07][INFO] : GLOBAL------Main cycle : 2.0
[2023-11-19 15:26:07][INFO] : GLOBAL------Default status message :  
[2023-11-19 15:26:07][INFO] : -----------------------------------------------------
[2023-11-19 15:26:07][DEBUG] : Writing PID 835105 to /tmp/googlecast.pid
[2023-11-19 15:26:07][DEBUG] : Init request module v2.31.0
[2023-11-19 15:26:07][INFO] : GLOBAL------Network communication to jeedom OK.
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Socket interface started
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------LoopNetServer Thread started
[2023-11-19 15:26:07][INFO] : GLOBAL------Socket started and waiting for messages from Jeedom...
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Listening on: [127.0.0.1:55012]
[2023-11-19 15:26:07][DEBUG] : WARMUPNOTIF------ Checking file generation...
[2023-11-19 15:26:07][DEBUG] : SENDER------Send to jeedom :  {'started': 1, 'source': 'local'}
[2023-11-19 15:26:07][DEBUG] : SCANNER------ Start scanning... (schedule)
[2023-11-19 15:26:07][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2023-11-19 15:26:07][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:51712]
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "d460b44d-b062-66d5-2289-77b45cd1137e", "options": {"ignore_CEC": "0"}}}
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:51712]
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:51720]
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "35d60b4a-1837-ebd6-4796-ef4fdacea0cc", "options": {"ignore_CEC": "0"}}}
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:51720]
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:51730]
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "e09fbabf-b7dc-3877-d6f9-67649c3661c3", "options": {"ignore_CEC": "0"}}}
[2023-11-19 15:26:07][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:51730]
[2023-11-19 15:26:07][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : SHIELD
[2023-11-19 15:26:07][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (SHIELD)
[2023-11-19 15:26:08][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Entrée
[2023-11-19 15:26:08][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Entrée)
[2023-11-19 15:26:08][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Salle de bain
[2023-11-19 15:26:08][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Salle de bain)
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Add device : {'uuid': 'd460b44d-b062-66d5-2289-77b45cd1137e', 'options': {'ignore_CEC': '0'}}
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2023-11-19 15:26:08][DEBUG] : SOCKET-READ------Add device : {'uuid': '35d60b4a-1837-ebd6-4796-ef4fdacea0cc', 'options': {'ignore_CEC': '0'}}
[2023-11-19 15:26:08][INFO] : SCANNER------ Adding chromecast : Entrée
[2023-11-19 15:26:08][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2023-11-19 15:26:08][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'

[2023-11-19 15:26:09][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2023-11-19 15:26:09][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2023-11-19 15:26:09][DEBUG] : SOCKET-READ------Add device : {'uuid': 'e09fbabf-b7dc-3877-d6f9-67649c3661c3', 'options': {'ignore_CEC': '0'}}
[2023-11-19 15:26:09][DEBUG] : SCANNER------ Start scanning... (schedule)
[2023-11-19 15:26:09][DEBUG] :  MEMORY---- Total CPU time used : 0.143s (7.15%)  |  Last 2 sec : 0.143s (7.15%)  | Memory : 43 Mo
[2023-11-19 15:26:09][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2023-11-19 15:26:09][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2023-11-19 15:26:09][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : SHIELD
[2023-11-19 15:26:09][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (SHIELD)
[2023-11-19 15:26:10][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Salle de bain
[2023-11-19 15:26:10][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Salle de bain)
[2023-11-19 15:26:10][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Entrée
[2023-11-19 15:26:10][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Entrée)
[2023-11-19 15:26:10][INFO] : SCANNER------ Adding chromecast : SHIELD
[2023-11-19 15:26:10][ERROR] : SCANNER------Exception on scanner : 'SocketClient' object has no attribute 'isAlive'
[2023-11-19 15:26:10][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 suis sur mobile donc plus compliqué mais fait une recherche sur l’erreur (c’est toujours mieux de commencer par ça):

SocketClient' object has no attribute 'isAlive

Ce problème a déjà été abordé

Merci
J’ai retrouvé un post à moi :slight_smile:

il faut modifier un fichier . bizzare que ce ne soit pas corrigé depuis le temps

. Il suffit de remplacer isAlive() par is_alive() dans le fichier googlecast/resources/pychromecast/pychromecast/init.py ligne 444. Pour moi, tout est redevenu normal.

1 « J'aime »

L’auteur ne maintient plus ces plugins et il ne répond plus pour que l’on puisse organiser le transfert donc c’est bloqué

Ok merci beaucoup des infos en tous cas

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.