From 3c6f60b3c8bc65d08d83582d1bf8ded8c8543656 Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Sun, 26 Jun 2022 09:03:47 +0000
Subject: [PATCH] 11_FHT.pm: add adjustminute adjusthour by Boris (Forum
#128153)
git-svn-id: https://svn.fhem.de/fhem/trunk@26173 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/11_FHT.pm | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/fhem/FHEM/11_FHT.pm b/fhem/FHEM/11_FHT.pm
index 958192705..d05f1cde2 100644
--- a/fhem/FHEM/11_FHT.pm
+++ b/fhem/FHEM/11_FHT.pm
@@ -210,6 +210,16 @@ FHT_Set($@)
splice(@a,$i,1,("report1","255","report2","255"))
if($a[$i] eq "refreshvalues");
+ if($a[$i] eq "adjusthour") {
+ my @t = localtime;
+ splice(@a,$i,1,("hour",$t[2]));
+ }
+
+ if($a[$i] eq "adjustminute") {
+ my @t = localtime;
+ splice(@a,$i,1,("minute",$t[1]));
+ }
+
if($a[$i] eq "time") {
my @t = localtime;
splice(@a,$i,1,("hour",$t[2],"minute",$t[1]));
@@ -241,7 +251,7 @@ FHT_Set($@)
my $tmpList="on,off,".join(",",@list);
$cmdList =~ s/-temp/-temp:$tmpList/g; # FHEMWEB sugar
$cmdList =~ s/(-from.|-to.)/$1:time/g;
- $cmdList .= " date:noArg time:noArg";
+ $cmdList .= " date:noArg time:noArg adjusthour:noArg adjustminute:noArg";
return "Unknown argument $cmd, choose one of $cmdList";
}
@@ -778,7 +788,7 @@ FHT_State($$$$)
holiday1 holiday2 # see mode holiday_short or holiday
manu-temp # No clue what it does.
year month day hour minute
- time date
+ time date adjusthour adjustminute
lowtemp-offset # Alarm-Temp.-Differenz
windowopen-temp
mon-from1 mon-to1 mon-from2 mon-to2
@@ -852,6 +862,8 @@ FHT_State($$$$)
*-temp
values need a temperature
@@ -1126,7 +1138,7 @@ FHT_State($$$$)
holiday1 holiday2 # siehe mode holiday_short oder holiday