@thex, @sirhc, @SaxnPaule, all …
I need your help on the folowing bug ticket - https://github.com/mwittig/pimatic-denon-avr/issues/16
Are you experiencing similar behaviour? Do you own a AVR-X3100W?
Thanks
New Plugin for Denon/Marantz AVRs
@thex, @sirhc, @SaxnPaule, all …
I need your help on the folowing bug ticket - https://github.com/mwittig/pimatic-denon-avr/issues/16
Are you experiencing similar behaviour? Do you own a AVR-X3100W?
Thanks
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Having the same issue if zone 2 is turned off. It then will turn on zone two and thus shortly interrupt HDMI signal and stop playback.
I have an Marantz SR6008
@thex said in New Plugin for Denon/Marantz AVRs:
Having the same issue if zone 2 is turned off. It then will turn on zone two and thus shortly interrupt HDMI signal and stop playback.
Thank you for your feedback. Does this only happen when switching zone 2 via the web interface or does it also happen if you use the buttons/dials of the receiver?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
If I switch on Zone 2 via the buttons the picture will also be interupted.
However when Zone 2 is switched off and I turn the volume knob it doesn’t get switched on.
If I Increase volume via pimatic (Main Volume) the receiver will turn on zone 2 and thus interrupt the picture.
Could it have something to do with CEC configuration?
Could you try if the issue occurs with the pio-remote plugin too?
Volume change is already implemented for Denon.
Anybody else problems after the update? @mwittig
here it is running but having an issue too
the device parameters are looking ok to me.
{
"id": "denon-zone2-switch",
"name": "Denon Zone 2",
"class": "DenonAvrZoneSwitch",
"zone": "ZONE2",
"echo": {
"additionalNames": [
"Zone zwei"
]
},
"interval": 60
},
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
@thex said in New Plugin for Denon/Marantz AVRs:
Anybody else problems after the update?
No. Everything works fine at my end
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
I removed the plugin completely and restarted pimatic. Normally it should have installed it bu it did not (saw a 503 from the update server in the log).
I then installed it again from the plugins section of the web-frontend. This time it worked.
However the GUI was seriously broken and I had to clear all caches in my browsers.
@leader21 said in New Plugin for Denon/Marantz AVRs:
here it is running but having an issue too
[DenonAvrMasterVolume#denon-zone2-switch] Error: [Error: Missing or invalid interval parameter]
Fixed in pimatic-denon-avr@0.9.9
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Hi,
I’m having an error quite a long time with the VolumeState of my Denon AVR. It is not a big problem but i just want to mention. The Plugin is working fine and all functions are working as expected, thanks for your work @mwittig, but my log-File is giving me some errors.
If the Denon AVR is offline and you haven’t activated the option network control the following error occurs:
Unhandled rejection Error: Expected variable Denon-Volume-Status.volume to have a numeric value.
at /home/pi/pimatic-app/node_modules/pimatic/lib/variables-ast-builder.coffee:111:17
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Unhandled rejection Error: unknown state=""!
@Fabian said in New Plugin for Denon/Marantz AVRs:
If the Denon AVR is offline and you haven’t activated the option network control the following error occurs:
Thanks for reporting and the feedback. I am glad you like it!
Which protocol do you use - HTTP or TELNET (the latter is the default)?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
same here however I don’t have it running in debug at the moment and I get this ocassionaly (3x day) even thou my amp is allways on.
20:54:17.033 [pimatic-denon-avr] error: [HttpAppProtocol] [object Object]
20:55:08.304 [pimatic-denon-avr] error: [HttpAppProtocol] AssertionError: level >= 0
Using http with a Marantz
Also one more thing I noticed. For me sometimes the source is not in sync and when I press the last source which was set by pimatic again it seems to surpress the command because it thinks the source is already active. Would be great if it allways sends it out no matter what the last remembered state was.
@mwittig: I’m using the http-protocol. Here is my config:
{
"plugin": "denon-avr",
"host": "192.168.2.12",
"protocol": "HTTP",
"port": 80,
"debug": false,
"active": true
},
{
"id": "Denon-Volume",
"name": "🎚 Lautstärke",
"class": "DenonAvrZoneVolume",
"zone": "MAIN",
"interval": 10,
"volumeDecibel": true,
"maxAbsoluteVolume": 50,
"xAttributeOptions": [
{
"name": "volume",
"displaySparkline": false,
"hidden": true
}
]
},
But i’m also using a curl command to get the volume value. => I just realize that this is unnecessary. Because I also could have used the value provided by the above mentioned device: Denon-Volume.volume.
{
"id": "Denon-Volume-Status",
"name": "Denon Volume Status",
"class": "ShellSensor",
"attributeName": "volume",
"attributeType": "number",
"command": "curl -s http://192.168.2.12/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\\/value><\\/MasterVolume>//'",
"interval": 5000
},
please let me know if I can help with testing some cases like switching to TELNET protocol or however…
@Fabian Thanks for posting the config. Actually, Denon-Volume-Status is ShellSensor. I think you need to handle the case where the curl command returns no value (as the AVR is offline). I think the following may be help
curl -s http://192.168.2.12/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\\/value><\\/MasterVolume>//' | sed -e 's/^$/0/'
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
@thex said in New Plugin for Denon/Marantz AVRs:
same here however I don’t have it running in debug at the moment and I get this ocassionaly (3x day) even thou my amp is allways on.
20:54:17.033 [pimatic-denon-avr] error: [HttpAppProtocol] [object Object]
20:55:08.304 [pimatic-denon-avr] error: [HttpAppProtocol] AssertionError: level >= 0
This is another problem. Thanks for reporting. I’ll look into this asap
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
@mwittig I’m so emberrassed to made your plugin responsibile for that fault. Sorry for that! I haven’t realized that the error is caused by the shell sensor. First i thougth your suggested solution solves the Problem. But the error is still present. Do you have an other idea?
Thank you again.
@Fabian said in New Plugin for Denon/Marantz AVRs:
I’m so emberrassed to made your plugin responsibile for that fault. Sorry for that!
No worries! Does the suggested change to curl command sequence provide the expected result?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Hi @mwittig,
thank you for your help so far. By now I have changed my config to use the values provided by your plugin. But I’m really interested in a solution.
So your suggestion is working if the receiver is switched on.
pi@raspberrypi:~ $ curl -s http://192.168.2.12/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\/value><\/MasterVolume>//' | sed -e 's/^$/0/'
-51.0
If I switch it of than the curl command is excecuted for really long time. So i tried to reduce it to 5 seconds with the additional command (-m 5). But this is leading to no response at all.
pi@raspberrypi:~ $ curl -s http://192.168.2.12/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\/value><\/MasterVolume>//' | sed -e 's/^$/0/'
^C
pi@raspberrypi:~ $ curl -s -m 5 http://192.168.2.12/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\/value><\/MasterVolume>//' | sed -e 's/^$/0/'
pi@raspberrypi:~ $
I also tried to use an if state but the curl command is exiting every time with error=0 so this is not helping…
So perhaps you have an other idea?
@Fabian said in New Plugin for Denon/Marantz AVRs:
But this is leading to no response at all.
What do you mean by now response at all? Using -m 5
the curl command should terminate, and you should get an error result (exit code other than 0) - or you get a 0
prompted. Most likely, you’ll get the exit code other than 0. You can check with echo $?
after command execution. If the command is executed by pimatic-shell-execute the exit code should be handled properly as an error.
In other words, the | sed -e 's/^$/0/
is only to handle cases where curl
does not bail out with an error exit code. These are mostly cases where the target service is not available or refused and a HTTP response with a status code other than 200 isis received. Note, it is possible to enforce error handling for these case using the --fail
option. See https://superuser.com/questions/590099/can-i-make-curl-fail-with-an-exitcode-different-than-0-if-the-http-status-code-i
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law