YAMAHA_AVR Verzögerungen

Begonnen von vbs, 05 November 2015, 13:36:33

Vorheriges Thema - Nächstes Thema

Schlimbo

Super, Danke für den Tipp, so funktioniert es viel besser.

dev0

Zitat von: Markus Bloch am 06 Dezember 2015, 12:40:32
Nimm die angehangene Version. Die hat alle aktuellen Änderungen von mir drin. Also Menü-browsen, sowie die entfernten "only be used when device is powered on"-Sachen.

Bin endlich zum Testen gekommen. System: DSP-Z7 (RX-V3900), 3 Zonen in Betrieb, WZ_AMP ist die Mainzone.
Modul ist das aus dem zitiertem Beitrag.

Mehrere Zonen einschalten funktioniert nicht ohne sleep. Wenn alle Zonen aus sind, dann wird ein sleep von min. 3s benötigt. Ist bereits eine Zone eingeschaltet, dann reicht ein sleep von 1s. Ohne sleep kein Fehler im Log.
Beispiel: set WZ_AMP on; sleep 3; set BA_AMP on; sleep 1; set KU_AMP on

Beim Ausschalten wird jeweils ein sleep von 1s benötigt. Ohne sleep kein Fehler im Log.
Beispiel: set WZ_AMP off; sleep 1; set BA_AMP off; sleep 1; set KU_AMP off

Verkette Befehle in den Zonen 1-3 funktionieren perfekt:
(Alle Zonen sind aus): set KU_AMP on; set KU_AMP input cd; set KU_AMP volume 10; set KU_AMP bass 2

Verkettete Befehle in der Mainzone verhalten sich "etwas komisch":
(Alle Zonen sind aus): set WZ_AMP on; set WZ_AMP input dvd; set WZ_AMP volume 20; set WZ_AMP bass 1
-> 2015.12.08 09:47:36.366 3: YAMAHA_AVR (WZ_AMP) - Could not execute "input dvd": received return code 4
-> Input wird nicht gesetzt, volume und bass sind ok.

(Alle Zonen sind aus): set WZ_AMP on; set WZ_AMP volume 10; set WZ_AMP input dvd; set WZ_AMP bass 2
-> 12.08 10:05:43.966 3: YAMAHA_AVR (WZ_AMP) - Could not execute "volume -62.5": received return code 4
-> Wird alles korrekt ausgeführt, trotz Fehlermeldung. Volume -62,5(db) der Fehlermeldung entspricht aber nicht den zu setzenden 70,5db (10)

Mit einen sleep 1 nach dem Einschalten funktioniert es:
set WZ_AMP on; sleep 1; set WZ_AMP volume 10; set WZ_AMP input dvd; set WZ_AMP bass 2

/Uli

Markus Bloch

Hallo Uli,

ja, das ist leider so. Manche Receiver-Modelle (wie z.B. deiner) mögen es ganz und garnicht, wenn man Millisekunden nach dem Einschalten schon den input wechseln will. Der Return-Code 4 bedeutet "Not successfully set due to a system error".

Andere Receiver kommen damit jedoch klar. So kann ich z.B. direkt ein set on, input ... als ein Befehl ausführen. Mein Receiver kommt damit klar und verarbeitet das entsprechend.

Was ich machen kann, ist eine Verzögerung in der Abarbeitung der Kommando-Warteschlange einzubauen. Sodass bei einem "set ... on" der nächste Befehl in der Warteschlange erst frühestens nach vergangenen x Sekunden abgearbeitet wird.

Viele Grüße

Markus

Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

dev0

Zitat von: Markus Bloch am 08 Dezember 2015, 12:07:36
Sodass bei einem "set ... on" der nächste Befehl in der Warteschlange erst frühestens nach vergangenen x Sekunden abgearbeitet wird.
Die Idee hatte ich auch schon, dann ist es an zentraler Stelle im Modul und man kann das Thema vergessen. Perfekt wäre es, wenn man die Sekunden mit einem Attribut konfigurieren könnte. Default 0 und sonst Wert des Attributs. Für set off bitte auch.

