var String sender_merker var Timer timer = null rule "Zurueckschalten" when Item myKodi_zurueckschalten received command then sender_merker = myKodi_pvrchannel.state.toString timer = createTimer(now.plusMinutes((myKodi_zurueckschalten.state as DecimalType).intValue)) [| myKodi_pvropentv.sendCommand(sender_merker) logInfo("umschalten.rules", "Umgeschaltet auf: " + sender_merker) timer = null ] end rule "ARD" when Item TV_Channel_ARD received command then sendCommand(myKodi_pvropentv,"Das Erste HD") end rule "ZDF" when Item TV_Channel_ZDF received command then sendCommand(myKodi_pvropentv,"ZDF HD") end rule "RTL" when Item TV_Channel_RTL received command then sendCommand(myKodi_pvropentv,"RTL HD") end rule "SAT1" when Item TV_Channel_SAT1 received command then sendCommand(myKodi_pvropentv,"SAT.1 HD") end rule "PRO7" when Item TV_Channel_PRO7 received command then sendCommand(myKodi_pvropentv,"ProSieben HD") end rule "Vox" when Item TV_Channel_VOX received command then sendCommand(myKodi_pvropentv,"VOX HD") end rule "Kabel1" when Item TV_Channel_KABEL1 received command then sendCommand(myKodi_pvropentv,"kabel eins HD") end rule "SkyCinema" when Item TV_Channel_CINEMA received command then sendCommand(myKodi_pvropentv,"Sky Cinema HD") end rule "SkySport1" when Item TV_Channel_SPORT1 received command then sendCommand(myKodi_pvropentv,"Sky Sport 1 HD") end rule "Sport2" when Item TV_Channel_SPORT2 received command then sendCommand(myKodi_pvropentv,"Sky Sport 2 HD") end rule "Bundesliga1" when Item TV_Channel_BUNDESLIGA1 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 1 HD") end rule "Bundesliga2" when Item TV_Channel_BUNDESLIGA2 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 2 HD") end rule "Atlantic" when Item TV_Channel_ATLANTIC received command then sendCommand(myKodi_pvropentv,"Sky Atlantic HD") end rule "One" when Item TV_Channel_ONE received command then sendCommand(myKodi_pvropentv,"Sky 1 HD") end rule "Discovery" when Item TV_Channel_DISCOVERY received command then sendCommand(myKodi_pvropentv,"Discovery HD") end rule "NatGeoWild" when Item TV_Channel_NATGEOWILD received command then sendCommand(myKodi_pvropentv,"Nat Geo Wild HD") end rule "NatGeo" when Item TV_Channel_NATGEO received command then sendCommand(myKodi_pvropentv,"NatGeo HD") end rule "Bundesliga3" when Item TV_Channel_BUNDESLIGA3 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 3 HD") end rule "Bundesliga4" when Item TV_Channel_BUNDESLIGA4 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 4 HD") end rule "Bundesliga5" when Item TV_Channel_BUNDESLIGA5 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 5 HD") end rule "Bundesliga6" when Item TV_Channel_BUNDESLIGA6 received command then sendCommand(myKodi_pvropentv,"Sky Sport Bundesliga 6 HD") end