Modul für Denon (Marantz) AV Receiver

Begonnen von raman, 03 Oktober 2016, 18:08:58

Vorheriges Thema - Nächstes Thema

bart

#45
Zitat von: raman am 17 Oktober 2016, 22:41:59
@bart:
Die ersten 3 Meldungen sind nicht so schlimm, nur nervig!
Anscheinend gibt es noch ein paar mehr Readings bei dir, die im Modul nicht erfasst sind.
Kannst du mal verbose auf 4 setzen und schauen, ob du die entspredchenden Readings identifizieren kannst.
Müsste dann sowas stehen: parsing <reading> to <unknown> oder es steht evtl ein HASH() dirn.

Habe ich gemacht und folgendes ist schon mal gleich gekommen:


2016.10.18 22:34:30 4: DENON_AVR AVR4520: parsing <NSLASDSP DSP> to <unknown message - NSLASDSP DSP>.
2016.10.18 22:34:30 4: DENON_AVR AVR4520: parsing <NSLASSTASCH OFF> to <unknown message - NSLASSTASCH OFF>.
2016.10.18 22:34:30 4: DENON_AVR AVR4520: parsing <NSLASSTAACC NRG> to <unknown message - NSLASSTAACC NRG>.
2016.10.18 22:34:33 4: DENON_AVR AVR4520: parsing <NSLASUSN> to <unknown message - NSLASUSN>.
2016.10.18 22:34:33 4: DENON_AVR AVR4520: parsing <NSLASPAS> to <unknown message - NSLASPAS>.
2016.10.18 22:34:33 4: DENON_AVR AVR4520: parsing <NSLAS NG> to <unknown message - NSLAS NG>.


Ich lasse es mal mit Verbose 4 weiter laufen und schaue, ob noch etwas kommt. Spannend ist, dass in meiner DENON AVR control protocol (PDF) nichts von diesen Werten finden kann.

Nachtrag, nach neustart kam noch:

2016.10.18 22:47:39 4: DENON_AVR AVR4520: parsing <CVSW2 50> to <unknown message - CVSW2 50>


Dazu findet man was im Dokument:

Command -> Parameter -> Example
CV -> SW2 UP ->  CVSW U
CV -> SW2 DOWN ---SUBWOOFER2ch -> CVSW DOWN
CV -> SW2 ** **:38 to 62 by ASCII , 50=0dB,00=OFF -> CVSW 50

CCU2 für die Heizungsteuerung und Fenster/Türkontakte
FHEM auf Debian-Server (x64) für den Rest
HMCCU: Schnittstelle CCU2 - FHEM

raman

#46
CVSW2 50

ist der Pegel vom 2. Subwoofer.
Ist eigentlich drin, nur die RegEx fürs reading passt nicht. Werd ich fixen.

Bei den anderen kann ich auch nur raten!

DSP hat sicher was mit dem digitalen Signal Prozessor zu tun?!
ACC = Advanced Audio Coding?

Das kann man nur mit Ausprobieren rausfinden, indem man im Setup mal die Einstellungen ändert
und schaut, ob sich die Readings ändern.

raman


bart

Ich habe mal die neue Version getestet. Dabei sind mir neue Fehlermeldungen aufgefallen. Ich habe als Test sowohl Geräte für Main als auch Zone 2 - 4 angelegt.