Toll, das du Zeit gefunden hast die command queue zu implementieren. Vielen Dank!
/Uli

Schlimbo

Eine Verzögerung im Modul, fände ich auch gut, hatte heute Morgen auch Probleme bei der Abarbeitung der Kommandos.
Bei mir wurde nach dem Einschalten der Eingang zwar richtig übernommen, aber die neue Menü Navigation benötigt bei mir nach dem Einschalten auch noch ein sleep.

Zitat von: dev0 am 08 Dezember 2015, 10:58:51
. Volume -62,5(db) der Fehlermeldung entspricht aber nicht den zu setzenden 70,5db (10)
Das habe ich auch beobachtet und war anfangs auch etwas verwirrt. Ich denke das hängt mit der ,,smoothing" Funktion zusammen, durch die ,,smoothing" Funktion wird eine Lautstärkeveränderung in mehreren Schritten ausgeführt und der Wert im Log ist der erste Schritt auf dem Weg zur gewünschte Lautstärke.
Markus, bitte korrigiere mich, wenn ich da falsch liege.

Markus Bloch

Zitat von: Schlimbo am 08 Dezember 2015, 14:00:26
Das habe ich auch beobachtet und war anfangs auch etwas verwirrt. Ich denke das hängt mit der ,,smoothing" Funktion zusammen, durch die ,,smoothing" Funktion wird eine Lautstärkeveränderung in mehreren Schritten ausgeführt und der Wert im Log ist der erste Schritt auf dem Weg zur gewünschte Lautstärke.
Markus, bitte korrigiere mich, wenn ich da falsch liege.

Alles korrekt so.

Die Verzögerung werde ich in den kommenden Tagen bauen.

Viele Grüße

Markus

Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

#21
Hallo zusammen,

anbei eine Version, wo ich die Verzögerungen in der Abarbeitung der Queue eingebaut habe. Bei einem set <name> on/off wird das nachfolgende Kommando in der Queue erst nach 2 Sekunden abgearbeitet.

Wenn ein set <name> input XY ausgeführt wird, wird ein abgespeckter StatusRequest an den Anfang der Warteschlange geschoben (noch vor allen anderen wartenden Kommandos), so dass beim nächsten regulären Kommando in der Warteschlange eine spezielle Information verfügbar ist, die für das navigateListMenu sehr wichtig ist.

Aufgrund dieser Änderungen kann man nun folgendes durchführen:

set AV_Receiver on;  set AV_Receiver volume 25 direct; set AV_Receiver input netradio ; set AV_Receiver navigateListMenu Lesezeichen/Favoriten/1LIVE

Klappt bei mir ohne Probleme. Keine sleeps mehr notwendig.

Auch entsprechende Kommandokonstrukte wo man einen Input umschaltet und dann direkt anschließend die Befehle play/pause/stop/skip/shuffle/repeat verwendet, funktionieren damit jetzt auch ohne jegliche sleeps.

Bitte probiert mal bei euch, ob das auch so klappt, insbesondere mit den Zonen und dem RX-V3900.

Vielen Dank

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

Hallo zusammen,

das ganze gilt auch für das volume-Kommando.

Wenn man nun folgenden Befehl ausführt:

aktuelle Lautstärke: -45 dB
set AV_Receiver volumeStraight -70; set AV_Receiver input; ...

Dann wird bei der Evaluierung des Befehls folgende CMD-Queue erzeugt:

1. set volume => -70
2. set input

Da der volume Befehl aber ohne "direct-Zusatz ausgeführt wurde, würde jetzt das volume-smoothing anfangen und folgendes draus machen:

1. set volume => -50
2. set input
3. set volume => -55
4. set volume => -60
usw.

Durch die Möglichkeit, Zusatz-Requests, welche notwendig sind, um einen initialen Request zu erfüllen, an den Anfang zu schieben, wird das ganze nun automatisch so aufgebaut:

1. set volume => -50
2. set volume => -55
3. set volume => -60
4. set volume => -66
5. set volume => -70
6. set input

Somit sind die Befehle wieder in der richtigen Reihenfolge und laufen in der richtigen Reihenfolge sauber ab.

