posaune
authorMichael J.M. Wagner <michael@wagnertech.de>
Mon, 4 Sep 2023 10:36:05 +0000 (12:36 +0200)
committerMichael J.M. Wagner <michael@wagnertech.de>
Mon, 4 Sep 2023 10:36:05 +0000 (12:36 +0200)
Turf/etc/fhem.cfg
Turf/img/.dummy [new file with mode: 0644]
Turf/perl/99_myUtils.pm

index a56d457..9d67402 100644 (file)
@@ -1,4 +1,4 @@
-attr global userattr cmdIcon devStateIcon:textField-long devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride
+attr global userattr cmdIcon devStateIcon:textField-long devStateStyle fp_Turf icon sortby webCmd webCmdLabel:textField-long widgetOverride
 attr global autoload_undefined_devices 1
 attr global logfile ./log/fhem-%Y-%m.log
 attr global modpath .
@@ -26,9 +26,23 @@ define myOWServer OWServer localhost:4304 2.9p8
 setuuid myOWServer 61546898-f33f-2d75-ae1a-fd309f539391ee36
 define Aussentemperatur OWDevice 28.FF641A51FAE0 60
 setuuid Aussentemperatur 6193af4b-f33f-2d75-4ef0-0bab3fb373c91e93
+attr Aussentemperatur fp_Turf 50,491,1,Aussentemperatur,
 attr Aussentemperatur model DS18B20
 attr Aussentemperatur room Temperaturen,all
-define ATTrigger at +*00:11:00 {system("xsendevent","Aussentemperatur","SET","-D",ReadingsVal("Aussentemperatur","temperature",10),"-t","f")}
+define ATTrigger at +*00:11:00 {write_temp_xevent()}
 setuuid ATTrigger 61f45aa6-f33f-2d75-31ff-bc3dbafcc3a2d47e
 define ATTrigger1 at +*00:11:00 {write_temp_knx()}
 setuuid ATTrigger1 6203e3b1-f33f-2d75-2dd9-f8838ec72b202db5
+define Turf FLOORPLAN
+setuuid Turf 64c8015d-f33f-2d75-c19a-e5811148d22c4307
+attr Turf fp_arrange 0
+define Luftung dummy
+setuuid Luftung 64c80dba-f33f-2d75-0d14-a52a498526cf4c13
+attr Luftung fp_Turf 184,558,1,Luftung
+attr Luftung readingList FuzzyValue
+attr Luftung stateFormat FuzzyValue
+
+# include from xfhem package
+include wagnertech.cfg
+define watchdog at +*00:10:00 "/usr/share/sysal/bin/triggerWatchdog_REST http://wagnertech.de/sysal/rest rwd-cello cello"
+setuuid watchdog 64c81174-f33f-2d75-64c2-b895fa715206f2a9
diff --git a/Turf/img/.dummy b/Turf/img/.dummy
new file mode 100644 (file)
index 0000000..e69de29
index dea0926..34af610 100644 (file)
@@ -36,3 +36,11 @@ sub write_temp_knx {
   #print("$cmd\n");
   system($cmd);
 }
+
+sub write_temp_xevent {
+  my $temp = ReadingsVal("Aussentemperatur","temperature",10);
+  my $cmd = "xsendevent LuftungRegelwerk SET -D Aussentemp:f:$temp -t a";
+  #print("$temp\n");
+  #print("$cmd\n");
+  system($cmd);
+}