dnpwwo / Domoticz-Google-Plugin

MIT License
40 stars 10 forks source link

Error when starting the plug in #25

Closed rezzalex closed 3 years ago

rezzalex commented 3 years ago

Hello,

here is my error message in DZ Logs : 2020-09-24 12:10:41.122 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host'

here is my entire logs :

020-09-24 12:20:51.218 (Google_Chromecast) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE 2020-09-24 12:20:51.218 (Google_Chromecast) 'HardwareID':'26' 2020-09-24 12:20:51.218 (Google_Chromecast) 'HomeFolder':'/opt/domoticz/plugins/Domoticz-Google-Plugin/' 2020-09-24 12:20:51.218 (Google_Chromecast) 'StartupFolder':'/opt/domoticz/' 2020-09-24 12:20:51.218 (Google_Chromecast) 'UserDataFolder':'/opt/domoticz/' 2020-09-24 12:20:51.218 (Google_Chromecast) 'Database':'/config/domoticz.db' 2020-09-24 12:20:51.218 (Google_Chromecast) 'Language':'fr' 2020-09-24 12:20:51.218 (Google_Chromecast) 'Version':'1.21.9' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Author':'dnpwwo' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Name':'Google_Chromecast' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Port':'0' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Key':'GoogleDevs' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode1':'Smart Display' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode2':'{|Video|:||,|Audio|:||}' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode3':'50' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode4':'True' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode5':'False' 2020-09-24 12:20:51.219 (Google_Chromecast) 'Mode6':'-1' 2020-09-24 12:20:51.219 (Google_Chromecast) 'DomoticzVersion':'2020.2 (build 12381)' 2020-09-24 12:20:51.219 (Google_Chromecast) 'DomoticzHash':'c61747e36-modified' 2020-09-24 12:20:51.219 (Google_Chromecast) 'DomoticzBuildTime':'2020-09-14 09:52:29' 2020-09-24 12:20:51.219 (Google_Chromecast) Device count: 0 2020-09-24 12:20:51.219 (Google_Chromecast) PyChromeCast Version: 0.7.6 2020-09-24 12:20:51.219 (Google_Chromecast) Pushing 'NotifierDirective' on to queue 2020-09-24 12:20:51.224 (Google_Chromecast) handleMessage: Entering notification handler 2020-09-24 12:20:51.228 (Google_Chromecast) Processing 'NotifierDirective' message 2020-09-24 12:20:51.228 (Google_Chromecast) Notifier Name set to: Google_Devices. 2020-09-24 12:20:51.231 (Google_Chromecast) IP Address is: 192.168.1.74 2020-09-24 12:20:51.231 (Google_Chromecast) Notifications will use IP Address: 192.168.1.74:13376 to serve audio media. 2020-09-24 12:20:51.231 (Google_Chromecast) Pushing 'ProtocolDirective' on to queue 2020-09-24 12:20:51.231 (Google_Chromecast) Pushing 'ListenDirective' on to queue 2020-09-24 12:20:51.281 (Google_Chromecast) Processing 'ProtocolDirective' message 2020-09-24 12:20:51.281 (Google_Chromecast) Protocol set to: 'HTTP'. 2020-09-24 12:20:51.281 (Google_Chromecast) Processing 'ListenDirective' message 2020-09-24 12:20:51.281 (Google_Chromecast) Transport set to: 'TCP/IP', :13376. 2020-09-24 12:20:51.281 (Google_Chromecast) Listen directive received, action initiated successfully. 2020-09-24 12:20:51.179 Status: (Google_Chromecast) Entering work loop. 2020-09-24 12:20:51.179 Status: (Google_Chromecast) Initialized version 1.21.9, author 'dnpwwo' 2020-09-24 12:20:51.309 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host' 2020-09-24 12:20:51.368 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host' 2020-09-24 12:20:51.390 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host' 2020-09-24 12:20:51.412 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host' 2020-09-24 12:20:51.436 Error: (Google_Chromecast) discoveryCallback: 'Chromecast' object has no attribute 'host'

rezzalex commented 3 years ago

What is weird is this log line PyChromeCast Version: 0.7.6

and this in terminal :

image

rezzalex commented 3 years ago

Hello, Someone could help me ? dnpwwo ?

thomasGomes commented 3 years ago

Hello,

I have the same issue. Can you help us? Thanks

thomasGomes commented 3 years ago

It works fine for me with a correct version of pychromecast (the latest seems to be broken): sudo pip3 install pychromecast==6.0.0

rezzalex commented 3 years ago

I Worked. Thanks a lot thomasGomes. How did you find out ?

thomasGomes commented 3 years ago

I Worked. Thanks a lot thomasGomes. How did you find out ?

I find the solution here: https://www.domoticz.com/forum/viewtopic.php?t=27435&start=100

rezzalex commented 3 years ago

I saw previously without considering it... Thanks again