I want to write some rules to control my Denon AVR-X4200w.
I installed the Denon/Marantz binding 2.4.0
As described in the binding documentation is tried marantz_command.sendCommand("MSMCH STEREO")
As soon as the rule triggers I get the error 2019-04-22 23:31:00.153 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'denon': The name 'avrCmd' cannot be resolved to an item or type; line 362, column 2, length 6
Hi @djtronic, I happen to have a Denon AVR as well and will try to help you figure it out.
Could you share the rule (and related item definitions) because it looks like the error is not related to the command you showed.
rule "denon"
when
Item mqtt_Schreibtisch received update A0
then
logInfo("Denon", "Versuch 1");
marantz_command.sendCommand("MSMCH STEREO")
end
Unfortunately I do not have a item definition
Do I need to have something like this: String marantz_command {channel="denonmarantz:avr:0006781d58b1:general#command"}
–> I added the item and now it works as expected - phantastic! Thank you!