2016.10.20 11:27:10 1: ERROR: empty name in readingsBeginUpdate
2016.10.20 11:27:10 3: stacktrace:
2016.10.20 11:27:10 3:     main::readingsBeginUpdate           called by ./FHEM/71_DENON_AVR_ZONE.pm (506)
2016.10.20 11:27:10 3:     main::DENON_AVR_ZONE_Parse          called by fhem.pl (3383)
2016.10.20 11:27:10 3:     main::Dispatch                      called by ./FHEM/70_DENON_AVR.pm (2648)
2016.10.20 11:27:10 3:     main::DENON_AVR_UpdateConfig        called by fhem.pl (2825)
2016.10.20 11:27:10 3:     main::HandleTimeout                 called by fhem.pl (604)
2016.10.20 11:27:10 1: PERL WARNING: Use of uninitialized value $name in concatenation (.) or string at fhem.pl line 4070.
2016.10.20 11:27:10 1: readingsUpdate(,presence,present) missed to call readingsBeginUpdate first.
2016.10.20 11:27:10 3: AVR4520 device opened
2016.10.20 11:27:15 1: ERROR: empty name in readingsBeginUpdate
2016.10.20 11:27:15 3: stacktrace:
2016.10.20 11:27:15 3:     main::readingsBeginUpdate           called by ./FHEM/71_DENON_AVR_ZONE.pm (506)
2016.10.20 11:27:15 3:     main::DENON_AVR_ZONE_Parse          called by fhem.pl (3383)
2016.10.20 11:27:15 3:     main::Dispatch                      called by ./FHEM/70_DENON_AVR.pm (2648)
2016.10.20 11:27:15 3:     main::DENON_AVR_UpdateConfig        called by fhem.pl (2825)
2016.10.20 11:27:15 3:     main::HandleTimeout                 called by fhem.pl (604)
2016.10.20 11:27:15 1: readingsUpdate(,presence,present) missed to call readingsBeginUpdate first.
CCU2 für die Heizungsteuerung und Fenster/Türkontakte
FHEM auf Debian-Server (x64) für den Rest
HMCCU: Schnittstelle CCU2 - FHEM

akamia

Wenn ich die Zone 2 oder die Zone 3 einschalte, die Hauptzone ist ausgeschaltet, dann "leuchtet" auch das Lämpchen für die Hauptzone jeweils mit. Die Hauptzone wird aber nicht eingeschaltet. Soll sie ja auch nicht. Z2 und Z3 werden richtig ein- bzw. ausgeschaltet.
FHEM 5.8 auf CubieTruck, HomeMatic, 1-wire, KM200, FBH, DENON X4000, Solo4k, Arduinos, Milight, 7580, ioBroker, etc.

raman

@bart:
Danke, den Fehler werd ich fixen.

@akamia:
Es wird nicht der Status der Hauptzone, sondern der Powerstatus des Recievers angezeigt.
Den Status der Hauptzone gibts z.Zt. nur als Reading im Hauptmodul.
Muss mal schauen, ob und wie ich das in Zukunft umsetze!

akamia

Hallo raman,

danke für den Hinweis. Da mein X4000 auf dem Boden im 19"-Rack eingebaut ist, benutze ich die Anzeige ob noch irgendwo ein Stromfresser aktiv ist. Ich kann notfalls auch ein anderes Reading verwenden zur Visualisierung.
FHEM 5.8 auf CubieTruck, HomeMatic, 1-wire, KM200, FBH, DENON X4000, Solo4k, Arduinos, Milight, 7580, ioBroker, etc.

raman

Neue Version  im 1. Post angehängt!

Ich hab die Statusabfrage geändert. War nicht schwer einzubauen.
Außerdem hab ich den Befehl zum Ein-/Ausschalten der Hauptzone ergänzt.
Habe ich ganz vergessen.

Power-Stati für stateAV sind folgende:

power on + zoneMain on --> grün
power on + zoneMain off --> gelb
power off + zoneMain off --> ohne Farbe
                         (absent --> rot)


Wenn das Modul schon definiert ist, muss man das Attribut devStateIcon folgendermaßen händisch anpassen:


on:rc_GREEN:off mainOff:rc_YELLOW:main_on off:rc_STOP:on absent:rc_RED muted:rc_MUTE@green:muteT playing:rc_PLAY@green:pause paused:rc_PAUSE@green:play

michiatlnx

Hallo, ich habe die beiden Module geladen.