Somit brauch man auch darauf nicht mehr zu achten und kann beliebig befehle hintereinander schreiben mit volume, input, remoteControl befehle ohne auf irgendwas Rücksicht nehmen zu müssen.

Viele Grüße

Markus

Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

dev0

Zitat von: Markus Bloch am 09 Dezember 2015, 21:24:21
Bitte probiert mal bei euch, ob das auch so klappt, insbesondere mit den Zonen und dem RX-V3900

Moin Markus,

leider funktioniert die neue Version des Modules gar nicht mit dem DSP-Z7 (RX-V3900).
Ich hänge mal ein verbose 5 log von der neuen Version und der Modul Version davor aus diesem Thread an.

Über die nicht gefundenen DSP modes musst Du Dir erstmal keine Gedanken machen, das funktionierte noch nie. Die müssen wir wahrscheinlich mal hard-coded hinterlegen. Mit Wireshark sieht man, dass selbst die Yamaha IOS App bei diesem Modell die Modes nicht abfragt, aber trotzdem setzen kann. Kann man anhand der Doku auch erahnen. Aber das soll hier und jetzt nicht das Thema sein.

/Uli

Schlimbo

Hallo Markus,
bei meinem "RX-V773" funktioniert die neue Version auch nicht.

Hier der Log dazu:
2015.12.10 17:38:18 4: YAMAHA_AVR (AV_Receiver) - append to queue "navigateListMenu Hinzugefügten,True RnB": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><[CURRENT_INPUT_TAG]><List_Info>GetParam</List_Info></[CURRENT_INPUT_TAG]></YAMAHA_AV>
2015.12.10 17:38:18 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver navigateListMenu Hinzugefügten,True RnB
2015.12.10 17:38:18 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:18 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:15 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver ?
2015.12.10 17:38:15 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:15 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:15 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver ?
2015.12.10 17:38:15 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:15 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Treble>GetParam</Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Bass>GetParam</Bass></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest systemConfig": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Config>GetParam</Config></System></YAMAHA_AV>
2015.12.10 17:38:13 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest unitDescription": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Unit_Desc>GetParam</Unit_Desc></System></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Treble>GetParam</Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Bass>GetParam</Bass></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest systemConfig": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Config>GetParam</Config></System></YAMAHA_AV>
2015.12.10 17:38:03 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest unitDescription": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Unit_Desc>GetParam</Unit_Desc></System></YAMAHA_AV>
2015.12.10 17:38:01 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver ?
2015.12.10 17:38:01 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:01 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:01 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver ?
2015.12.10 17:38:01 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:38:01 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Treble>GetParam</Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Bass>GetParam</Bass></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest systemConfig": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Config>GetParam</Config></System></YAMAHA_AV>
2015.12.10 17:37:53 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest unitDescription": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Unit_Desc>GetParam</Unit_Desc></System></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Treble>GetParam</Treble></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Sound_Video><Tone><Bass>GetParam</Bass></Tone></Sound_Video></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest systemConfig": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Config>GetParam</Config></System></YAMAHA_AV>
2015.12.10 17:37:43 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest unitDescription": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Unit_Desc>GetParam</Unit_Desc></System></YAMAHA_AV>
2015.12.10 17:37:37 5: YAMAHA_AVR (AV_Receiver) - set AV_Receiver ?
2015.12.10 17:37:37 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getScenes": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></Main_Zone></YAMAHA_AV>
2015.12.10 17:37:37 4: YAMAHA_AVR (AV_Receiver) - append to queue "statusRequest getInputs": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></Main_Zone></YAMAHA_AV>


Kann mit dieser Version nichts mehr steuern und der Status wird auch nicht aktualisiert.


Gruß Schlimbo

Markus Bloch

Hallo zusammen,

Fehler gefunden. Ich hatte die entsprechende Änderung die das verursacht nicht in Verbindung mit einem FHEM Neustart getestet, sondern nur ein Modul-Reload gemacht.

Jetzt klappts aber.

Gruß und danke für eure Geduld.

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

Bitte beachtet, dass diese Version bereits "/" als Trennzeichen für die Menüeinträge in navigateListMenu benutzt.

also "set AV_Receiver navigateListMenu Hinzugefügten/True RnB" benutzen ;-)

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

Ich habe auch schonmal an der Commandref gearbeitet und den Teil mit dem Netradio-Beispiel via remoteControl-Befehle entfernt und durch den im Anhang befindlichen Teil ersetzt.

Schaut mal bitte drüber, ob man das so als normalsterblicher versteht. Passt das soweit, würde ich es in Deutsch nochmal verfassen.

Vielen Dank

Gruß
Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

dev0

Moin moin,

zu Netradio/remoteControl kann ich nichts sagen, da ich es nicht verwende.

shut restart:

2015.12.11 08:45:13.335 3: YAMAHA_AVR (WZ_AMP) - could not execute command on device WZ_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:13.359 3: YAMAHA_AVR (KU_AMP) - could not execute command on device KU_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:13.382 3: YAMAHA_AVR (BA_AMP) - could not execute command on device BA_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:15.889 3: YAMAHA_AVR (BA_AMP) - device BA_AMP reappeared
2015.12.11 08:45:15.923 1: PERL WARNING: Use of uninitialized value $zone in concatenation (.) or string at ./FHEM/71_YAMAHA_AVR.pm line 1141.
2015.12.11 08:45:15.927 3: YAMAHA_AVR (WZ_AMP) - device WZ_AMP reappeared
2015.12.11 08:45:15.940 3: YAMAHA_AVR (KU_AMP) - device KU_AMP reappeared


set KU_AMP on; set KU_AMP input cd; set KU_AMP volume 20; set KU_AMP bass 1
-> funktioniert

Ausgabe (fhemweb):
1
2
3


set BA_AMP on; set WZ_AMP on; set KU_AMP on
-> Schaltet pro Aufruf nur eine Zone ein (Delay zu gering? In meinen Versuchen benötigte die Zone an der 2. Stelle im Aufruf min. 3s)

(WZ_AMP wurde nicht eingeschaltet, verbose 5)

2015.12.11 09:21:50.281 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP on
2015.12.11 09:21:50.282 4: YAMAHA_AVR (WZ_AMP) - append to queue "on": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.282 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: on, arg: , data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:50.282 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:50.283 4: YAMAHA_AVR (WZ_AMP) - send command "on": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "on"
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - next command has to wait at least 2 seconds before execution
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - got response for "on": <YAMAHA_AV rsp="PUT" RC="0"><Main_Zone><Power_Control><Power></Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.593 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98475003242493 seconds before next item can be checked
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.595 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98305797576904 seconds before next item can be checked
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.596 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98176503181458 seconds before next item can be checked
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.598 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98044395446777 seconds before next item can be checked
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.599 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.97917294502258 seconds before next item can be checked
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.97774791717529 seconds before next item can be checked
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.785 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 0.98s)
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - we have to wait 0.975630044937134 seconds before next item can be checked
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: -0.03s)
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - item 0 is a dummy cmd item with 'not_before' set which is already expired, delete it and recheck index 0 again
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: basicStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 4 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.606 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:52.794 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest basicStatus"
2015.12.11 09:21:52.794 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest basicStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Basic_Status><Power_Control><Power>Standby</Power><Sleep>Off</Sleep></Power_Control><Vol><Lvl><Val>-610</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute></Vol><Input><Input_Sel>DVD</Input_Sel><Input_Sel_Title>DVD</Input_Sel_Title></Input><Surr><Pgm_Sel><Straight>Off</Straight><Pgm>7ch Stereo</Pgm></Pgm_Sel></Surr></Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:52.808 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.812 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.812 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.812 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest partyModeStatus"
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest partyModeStatus": <YAMAHA_AV rsp="GET" RC="0"><System><Party_Mode><Mode>Off</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.914 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.095 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:21:53.095 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Bass><Cross_Over><Val>125</Val><Exp>0</Exp><Unit>Hz</Unit></Cross_Over><Lvl><Val>10</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.096 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.096 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.097 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:53.097 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.203 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:21:53.203 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Treble><Cross_Over><Val>35</Val><Exp>1</Exp><Unit>kHz</Unit></Cross_Over><Lvl><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.204 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.204 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:53.205 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:21:53.299 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 400 for command "statusRequest fwUpdate"
2015.12.11 09:21:56.736 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:22:00.605 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: basicStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.605 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.605 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.607 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.607 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.608 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.608 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:22:00.686 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest basicStatus"
2015.12.11 09:22:00.686 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest basicStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Basic_Status><Power_Control><Power>Standby</Power><Sleep>Off</Sleep></Power_Control><Vol><Lvl><Val>-610</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute></Vol><Input><Input_Sel>DVD</Input_Sel><Input_Sel_Title>DVD</Input_Sel_Title></Input><Surr><Pgm_Sel><Straight>Off</Straight><Pgm>7ch Stereo</Pgm></Pgm_Sel></Surr></Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.689 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.794 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest partyModeStatus"
2015.12.11 09:22:00.795 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest partyModeStatus": <YAMAHA_AV rsp="GET" RC="0"><System><Party_Mode><Mode>Off</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.795 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.797 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.909 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:22:00.909 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Bass><Cross_Over><Val>125</Val><Exp>0</Exp><Unit>Hz</Unit></Cross_Over><Lvl><Val>10</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.910 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.911 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.911 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.911 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Treble><Cross_Over><Val>35</Val><Exp>1</Exp><Unit>kHz</Unit></Cross_Over><Lvl><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:01.096 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:01.096 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:22:01.200 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 400 for command "statusRequest fwUpdate"


