I can control my Marantz M-C611 with both the Denon1 and the Denon/Marantz 2.5.0 binding. But I’m having problems to get the correct readings of the volume control back from the receiver.
Specially I woul like to be able to use the Marantz IR remote control as well and have the volume change also updated in OH2.
First I was working with the Denon/Marantz 2.5.0 binding. The item looks like this:
Dimmer test_marantz_volume "Volume [%s]" <soundvolume> {channel="denonmarantz:avr:xxxxxxxxxx:mainZone#volume"}
When I change the volume by OH2 the values are shown correct, but when I use the IR, OH2 doesn’t read or update the values from the receiver.
Then I started experimenting with the older Denon1 binding. Since my receiver has 2 pairs of speakers, which can be controlled separately, I found this to be more flexible. There the items look like this:
Dimmer test_denon_volumea "Volume A [%s]" {denon="mcr611#MVVOA"}
Dimmer test_denon_volumeb "Volume B [%s]" {denon="mcr611#MVVOB"}
I’ve set up a rule just to see what happens:
rule "updatevola"
when
Item test_denon_volumea received update
then
logInfo("Warn","Volume A changed ...")
end
When I change the voluem in OH2, the log says:
2019-04-10 22:02:31.457 [DEBUG] [binding.denon.internal.DenonListener] - Sending command
MVVOA04
==> /var/log/openhab2/events.log <==
2019-04-10 22:02:31.462 [ome.event.ItemCommandEvent] - Item 'test_denon_volumea' received command 4
2019-04-10 22:02:31.466 [vent.ItemStateChangedEvent] - test_denon_volumea changed from 2 to 4
==> /var/log/openhab2/openhab.log <==
2019-04-10 22:02:31.467 [INFO ] [.eclipse.smarthome.model.script.Warn] - Volume A changed ...
2019-04-10 22:02:31.536 [DEBUG] [inding.denon.internal.DenonConnector] - Command: MV, value: VOA04
2019-04-10 22:02:31.555 [DEBUG] [inding.denon.internal.DenonConnector] - Command: MU, value: VOAOFF
When I take the IR remote control and change the volume from there, without using OH2, it looks like:
2019-04-10 22:08:01.922 [DEBUG] [inding.denon.internal.DenonConnector] - Command: MV, value: VOA04
2019-04-10 22:08:01.926 [DEBUG] [inding.denon.internal.DenonConnector] - Command: MU, value: VOAOFF
I would like to fire a rule, when I change the volume with my IR. But I could not find any trigger that reacts on this “event”. However I think it should be possible, since OH2 “sees” my commands (at least with the Denon1 binding). Any help would be appreciated.
Udo