Allerdings stürtz beim fhem mit folgender Meldung ab:
Can't use string ("verticalStretch") as a HASH ref while "strict refs" in use at ./FHEM/70_DENON_AVR.pm line 734.

Featurelevel: 5.7

define DenonAVR DENON_AVR DenonAVR:23
attr DenonAVR cmdIcon muteT:rc_MUTE
attr DenonAVR devStateIcon on:rc_GREEN:off mainOff:rc_YELLOW:main_on off:rc_STOP:on absent:rc_RED muted:rc_MUTE@green:muteT playing:rc_PLAY@green:pause paused:rc_PAUSE@green:play
attr DenonAVR event-on-change-reading power
attr DenonAVR room Mulimedia
attr DenonAVR stateFormat power
attr DenonAVR verbose 1
attr DenonAVR webCmd volumeStraight:power:input:sound:preset

Verbose 1 musste ich setzen, wenn der Receiver vom Strom ist wird das fhem Log durch das Denon Module vollgeschrieben:
2016.10.21 12:59:48 2: DenonAVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.21 13:00:53 2: DenonAVR: first attempt to read timed out, trying to close and open the device.

Receiver Denon AVR-1912

Ansonsten cooles Modul mit so vielen Features, vielen Dank.
FHEM Container with mysql on Debian 8 INTEL NUC5PPYB (Celeron N3050) - FTUI on Blackview Tab 8E 10,1" - HMLAN - CCU3 with piVCCU on Raspberry Pi 4B - some HM-Devices - EM 1000-WZ via nanoCUL868 - SIGNALduino - SIGNALESP - AirPurifier3C - MQTT for CO2-Sensor(MH-Z19C), Gosund SP1, XY-WFUSB

raman

Die log-Einträge sind nicht direkt vom Denon-Modul,
die werden von DevIo.pm erzeugt.

Amenophis86

#55
Mir ist folgendes aufgefallen. Ich hatte ein Sub, welche auf

if(Value("Denon_AVR") = "on")

lauschen sollte und diese ist manchmal nicht gestartet und ich habe mich immer gewundert wieso. Jetzt habe ich den Fehler gefunden, Value("Denon_AVR") hat nicht als Wert gehabt, sondern "present". Allerdings stand in der WEB Übersicht on. Kann das sein? Und brauch es nach dem Einschalten ein Moment, bis von present auf on gewechselt wird??

Edit:
Habe mir gerade mal die aktuellste Version aus dem Post geholt. Für was steht "set Denon channelVolume FrontLeft -1" in der Readme drin?
Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...

Amenophis86

Jetzt habe ich gerade FHEM und auch das Denon Modul geupdatet und folgendes Problem:

Mein Denon sitzt hinter einer schaltbaren Steckdose und ist somit bei nicht Nutzung vom Strom getrennt. Dies war mit der alten Version kein Problem, da hat er zwei Mal versucht zu Verbinden nach der Abschaltung und dann war es ok. Jetzt habe ich ständig den Versuch und damit den Fehler im Log:

2016.10.23 12:11:25 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:11:25 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:11:25 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:11:25 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:12:30 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:12:30 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:12:33 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:12:33 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:12:33 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:13:38 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:13:38 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:13:41 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:13:41 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:13:41 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:14:47 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:14:47 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:14:50 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:14:50 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:14:50 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:15:55 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:15:55 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:15:58 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:15:58 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:15:58 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:17:03 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:17:03 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:17:06 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:17:06 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:17:06 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:18:11 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:18:11 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:18:14 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:18:14 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:18:14 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:19:19 2: Denon_AVR: first attempt to read timed out, trying to close and open the device.
2016.10.23 12:19:19 3: Opening Denon_AVR device 192.168.2.24:23
2016.10.23 12:19:22 3: Can't connect to 192.168.2.24:23: No route to host
2016.10.23 12:19:22 2: Denon_AVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.23 12:19:22 3: Opening Denon_AVR device 192.168.2.24:23