Beim Ausschalten einer Zone über fhemweb erschien ein Popup mit der Ziffer 3 und im Log eine Warnung. Konnte ich aber auch nicht mehr reproduzieren. Ob die Warung wirklich durch das Modul ausgelöst wurde ist auch fraglich.

Use of uninitialized value $_[0] in concatenation (.) or string at /usr/local/share/perl/5.18.2/XML/Parser/Lite.pm line 169, <$client> line 7.


/Uli

Markus Bloch

Zitat von: dev0 am 11 Dezember 2015, 09:53:36
Moin moin,

zu Netradio/remoteControl kann ich nichts sagen, da ich es nicht verwende.

shut restart:

2015.12.11 08:45:13.335 3: YAMAHA_AVR (WZ_AMP) - could not execute command on device WZ_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:13.359 3: YAMAHA_AVR (KU_AMP) - could not execute command on device KU_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:13.382 3: YAMAHA_AVR (BA_AMP) - could not execute command on device BA_AMP. Please turn on your device in case of deactivated network standby or check for correct hostaddress.
2015.12.11 08:45:15.889 3: YAMAHA_AVR (BA_AMP) - device BA_AMP reappeared
2015.12.11 08:45:15.923 1: PERL WARNING: Use of uninitialized value $zone in concatenation (.) or string at ./FHEM/71_YAMAHA_AVR.pm line 1141.
2015.12.11 08:45:15.927 3: YAMAHA_AVR (WZ_AMP) - device WZ_AMP reappeared
2015.12.11 08:45:15.940 3: YAMAHA_AVR (KU_AMP) - device KU_AMP reappeared




Kannst du bitte einen shutdown restart nochmal mit verbose 5 machen? Einfach verbose 5 setzen, dann "Save Config" und einen neustart machen.


Zitat von: dev0 am 11 Dezember 2015, 09:53:36
set KU_AMP on; set KU_AMP input cd; set KU_AMP volume 20; set KU_AMP bass 1
-> funktioniert

Ausgabe (fhemweb):
1
2
3


Die Ausgaben habe ich auch, da muss ich nochmal schauen, wo das herkommt. Ich hab aber schon eine Vermutung.



Zitat von: dev0 am 11 Dezember 2015, 09:53:36
set BA_AMP on; set WZ_AMP on; set KU_AMP on
-> Schaltet pro Aufruf nur eine Zone ein (Delay zu gering? In meinen Versuchen benötigte die Zone an der 2. Stelle im Aufruf min. 3s)

