#------------------------------------------------------------------------------- # State Rules #------------------------------------------------------------------------------- # JRM states state phc ccmd=omd.7.out2.toggle then >mqtt topic=srs/rule data="AZ_LI"; # Arbeitszimmer Steckdose PC when phc ccmd=omd.1.out5.toggle then >mqtt topic=srs/rule data="AZ_PO"; # Arbeitszimmer LED when phc ccmd=imd.2.led3.on then >mqtt topic=srs/rule data="AZ_LED:ON"; when phc ccmd=imd.2.led3.off then >mqtt topic=srs/rule data="AZ_LED:OFF"; # Arbeitszimmer Rollladen state management init >state topic=int/jrm.6.1.up value=0; when state topic=int/jrm.6.1.up value=0; when state topic=int/jrm.6.1.up value=1; # Arbeitszimmer Rollladen controls when phc ccmd=jrm.6.out1.toggleDown.1.1.299 then >mqtt topic=srs/rule data="AZ_RS:DOWN" else >phc ccmd=jrm.6.out1.toggleUp.1.1.299 else >mqtt topic=srs/rule data="AZ_RS:UP"; #------------------------------------------------------------------------------- # Aussenbereich #------------------------------------------------------------------------------- # Steckdose Terrasse/Brunnen when phc ccmd=omd.0.out5.toggle then >phc ccmd=omd.0.out5.offdelayed.10800 then >mqtt topic=srs/rule data="AU_PO1"; # Garten Kugelleuchten (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.1.out1.toggle then >phc ccmd=omd.1.out1.offdelayed.10800 then >mqtt topic=srs/rule data="AU_LI_BALLS"; # Nebeneingang Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.3.out5.toggle then >phc ccmd=omd.3.out5.offdelayed.600 then >mqtt topic=srs/rule data="AU_LI_GARAGE"; # Nebeneingang Licht LED (in Garage) when phc ccmd=imd.0.led2.on then >mqtt topic=srs/rule data="AU_LED_GARAGE:ON"; when phc ccmd=imd.0.led2.off then >mqtt topic=srs/rule data="AU_LED_GARAGE:OFF"; # Haupteingang Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.1.out7.toggle then >phc ccmd=omd.1.out7.offdelayed.900 then >mqtt topic=srs/rule data="AU_LI_FRONT:TOGGLE"; # Haupteingang Licht (Dauer-EIN) when phc ccmd=omd.1.out7.on then >mqtt topic=srs/rule data="AU_LI_FRONT:ON"; # Haupteingang Licht LED (in Diele) when phc ccmd=imd.0.led4.on then >mqtt topic=srs/rule data="AU_LED_FRONT:ON"; when phc ccmd=imd.0.led4.off then >mqtt topic=srs/rule data="AU_LED_FRONT:OFF"; #------------------------------------------------------------------------------- # Bad #------------------------------------------------------------------------------- # Bad Licht when phc ccmd=omd.3.out2.toggle then >mqtt topic=srs/rule data="BAD_LI"; # Bad LED when phc ccmd=imd.0.led7.on then >mqtt topic=srs/rule data="BAD_LED:ON"; when phc ccmd=imd.0.led7.off then >mqtt topic=srs/rule data="BAD_LED:OFF"; # Bad Rollladen when phc ccmd=jrm.4.out2.toggleUp.1.1.299 then >mqtt topic=srs/rule data="BAD_RS:UP"; when phc ccmd=jrm.4.out2.toggleDown.1.1.299 then >mqtt topic=srs/rule data="BAD_RS:DOWN"; #------------------------------------------------------------------------------- # Christian (Kind1) #------------------------------------------------------------------------------- # Christian Licht when phc ccmd=omd.1.out2.toggle then >mqtt topic=srs/rule data="CHR_LI"; #------------------------------------------------------------------------------- # Dachboden #------------------------------------------------------------------------------- # Dachboden Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.1.out6.toggle then >phc ccmd=omd.1.out6.offdelayed.300 then >mqtt topic=srs/rule data="DB_LI:TOGGLE"; # Dachboden Licht (Dauer-EIN) when phc ccmd=omd.1.out6.on then >mqtt topic=srs/rule data="DB_LI:ON"; # Dachboden LED when phc ccmd=imd.0.led5.on then >mqtt topic=srs/rule data="DB_LED:ON"; when phc ccmd=imd.0.led5.off then >mqtt topic=srs/rule data="DB_LED:OFF"; #------------------------------------------------------------------------------- # Diele/Galerie #------------------------------------------------------------------------------- # Diele Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.0.out2.toggle then >phc ccmd=omd.0.out2.offdelayed.300 then >mqtt topic=srs/rule data="DI_LI:TOGGLE"; # Galerie Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.1.out3.toggle then >phc ccmd=omd.1.out3.offdelayed.300 then >mqtt topic=srs/rule data="GL_LI:TOGGLE"; # Diele Licht (Dauer-EIN) when phc ccmd=omd.0.out2.on then >mqtt topic=srs/rule data="DI_LI:ON"; # Galerie Licht (Dauer-EIN) when phc ccmd=omd.1.out3.on then >mqtt topic=srs/rule data="GL_LI:ON"; # Anzeige Garagentuer-Verriegelung when phc ccmd=imd.0.led3.on then >mqtt topic=srs/rule data="GA_VR_LED:ON"; when phc ccmd=imd.0.led3.off then >mqtt topic=srs/rule data="GA_VR_LED:OFF"; #------------------------------------------------------------------------------- # Franjo(Gast) #------------------------------------------------------------------------------- # Franjo Licht when phc ccmd=omd.2.out1.toggle then >mqtt topic=srs/rule data="FRA_LI"; # Franjo Steckdose Fenster when phc ccmd=omd.2.out5.toggle then >mqtt topic=srs/rule data="FRA_PO"; #------------------------------------------------------------------------------- # Garage #------------------------------------------------------------------------------- # Garage Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.3.out4.toggle then >phc ccmd=omd.3.out4.offdelayed.300 then >mqtt topic=srs/rule data="GA_LI:TOGGLE"; # Garage Licht (Dauer-EIN) when phc ccmd=omd.3.out4.on then >mqtt topic=srs/rule data="GA_LI:ON"; # Garage LED (im HWR) when phc ccmd=imd.1.led3.on then >mqtt topic=srs/rule data="GA_LED:ON"; when phc ccmd=imd.1.led3.off then >mqtt topic=srs/rule data="GA_LED:OFF"; # Garage Dachboden Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.3.out1.toggle then >phc ccmd=omd.3.out1.offdelayed.300 then >mqtt topic=srs/rule data="GD_LI:TOGGLE"; # Garage Dachboden Licht (Dauer-EIN) when phc ccmd=omd.3.out1.on then >mqtt topic=srs/rule data="GD_LI:ON"; # Garage Dachboden LED when phc ccmd=imd.0.led1.on then >mqtt topic=srs/rule data="GD_LED:ON"; when phc ccmd=imd.0.led1.off then >mqtt topic=srs/rule data="GD_LED:OFF"; #------------------------------------------------------------------------------- # HWR #------------------------------------------------------------------------------- # HWR Licht (EIN mit Ausschaltverzoegerung) when phc ccmd=omd.3.out0.toggle then >phc ccmd=omd.3.out0.offdelayed.300 then >mqtt topic=srs/rule data="HWR_LI:TOGGLE"; # HWR Licht (Dauer-EIN) when phc ccmd=omd.3.out0.on then >mqtt topic=srs/rule data="HWR_LI:ON"; # HWR Rollladen state management init >state topic=int/jrm.6.0.up value=0; when state topic=int/jrm.6.0.up value=0; when state topic=int/jrm.6.0.up value=1; # HWR Rollladen controls when phc ccmd=jrm.6.out0.toggleDown.1.1.299 then >mqtt topic=srs/rule data="HWR_RS:DOWN" else >phc ccmd=jrm.6.out0.toggleUp.1.1.299 else >mqtt topic=srs/rule data="HWR_RS:UP"; #------------------------------------------------------------------------------- # Kueche #------------------------------------------------------------------------------- # Kueche Licht (Decke) when phc ccmd=omd.0.out0.toggle then >mqtt topic=srs/rule data="KU_LI"; # Kueche Licht (Haengeschraenke) when phc ccmd=omd.0.out1.toggle then >mqtt topic=srs/rule data="KU_LI_DOWN"; # Kueche Licht (Ueberbau) when phc ccmd=omd.1.out0.toggle then >mqtt topic=srs/rule data="KU_LI_TOP"; # Kueche Steckdose Herd when phc ccmd=omd.1.out4.toggle then >mqtt topic=srs/rule data="KU_PO1"; # Kueche Rollladen Nord when phc ccmd=jrm.4.out1.toggleUp.1.1.299 then >mqtt topic=srs/rule data="KU_RS_N:UP"; when phc ccmd=jrm.4.out1.toggleDown.1.1.299 then >mqtt topic=srs/rule data="KU_RS_N:DOWN"; # Kueche Rollladen Ost when phc ccmd=jrm.4.out0.toggleUp.1.1.299 then >mqtt topic=srs/rule data="KU_RS_E:UP"; when phc ccmd=jrm.4.out0.toggleDown.1.1.299 then >mqtt topic=srs/rule data="KU_RS_E:DOWN"; #------------------------------------------------------------------------------- # Lea (Kind2) #------------------------------------------------------------------------------- # Lea Licht when phc ccmd=omd.2.out0.toggle then >mqtt topic=srs/rule data="LEA_LI"; # Lea Steckdose Fenster when phc ccmd=omd.2.out4.toggle then >mqtt topic=srs/rule data="LEA_PO"; #------------------------------------------------------------------------------- # Schlafzimmer #------------------------------------------------------------------------------- # Schlafzimmer Licht (Deckenleuchte) when phc ccmd=omd.3.out7.toggle then >mqtt topic=srs/rule data="SZ_LI"; # Schlafzimmer Rollladen when phc ccmd=jrm.4.out3.toggleUp.1.1.299 then >mqtt topic=srs/rule data="SZ_RS:UP"; when phc ccmd=jrm.4.out3.toggleDown.1.1.299 then >mqtt topic=srs/rule data="SZ_RS:DOWN"; #------------------------------------------------------------------------------- # WC #------------------------------------------------------------------------------- # WC Licht when phc ccmd=omd.0.out3.toggle then >mqtt topic=srs/rule data="WC_LI"; # WC LED when phc ccmd=imd.2.led5.on then >mqtt topic=srs/rule data="WC_LED:ON"; when phc ccmd=imd.2.led5.off then >mqtt topic=srs/rule data="WC_LED:OFF"; #------------------------------------------------------------------------------- # Wohnzimmer #------------------------------------------------------------------------------- # WZ Licht Sitzecke when phc ccmd=omd.7.out3.toggle then >mqtt topic=srs/rule data="WZ_LI1"; # WZ Licht Esstisch when phc ccmd=omd.7.out0.toggle then >mqtt topic=srs/rule data="WZ_LI2"; # Wintergarten Licht (ein/aus) when phc ccmd=dim.1.out0.togglemem then >mqtt topic=srs/rule data="WZ_LI3:TOGGLE"; # Wintergarten Licht dimmen (auf/ab) when phc ccmd=dim.1.out0.reverse.5 then >mqtt topic=srs/rule data="WZ_LI3:REVERSE"; # Wintergarten Licht dimmen (auf/ab) when phc ccmd=dim.1.out0.stopmem then >mqtt topic=srs/rule data="WZ_LI3:STOP"; # WZ Hintergrundbeleuchtung (Master) when phc ccmd=omd.2.out2.toggle then >mqtt topic=srs/rule data="WZ_LI_BG"; # WZ Hintergrundbeleuchtung (Slaves) when phc ccmd=omd.2.out3.on then >phc ccmd=omd.2.out6.on then >phc ccmd=omd.2.out7.on then >phc ccmd=omd.7.out6.on then >mqtt topic=srs/rule data="WZ_LI_BG_S-ON"; when phc ccmd=omd.2.out3.off then >phc ccmd=omd.2.out6.off then >phc ccmd=omd.2.out7.off then >phc ccmd=omd.7.out6.off then >mqtt topic=srs/rule data="WZ_LI_BG_S-OFF"; # Wintergarten Steckdose when phc ccmd=omd.7.out7.toggle then >mqtt topic=srs/rule data="WZ_PO6"; # Fliegengitter LED when phc ccmd=imd.3.led3.on then >mqtt topic=srs/rule data="FLY_LED:ON"; when phc ccmd=imd.3.led3.off then >mqtt topic=srs/rule data="FLY_LED:OFF"; # Wohnzimmer Rollladen Sued links when phc ccmd=jrm.5.out3.toggleUp.1.1.299 then >mqtt topic=srs/rule data="WZ_RS_SL:UP"; when phc ccmd=jrm.5.out3.toggleDown.1.1.299 then >mqtt topic=srs/rule data="WZ_RS_SL:DOWN"; # Wohnzimmer Rollladen Sued rechts when phc ccmd=jrm.5.out2.toggleUp.1.1.299 then >mqtt topic=srs/rule data="WZ_RS_SR:UP"; when phc ccmd=jrm.5.out2.toggleDown.1.1.299 then >mqtt topic=srs/rule data="WZ_RS_SR:DOWN"; #------------------------------------------------------------------------------- # Test Area #-------------------------------------------------------------------------------