From: Michael Wagner Date: Wed, 10 Jul 2019 14:53:06 +0000 (+0200) Subject: posaune X-Git-Tag: verleihnix_0.1-2~1^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2825e894104f4d782dfed4ea3ed13f3eb7e12935;p=projects.git posaune --- diff --git a/Griesstatt/fhem.cfg b/Griesstatt/fhem.cfg index e216b66..bdb9f93 100644 --- a/Griesstatt/fhem.cfg +++ b/Griesstatt/fhem.cfg @@ -1,33 +1,132 @@ -attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride +attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride attr global autoload_undefined_devices 1 attr global autosave 0 attr global logfile ./log/fhem-%Y-%m.log attr global modpath . -attr global motd Messages collected while initializing FHEM:\ -configfile: WEB: creating device allowed_WEB for attribute basicAuth\ -\ -Autosave deactivated +attr global motd 1 attr global statefile ./log/fhem.save attr global verbose 3 define WEB FHEMWEB 8083 global +setuuid WEB 5d07a041-f33f-d703-bb00-f5a252e8b7a1a442 attr WEB editConfig 1 define allowed_WEB allowed +setuuid allowed_WEB 5d07a041-f33f-d703-11a1-1b4c3372df08fe0f attr allowed_WEB basicAuth cmFpbmVyOkZpbmtlbndlZzU= attr allowed_WEB validFor WEB # Fake FileLog entry, to access the fhem log from FHEMWEB define Logfile FileLog ./log/fhem-%Y-%m.log fakelog +setuuid Logfile 5d07a041-f33f-d703-9c49-a9ebbdff8eb16730 define autocreate autocreate +setuuid autocreate 5d07a041-f33f-d703-e88f-8ceeb477d5e04772 attr autocreate filelog ./log/%NAME-%Y.log define eventTypes eventTypes ./log/eventTypes.txt +setuuid eventTypes 5d07a041-f33f-d703-e43c-930c656ddea2cd5a # Disable this to avoid looking for new USB devices on startup define initialUsbCheck notify global:INITIALIZED usb create +setuuid initialUsbCheck 5d07a041-f33f-d703-f259-0751a20adc04fee2 define RPi GPIO4 BUSMASTER -define WohnzimmerTemp GPIO4 28-00000a54cd2a -attr WohnzimmerTemp model DS18B20 -attr WohnzimmerTemp room Temperaturen +setuuid RPi 5d07a041-f33f-d703-88e1-d3df5301a9a2810c +define KellerTemp GPIO4 28-00000a54cd2a +setuuid KellerTemp 5d07a041-f33f-d703-1079-da21805d0c596460 +attr KellerTemp model DS18B20 +attr KellerTemp room Temperaturen +attr KellerTemp tempOffset -1.0 +define KNX TUL tul:/dev/ttyACM0@57600 1.1.255 +setuuid KNX 5d07a18b-f33f-d703-97fe-8c0cc64740b9ed0b +define KNX_0000003 KNX 0/0/3:dpt9.001 +setuuid KNX_0000003 5d07a2ce-f33f-d703-92d0-f28f6329df06b1bd +attr KNX_0000003 IODev KNX +attr KNX_0000003 alias WohnzimmerTemp +attr KNX_0000003 room KNX,Temperaturen +define FileLog_KNX_0000003 FileLog ./log/KNX_0000003-%Y.log KNX_0000003 +setuuid FileLog_KNX_0000003 5d07a3fa-f33f-d703-dea3-fe2cadc45a732339 +attr FileLog_KNX_0000003 logtype text +attr FileLog_KNX_0000003 room KNX +define KNX_0000001 KNX 0/0/1:dpt5.001 +setuuid KNX_0000001 5d07a446-f33f-d703-512c-cdd3a079a055c862 +attr KNX_0000001 IODev KNX +attr KNX_0000001 room KNX +define KNX_0000002 KNX 0/0/2:dpt5 +setuuid KNX_0000002 5d07a44c-f33f-d703-ce64-672cadeabf414018 +attr KNX_0000002 IODev KNX +attr KNX_0000002 room KNX +define FileLog_KNX_0000001 FileLog ./log/KNX_0000001-%Y.log KNX_0000001 +setuuid FileLog_KNX_0000001 5d07a44c-f33f-d703-6fee-cbbab18f34c5eb89 +attr FileLog_KNX_0000001 logtype text +attr FileLog_KNX_0000001 room KNX +define KNX_LED2 KNX 0/1/2:dpt1.001 +setuuid KNX_LED2 5d07b290-f33f-d703-f038-0ddf855521469d08 +attr KNX_LED2 IODev KNX +attr KNX_LED2 room KNX +define KNX_LED3 KNX 0/1/3:dpt1.001 +setuuid KNX_LED3 5d07b298-f33f-d703-5783-d5d6fb7d3b39a5ff +attr KNX_LED3 IODev KNX +attr KNX_LED3 room KNX +define KNX_LED4 KNX 0/1/4:dpt1.001 +setuuid KNX_LED4 5d07b2a2-f33f-d703-7018-de5d38adf8813077 +attr KNX_LED4 IODev KNX +attr KNX_LED4 room KNX +define KNX_LED1 KNX 0/1/1:dpt1.001 +setuuid KNX_LED1 5d07b2c5-f33f-d703-9842-8a48f65177f4c666 +attr KNX_LED1 IODev KNX +attr KNX_LED1 room KNX +define FileLog_KNX_0000002 FileLog ./log/KNX_0000002-%Y.log KNX_0000002 +setuuid FileLog_KNX_0000002 5d07b42b-f33f-d703-fcc1-a4ef9876715dea5f +attr FileLog_KNX_0000002 logtype text +attr FileLog_KNX_0000002 room KNX +define KNX_0000002_notify_1 notify KNX_0000002:getG1:..* \ +\ +{ \ +my $heizstatus = $EVTPART1;;\ +Log 1, "processing $heizstatus";;\ +fhem("set KNX_LED1 g1 off");;\ +Log 1, "LED1 off";;\ +fhem("set KNX_LED2 g1 off");;\ +Log 1, "LED2 off";;\ +fhem("set KNX_LED3 g1 off");;\ +Log 1, "LED3 off";;\ +fhem("set KNX_LED4 g1 off");;\ +Log 1, "LED4 off";;\ +\ +fhem("set KNX_LED1 g1 on") if ($heizstatus == 33);;\ +fhem("set KNX_LED2 g1 on") if ($heizstatus == 34);;\ +fhem("set KNX_LED3 g1 on") if ($heizstatus == 36);;\ +fhem("set KNX_LED4 g1 on") if ($heizstatus == 40);;\ +Log 1, "LED set";;\ +}\ +setuuid KNX_0000002_notify_1 5d07f609-f33f-d703-d7ab-35661dde8ebe4b02 +define XXX notify XXX\ +\ +{ \ +my $heizstatus = 33;;\ +Log 1, "processing $heizstatus";;\ +fhem("set KNX_LED1 g1 off");;\ +Log 1, "LED1 off";;\ +fhem("set KNX_LED2 g1 off");;\ +Log 1, "LED2 off";;\ +fhem("set KNX_LED3 g1 off");;\ +Log 1, "LED3 off";;\ +fhem("set KNX_LED4 g1 off");;\ +Log 1, "LED4 off";;\ +\ +fhem("set KNX_LED1 g1 on") if ($heizstatus == 33);;\ +fhem("set KNX_LED2 g1 on") if ($heizstatus == 34);;\ +fhem("set KNX_LED3 g1 on") if ($heizstatus == 36);;\ +fhem("set KNX_LED4 g1 on") if ($heizstatus == 40);;\ +Log 1, "LED set";;\ +} +setuuid XXX 5d080833-f33f-d703-3608-b436b498fe420104 +define KNX_0003188 KNX 0/3/188:MODEL_NOT_DEFINED +setuuid KNX_0003188 5d08b7d7-f33f-d703-97e6-db5c03954880ba87 +attr KNX_0003188 IODev KNX +attr KNX_0003188 room KNX +define FileLog_KNX_0003188 FileLog ./log/KNX_0003188-%Y.log KNX_0003188 +setuuid FileLog_KNX_0003188 5d08b7d7-f33f-d703-edc8-4501566baeec6d7c +attr FileLog_KNX_0003188 logtype text +attr FileLog_KNX_0003188 room KNX