SONOS:Connect and DENON AVR

Tags: #<Tag:0x00007f5c94d2b408>

Im really trying to learn even the simplest commands ;(

I want my Sonos:Connect to fire up my DENON AVR, when PLAYING is send from Sonos:Connect

rule "Sonos Dagligstue"
when
    Item Sonos_Dagligstue_State received command
then
    if(receivedCommand == PLAYING) Denon_Daglistue_MainZoneInput.sendCommand(DVD)
end

But Visual keeps nagging at me, that playing and DVD is undefined ;(

My optimal scenario would be coded like this (in my own logic language):

Sonos:Connect State = PLAYING > Denon AVR = Turn ON > Denon AVR = Source DVD > Denon AVR = Volume -55dB

Sonos:Connect state = PAUSED_PLAYBACK > Delay 15 min. > if Denon AVR Source = DVD > Denon AVR = Turn OFF

Sonons_Connect state STOPPED > if Denon AVR Source = DVD > Denon AVR = Turn OFF