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($$$$)
  • date sets year, month and date to local time

  • +
  • adjusthour and adjustminute set hour or minute to local time, respectively

  • +
  • refreshvalues is an alias for report1 255 report2 255

  • All *-temp values need a temperature @@ -1126,7 +1138,7 @@ FHT_State($$$$) holiday1 holiday2 # siehe mode holiday_short oder holiday
    manu-temp # Keine Ahnung was das bewirkt
    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
    @@ -1203,6 +1215,8 @@ FHT_State($$$$)
  • date setzt Jahr, Monat und Tag auf lokale Zeit

  • +
  • adjusthour und adjustminute setzen Stunde bzw. Minute auf lokale Zeit

  • +
  • refreshvalues ist ein Alias für report1 255 report2 255

  • Alle *-temp Werte brauchen eine Temperatur als Argument welche auf