Bei mir macht das Plugin jetzt "Harakiri" im Log. Schaus mir am Wochenende genauer an, habe leider die ganze Woche Schulung und komme leider zu nichts.
Ankündigung
Einklappen
Keine Ankündigung bisher.
Neues Plugin: AV Device (für Yamaha, Pioneer, Denon, etc.)
Einklappen
X
-
Hab jetzt mal kurz probiert, Zeit ist knapp wie leider häufig in der letzten Zeit :-(
Also Power, Mute und Volume setzen funktioniert 1A. Auch die Rückmeldung wenn ich am AVR selbst was ändere.
Werd mal einen Langzeittest machen und versuchen noch die anderen items einzubauen. Aber ich glaube es ist eigentlich nur noch "Source" ?
Wie sieht es mit dem Display aus ? Also quasi die "Now Playing" ?
Was mir aufgefallen ist: Dir Rückmeldung wenn du am AVR an dem Master Volume schraubst ist ein bischen schleppend. Ich nehme an die Rückmeldungen werden auch gebuffert und eine nach dem anderen abgearbeitet ? Falls das so ist könntest du eventuell, ähnlich wie bei der send queue, die Liste parsen und ein eventuell schon vorhandenes MVxx durch das neuste ersetzen ? Versuch mal schnell am AVR den Master Volume hoch und dann wieder runterzudrehen, dann siehst du was ich meine :-)
Ansonsten kann ich bis jetzt nur sagen Top Job. Scheint wirklich sehr stabil zu werden ....
Serge
Kommentar
-
Habe noch ein paar Bugfixes gemacht... Die Idee von Denon, alle Infos zu den Zonen mit den gleichen Commandos los zu schicken war echt mies
Wenn autoreconnect nicht im yaml angegeben war, hat sich's auch aufgehängt.. möglicherweise war das das Problem bei psilo
RS232 hat die Initialisierung auch nur beim Pioneer geklappt, jetzt auch beim Denon.
Ich bin nun dabei, den Code auseinander zu dröseln in einzelne Files und Klassen, um es übersichtlicher zu gestalten. Dabei möchte ich auch das Threading überarbeiten. Momentan ist es nämlich so, dass bei mir das Plugin hängen bleibt, wenn keine Rückmeldung vom Receiver kommt, obwohl er verbunden ist. Vielleicht ist so auch das "still alive" Problem beim Beenden zu lösen.
Wenn ihr hier Hinweise und Tipps bezüglich Threads, Queues, etc. habt, bitte gerne!
Was derzeit NICHT geht:
- Now Playing: muss ich mir für Denon generell noch ansehen
- Abfangen mehrerer gleicher Rückmeldungen (zB Volume mittels Fernbedienung)
- Ersetzen eines bereits vorhandenen Befehls in der Commandoliste für Zone2-4: für die Hauptzone sollte es problemslos funktionieren, für Zone 2 wird derzeit auch ein anderer Befehl ersetzt, da er eben gleich startet (Z2 bzw. Z3)
- Zurücksetzen eines Items aus der Zone 2 und 3 aus oben genannten Gründen. Hier muss noch Länge der erwarteten Rückmeldung sowie Typ dieses Werts implementiert werden, um das korrekte Item zurückzusetzen.Angehängte Dateien
Kommentar
-
ich starte gleich mal durch...immernoch zig logmessages pro sekunde, vielleicht ist das aber auch normal?!
Code:2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:05 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:05 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:06 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:06 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:06 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:06 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:06 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:06 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:07 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting to parse input. Lock is: False. Alive: True. Connected: ['TCP']. Sendcommand:PW?,PW?,PW 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Response: PWSTANDBY. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Parsing input while waiting for response. Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response while parsing: ['PW', 'ZM', 'MU']. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Expected response edited: ['PW']. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Starting to store value for data PWSTANDBY in dictionary. Lock is: True. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value STA is type <class 'str'>. Not writing value! 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Found writeable dict key: PW with type bool, but received value ST is type <class 'str'>. Not writing value! 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Storing Values denon: Finished. Lock is: False. 2017-07-28 18:56:07 WARNING avdevice-tcp-reconnect_denon Parsing Input denon: Problems with checking for expected response. Error: 'NoneType' object is not iterable 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Starting comparing values for data PWSTANDBY. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: STA. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue STA does not match type bool - ignoring it. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Neither Display nor Now Playing in response. receivedvalue: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Converting Values denon: Received Value is now: ST. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Receivedvalue ST does not match type bool - ignoring it. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Finished. 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Newly sorted send commands at end of parsing: ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU'] 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function called by: parseinput_final. Lock is: False 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Sending function initializing... Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Starting to send command PW? from list ['PW?,PW?,PW', 'ZM?,ZM?,ZM', 'MU?,MU?,MU']. Caller: parseinput_final. Lock is: True 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending denon: Trying to connect while sending command 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Starting to connect. Current Connections: ['TCP'] 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Connecting denon: Depending is false. Message: 'NoneType' object is not callable 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Sending TCP denon: command was sent PW? from Multicommand-List ['PW?']. Returns 4 2017-07-28 18:56:07 DEBUG avdevice-tcp-reconnect_denon Parsing Input denon: Sending again because list is not empty yet. Sending return is 4. Lock is released. Now it is False. 2017-07-28 18:56:07 DEBUG Main Stopping denon: closed 2017-07-28 18:56:07 DEBUG Main Stopping denon: No Serial socket to close.
Zuletzt geändert von psilo; 28.07.2017, 17:57.
Kommentar
-
psilo Es ist fast normal..Ich werde das Debug Logging dann schon noch runter schrauben, sobald alles sauber läuft bzw. versch. Debuglevels definieren. Eine Idee, wie ich das am besten machen kann? Mit einer globalen Variable einfach oder gibts ne noblere Lösung?
Jedenfalls ist das PW bei Denon leider doof.. du müsstest den Eintrag im Textfile bitte so anpassen:
0;power off;PWSTANDBY;PW?;PW*******;RW
Ich muss mir das noch überlegen. Generell ist ein * ein Zeichen, das wäre hier ja konsequent. Bei String Befehlen wie Source ist aber die Länge des Werts variabel, weshalb es hier mit nur einem * als Platzhalter funktioniert. Genau genommen müsste ich hier ein anderes Zeichen nehmen, aber ich lass es jetzt vorerst mal so.
Kommentar
-
Hallo zusammen, ich habe einen denon-avr2400 und würde mich gerne an den Tests beteiligen. aus der bisheriegen kommunikation erschiesst sich mir noch nicht wie das item file aufzubauen ist. ich habe unter plugins die zip entpackt, das txt file angepasst und rätsel wie das item file aussehen sollte.
Für einen Tip bin ich dankbar.
Kommentar
-
Zitat von Onkelandy Beitrag anzeigenWerde die nächste Zeit noch versuchen, alles etwas umzustrukturieren.. vorerst gerne Berichte von eurer Seite.
Umgekehrt nehme ich an, dass es genau gleich ist ? Will heissen jemand mit reinem seriellen Anschluss hat auch beide tasks im scheduler ?avdevice-serial-reconnect {10: None} avdevice-tcp-reconnect {10: None}
Serge
Kommentar
-
Ja, das Anlegen der Scheduler verschiebe ich in die entsprechenden Funktionen, damit nur der relevante Scheduler erstellt wird. Momentan bin ich mal zumindest soweit, dass ich die Initialisierung und Verbindungsaufbau ausgelagert habe. Macht's etwas übersichtlicher. Beim anderen Code bin ich noch dran, die offenen Punkte einzuarbeiten. Melde mich dann wieder.
Ansonsten läuft soweit alles?
Kommentar
-
Habe ein großes neues Update online gestellt:
https://github.com/onkelandy/plugins...lugin/avdevice
Neben einer Reihe genereller Optimierungen werden noch auch bei Denon Receivern Zonen unterstützt. Freue mich über Testrückmeldungen.
Bitte auf Branch avdevice_plugin stellen!! Files wurden soeben neu upgedatet (17.10. 13:00)
Kommentar
-
Onkelandy ich habe den PR heute morgen aufgenommen, kriege jetzt aber das hier:
Code:2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'string' for parameter 'model' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'string' for parameter 'manufacturer' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'string' for parameter 'instance' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of values' for parameter 'tcp' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of values' for parameter 'rs232' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of values' for parameter 'ignoreresponse' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of strings' for parameter 'forcedbuffer' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of int' for parameter 'inputignoredisplay' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'item, value.' for parameter 'dependson' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'list of strings' for parameter 'errorresponse' -> using type 'foo' instead 2017-10-29 09:48:17 ERROR lib.metadata plugin 'avdevice': Invalid definition in metadata file 'plugins/avdevi ce/plugin.yaml': type 'int or boolean' for parameter 'responsebuffer' -> using type 'foo' instead
Kommentar
Kommentar