(WZ_AMP wurde nicht eingeschaltet, verbose 5)

2015.12.11 09:21:50.281 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP on
2015.12.11 09:21:50.282 4: YAMAHA_AVR (WZ_AMP) - append to queue "on": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.282 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: on, arg: , data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:50.282 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:50.283 4: YAMAHA_AVR (WZ_AMP) - send command "on": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "on"
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - next command has to wait at least 2 seconds before execution
2015.12.11 09:21:50.578 5: YAMAHA_AVR (WZ_AMP) - got response for "on": <YAMAHA_AV rsp="PUT" RC="0"><Main_Zone><Power_Control><Power></Power></Power_Control></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.593 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98475003242493 seconds before next item can be checked
2015.12.11 09:21:50.594 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.595 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98305797576904 seconds before next item can be checked
2015.12.11 09:21:50.595 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.596 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98176503181458 seconds before next item can be checked
2015.12.11 09:21:50.597 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.598 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.98044395446777 seconds before next item can be checked
2015.12.11 09:21:50.598 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.599 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.97917294502258 seconds before next item can be checked
2015.12.11 09:21:50.599 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 1.98s)
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - we have to wait 1.97774791717529 seconds before next item can be checked
2015.12.11 09:21:50.601 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:50.785 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: 0.98s)
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - we have to wait 0.975630044937134 seconds before next item can be checked
2015.12.11 09:21:51.603 5: YAMAHA_AVR (WZ_AMP) - no suitable command item found
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: , arg: , data: 0, priority: 1, at_first: , not_before: -0.03s)
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - item 0 is a dummy cmd item with 'not_before' set which is already expired, delete it and recheck index 0 again
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: basicStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 4 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.606 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.606 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:52.794 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest basicStatus"
2015.12.11 09:21:52.794 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest basicStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Basic_Status><Power_Control><Power>Standby</Power><Sleep>Off</Sleep></Power_Control><Vol><Lvl><Val>-610</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute></Vol><Input><Input_Sel>DVD</Input_Sel><Input_Sel_Title>DVD</Input_Sel_Title></Input><Surr><Pgm_Sel><Straight>Off</Straight><Pgm>7ch Stereo</Pgm></Pgm_Sel></Surr></Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:52.808 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.811 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.812 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.812 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.812 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest partyModeStatus"
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest partyModeStatus": <YAMAHA_AV rsp="GET" RC="0"><System><Party_Mode><Mode>Off</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:21:52.912 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:52.913 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:52.914 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.095 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:21:53.095 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Bass><Cross_Over><Val>125</Val><Exp>0</Exp><Unit>Hz</Unit></Cross_Over><Lvl><Val>10</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.096 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.096 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.097 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:53.097 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.203 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:21:53.203 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Treble><Cross_Over><Val>35</Val><Exp>1</Exp><Unit>kHz</Unit></Cross_Over><Lvl><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:21:53.204 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:21:53.204 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:21:53.205 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:21:53.299 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 400 for command "statusRequest fwUpdate"
2015.12.11 09:21:56.736 5: YAMAHA_AVR (WZ_AMP) - set WZ_AMP ?
2015.12.11 09:22:00.605 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.605 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: basicStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.605 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.605 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest basicStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.607 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.607 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.608 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.608 4: YAMAHA_AVR (WZ_AMP) - append to queue "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:22:00.686 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest basicStatus"
2015.12.11 09:22:00.686 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest basicStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Basic_Status><Power_Control><Power>Standby</Power><Sleep>Off</Sleep></Power_Control><Vol><Lvl><Val>-610</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute></Vol><Input><Input_Sel>DVD</Input_Sel><Input_Sel_Title>DVD</Input_Sel_Title></Input><Surr><Pgm_Sel><Straight>Off</Straight><Pgm>7ch Stereo</Pgm></Pgm_Sel></Surr></Basic_Status></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: partyModeStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 3 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.688 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.689 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest partyModeStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Party_Mode><Mode>GetParam</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.794 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest partyModeStatus"
2015.12.11 09:22:00.795 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest partyModeStatus": <YAMAHA_AV rsp="GET" RC="0"><System><Party_Mode><Mode>Off</Mode></Party_Mode></System></YAMAHA_AV>
2015.12.11 09:22:00.795 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 2 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.796 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.797 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Bass>GetParam</Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.909 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:22:00.909 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Bass><Cross_Over><Val>125</Val><Exp>0</Exp><Unit>Hz</Unit></Cross_Over><Lvl><Val>10</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Bass></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:00.910 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: toneStatus, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.911 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 1 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:00.911 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:00.911 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest toneStatus": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Tone><Speaker><Treble>GetParam</Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 200 for command "statusRequest toneStatus"
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - got response for "statusRequest toneStatus": <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Tone><Speaker><Treble><Cross_Over><Val>35</Val><Exp>1</Exp><Unit>kHz</Unit></Cross_Over><Lvl><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Lvl></Treble></Speaker></Tone></Main_Zone></YAMAHA_AV>
2015.12.11 09:22:01.095 5: YAMAHA_AVR (WZ_AMP) - checking cmd queue item: 0 (cmd: statusRequest, arg: fwUpdate, data: 1, priority: , at_first: , not_before: )
2015.12.11 09:22:01.096 5: YAMAHA_AVR (WZ_AMP) - choosed item 0 as next command
2015.12.11 09:22:01.096 4: YAMAHA_AVR (WZ_AMP) - send command "statusRequest fwUpdate": <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><System><Misc><Network><Update><Status>GetParam</Status></Update></Network></Misc></System></YAMAHA_AV>
2015.12.11 09:22:01.200 5: YAMAHA_AVR (WZ_AMP) - received HTTP code 400 for command "statusRequest fwUpdate"


