[SOLVED] A switch to turn on/ off rules

Hi,
with a little help from this https://community.openhab.org/t/disabling-a-rule-with-a-switch/3869/8 i’ve done that:

  1. created a item

image

  1. modified my blinds/roller shutter rule:

rule “Rolladen hoch bei Sonnenaufgang”
when
Channel ‘astro:sun:local:civilDawn#event’ triggered START
then
if (Rolladensteuerung_AnAus_Switch.state == OFF) return false {
Rolladen_ALLE.sendCommand(1);
Rolladen_Hauswirtschaftsraum_BlindsControl.sendCommand(100)
}
End

  1. then I connected one of the “roller shutter”-things to the item (that’s the part I’m very unsure about) - just to make the switch visible (e.g. in the controls of the PaperUI).

I thought “great, there is a ‘switch’-channel in the FIBARO Roller Shutter - thing” to connect my item … but can it work that way …?

PS: @rlkoshak: Thanks für your input and link … but I’m afraid that is far beyond my skills :sob: