thomas-villagers / domoticz-yamaha

Python plugin for Domoticz to control Yamaha AV Receivers (Aventage Series) via TCP/IP
GNU General Public License v3.0
17 stars 11 forks source link

onMessage error during startup #21

Closed balonchiks closed 4 years ago

balonchiks commented 6 years ago

Hi, thanks for the great plugin! But unfortunately i am having an issue ever since i upgraded to the latest version. When i start the plugin, it floods the log with:

2018-07-21 06:40:18.412 Status: (Yamaha) Started.
2018-07-21 06:40:19.184 Status: (Yamaha) Initialized version 2.0.0, author 'thomasvillagers'
2018-07-21 06:40:19.185 Status: (Yamaha) Entering work loop.
2018-07-21 06:40:19.457 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 132 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.458 Error: (Yamaha) ----> Line 106 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getMediaDevice
2018-07-21 06:40:19.463 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 136 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 201 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setVolume
2018-07-21 06:40:19.464 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.464 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 134 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 216 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setInput
2018-07-21 06:40:19.466 Error: (Yamaha) ----> Line 109 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getInputDevice
2018-07-21 06:40:19.466 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 139 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.468 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 141 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 204 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setDspProgram
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 115 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getDspProgramDevice

I am running the latest domoticz beta with Python 3.5.3 installed

I have tried completely removing the plugin including the directory and reinstalling but with the same result. Does anyone have any ideas? Thank you.

z1mEk commented 6 years ago

Please remove Yamaha icon from custom icons.

balonchiks commented 6 years ago

I did, and even tried to completely remove the plugin and reinstall it back and it doesn’t seem to help

Fleshi1981 commented 5 years ago

I also got exact the same problem and also for me removing the icons doesn't solve the problem. Is there something else I need to do?

z1mEk commented 5 years ago

I overcame the KeyError problem but now the plugin does not create devices :(

2018-09-14 11:39:31.279 (Yamaha) Creating device 'Main'. 2018-09-14 11:39:31.279 (Yamaha) Create Volume Device - Main 2018-09-14 11:39:31.279 (Yamaha) Creating device 'Volume Main'. 2018-09-14 11:39:31.279 (Yamaha) Create Input Device - Main 2018-09-14 11:39:31.279 (Yamaha) Creating device 'Input Main'. 2018-09-14 11:39:31.279 (Yamaha) Create DSP Program Device - Main 2018-09-14 11:39:31.279 (Yamaha) Creating device 'DSP Program Main'. 2018-09-14 11:39:31.279 (Yamaha) Create Scene Device - Main 2018-09-14 11:39:31.279 (Yamaha) Creating device 'Scene Main'. 2018-09-14 11:39:31.279 (Yamaha) Pushing 'ProtocolDirective' on to queue 2018-09-14 11:39:31.279 (Yamaha) Pushing 'ConnectDirective' on to queue 2018-09-14 11:39:31.279 (Yamaha) Pushing 'PollIntervalDirective' on to queue 2018-09-14 11:39:31.279 (Yamaha) Processing 'ProtocolDirective' message 2018-09-14 11:39:31.279 (Yamaha) Protocol set to: 'Line'. 2018-09-14 11:39:31.279 (Yamaha) Processing 'ConnectDirective' message 2018-09-14 11:39:31.279 (Yamaha) Transport set to: 'TCP/IP', 192.168.1.175:50000. 2018-09-14 11:39:31.280 (Yamaha) Connect directive received, action initiated successfully. 2018-09-14 11:39:31.280 (Yamaha) Processing 'PollIntervalDirective' message 2018-09-14 11:39:31.280 (Yamaha) Heartbeat interval set to: 20. 2018-09-14 11:39:31.280 (Yamaha) Pushing 'onConnectCallback' on to queue 2018-09-14 11:39:31.280 (Yamaha) Pushing 'DisconnectedEvent' on to queue 2018-09-14 11:39:31.330 (Yamaha) Processing 'onConnectCallback' message 2018-09-14 11:39:31.330 (Yamaha) Calling message handler 'onConnect'. 2018-09-14 11:39:31.330 (Yamaha) onConnect called. Status: 111 2018-09-14 11:39:31.330 (Yamaha) Processing 'DisconnectedEvent' message 2018-09-14 11:39:31.330 (Yamaha) Disconnect event received for '192.168.1.175:50000'. 2018-09-14 11:39:31.330 (Yamaha) Pushing 'onDisconnectCallback' on to queue 2018-09-14 11:39:31.330 (Yamaha) Processing 'onDisconnectCallback' message 2018-09-14 11:39:31.330 (Yamaha) Calling message handler 'onDisconnect'. 2018-09-14 11:39:31.330 (Yamaha) onDisconnect called 2018-09-14 11:39:31.059 Status: (Yamaha) Started. 2018-09-14 11:39:31.270 Status: (Yamaha) Entering work loop. 2018-09-14 11:39:31.271 Status: (Yamaha) Initialized version 2.0.0, author 'thomasvillagers' 2018-09-14 11:39:40.774 (Yamaha) Pushing 'onHeartbeatCallback' on to queue

balonchiks commented 4 years ago

not seeing this issue anymore somehow. closing.