Die einzelnen Zonen-Definitionen (Main Zone, Zone 2, Zone 3, ....) haben jeweils eigene Kommando-Queue's, sowie eigene HTTP-Verbindungen und wissen nichts von einander. Von entsprechenden Verzögerungen wissen die anderen Zonen also nichts.

Es gebe mehrere Möglichkeiten, dem entgegenzuwirken:


  • Wenn eine Zone ein Kommando absetzt, was ein anschließendes Delay benötigt (aktuell "on" und "off"), dann werden entsprechende Delays in allen Zonen in deren Queue eingebracht. Die Queues halten sich dann auch jeweils separat an dieses Delay und arbeiten erst weiter, wenn diese jeweils einzeln verstrichen sind.

    Würde ich bevorzugen, da es relativ simpel zu implementieren ist.

  • Beim Start von FHEM, nachdem alle Definitionen geladen sind, checkt YAMAHA_AVR, ob es für dieselbe Adresse noch weitere Zonen-Definitionen in FHEM gibt. Sollte dem so sein, so werden alle Requests der einzelnen Zonen über die Queue einer einzigen YAMAHA_AVR-Instanz abgewickelt (bspw. die Instanz, welche zuerst definiert wurde), sodass alle Requests/Commands über eine einzelne Queue abgewickelt werden. Dann würden die Verzögerungen für das Einschalten von allen Zonen wieder greifen.

    Das erfordert allerdings etwas Test-Aufwand bei dir, da ich keine Zonen habe und das ganze "blind" entwickeln muss, was etwas aufwändig.


  • Alternativ müsstest du das sleep selber machen: set BA_AMP on; sleep 2; set WZ_AMP on; sleep 2; set KU_AMP on

Zitat von: dev0 am 11 Dezember 2015, 09:53:36

Beim Ausschalten einer Zone über fhemweb erschien ein Popup mit der Ziffer 3 und im Log eine Warnung. Konnte ich aber auch nicht mehr reproduzieren. Ob die Warung wirklich durch das Modul ausgelöst wurde ist auch fraglich.

Use of uninitialized value $_[0] in concatenation (.) or string at /usr/local/share/perl/5.18.2/XML/Parser/Lite.pm line 169, <$client> line 7.


/Uli

Diese Warnung stammt nicht von YAMAHA_AVR. Ich verwende XML::Parser::Lite nicht.

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)