und so geht es weiter. Lässt sich das irgendwie unterbinden?

Edit:
Hat das hiermit zu tun: https://forum.fhem.de/index.php/topic,59419.0.html ??
Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...

LookAndFeel

Hallo,
heute auch fhem und das Denonmodul geupdated.
leider stürtzt fhem ab mit der Meldung:

"Can't use string ("verticalStretch") as a HASH ref while "strict refs" in use at ./FHEM/70_DENON_AVR.pm line 734."

Außerdem gibt es diverse Warnungen:
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x16b3e88) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x1e0b778) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x250a6f8) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x28e7998) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x2906800) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x291d620) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x291dd48) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x291e738) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x2920ac8) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.
2016.10.23 13:39:35 3: WARNING: unsupported character in reading HASH(0x2920e40) (not A-Za-z/\d_\.-), notify the DENON_AVR module maintainer.

Danke und Gruß
LookAndFeel

Zitat von: michiatlnx am 21 Oktober 2016, 16:57:45
Hallo, ich habe die beiden Module geladen.

Allerdings stürtz beim fhem mit folgender Meldung ab:
Can't use string ("verticalStretch") as a HASH ref while "strict refs" in use at ./FHEM/70_DENON_AVR.pm line 734.

Featurelevel: 5.7

define DenonAVR DENON_AVR DenonAVR:23
attr DenonAVR cmdIcon muteT:rc_MUTE
attr DenonAVR devStateIcon on:rc_GREEN:off mainOff:rc_YELLOW:main_on off:rc_STOP:on absent:rc_RED muted:rc_MUTE@green:muteT playing:rc_PLAY@green:pause paused:rc_PAUSE@green:play
attr DenonAVR event-on-change-reading power
attr DenonAVR room Mulimedia
attr DenonAVR stateFormat power
attr DenonAVR verbose 1
attr DenonAVR webCmd volumeStraight:power:input:sound:preset

Verbose 1 musste ich setzen, wenn der Receiver vom Strom ist wird das fhem Log durch das Denon Module vollgeschrieben:
2016.10.21 12:59:48 2: DenonAVR: second attempt to read timed out, this is an unrecoverable error.
2016.10.21 13:00:53 2: DenonAVR: first attempt to read timed out, trying to close and open the device.

Receiver Denon AVR-1912

Ansonsten cooles Modul mit so vielen Features, vielen Dank.

raman

#58
@Amenophis86
Ich hab den Reconnect wieder geändert, jetzt sollten die logs ab einem bestimmten verbose-level nicht mehr auftauchen.

@LookAndFeel und michiatlnx
Den Fehler, der zum Absturz führt, sollte behoben sein, bitte testen.

@LookAndFeel
Anscheinend hat dein Reciever noch einige unbekannte Readings. Welches Modell hast du?
Das muss ich noch fixen, dass unbekannte Redings nicht zu einem Fehler führen,
da es Readings gibt, die nicht dokumentiert sind.

edit:
Hab grad in einem früheren Post gesehen, dass du einen Marantz 1602 hast.

Jotoc

Hallo,

leider funktioniert das mit dem Reconnect bei meinem AVR 2313 nicht.
Ein Reconnect kann ich erst machen, nachdem ich den Denon direkt mit der eigenene Fernbedienung einschalte. Der Denon ist immer auf Standby und auch im Netzwerk erreichbar.
Hier mal ein Logeintrag

2016.10.24 13:27:23 3: Opening Denon device 192.168.99.4:23
2016.10.24 13:27:23 1: in MODIFIED
2016.10.24 13:27:23 3: Can't connect to 192.168.99.4:23:
2016.10.24 13:28:28 2: Denon: first attempt to read timed out, trying to close and open the device.
2016.10.24 13:28:28 3: Opening Denon device 192.168.99.4:23
2016.10.24 13:28:28 2: Denon: second attempt to read timed out, this is an unrecoverable error.

Gruss
Jotoc