rule "Sonos plays"
when
Item sonos_CONNECT_RINCON_000E58AACE2201400_control changed
then
if(sonos_CONNECT_RINCON_000E58AACE2201400_control.state == PLAY){
marantz_power.sendCommand(ON)
marantz_input.sendCommand("CD")
}
end
The rule is actually simple the problem was the correct item name. Once you posted the log I was able to get the correct info for the rule to work. I originally thought the sonos item was a channel due to the length, but I guessed wrong. Going forward make sure your using the correct item names and types.
There are copious amounts of rule examples on the forum you just need to search a bit to find one thatās similar to what you need then modify it. BTW, I posted another rule example on your other topic for the pir sensor.