From 4f8175ec5f3f257fc135b1ed9d9876632ddaa004 Mon Sep 17 00:00:00 2001
From: jamesgo <>
Date: Wed, 13 Dec 2017 12:07:55 +0000
Subject: [PATCH] 98_GAEBUS.pm : add "+f" as additional ebusd cmd to remove the
default "-f" from the read request
git-svn-id: https://svn.fhem.de/fhem/trunk@15600 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/98_GAEBUS.pm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/fhem/FHEM/98_GAEBUS.pm b/fhem/FHEM/98_GAEBUS.pm
index d41840864..d6aa33fdd 100644
--- a/fhem/FHEM/98_GAEBUS.pm
+++ b/fhem/FHEM/98_GAEBUS.pm
@@ -43,6 +43,7 @@
# 26.12.2016 : A.Goebel : fix handling for non "userattr" attributes
# 27.12.2016 : A.Goebel : fix handling if ebusctl reports "usage:"
# 27.12.2016 : A.Goebel : fix scan removed from supported classes
+# 13.12.2017 : A.Goebel : add "+f" as additional ebus command to disable "-f" for this request
package main;
@@ -913,8 +914,17 @@ GAEBUS_doEbusCmd($$$$$$$)
} elsif ($action eq "r") {
+ my $force = " -f ";
+ $force = "" if ($io eq "h");
+
+ if ($cmdaddon =~ /\+f/) {
+ $force = "";
+ $cmdaddon =~ s/\+f//;
+ }
+
$cmd = "$io ";
- $cmd .= " -f " if ($io ne "h");
+ #$cmd .= " -f " if ($io ne "h");
+ $cmd .= "$force";
$cmd .= "-c $class " if ($class ne "");
$cmd .= "$var ";
$cmd .= "$cmdaddon";
@@ -1401,6 +1411,7 @@ GAEBUS_valueFormat(@)
the evaluation within the specified interval. (eg. OutsideTemp:3 will evaluate this reading every 3-th cycle)
All text followed the reading seperated by a blank is given as an additional parameter to ebusd.
This can be used to request a single value if more than one is retrieved from ebus.
+ If "+f" is given as an additional parameter this will remove the "-f" option from the ebusd request. This will return the value stored in ebusd instead of requesting it freshly.
[w]~<class>~<variable-name>