From d7eb06a37f9efe4000907bbec38d57cd127a7804 Mon Sep 17 00:00:00 2001 From: borisneubert Date: Sun, 7 Nov 2010 11:16:05 +0000 Subject: [PATCH] added date alias for FHT80b set command updated docs git-svn-id: https://svn.fhem.de/fhem/trunk@753 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/11_FHT.pm | 7 ++++++- fhem/docs/commandref.html | 20 ++++++++++++++------ fhem/docs/faq.html | 17 +++++++++++++++++ 4 files changed, 38 insertions(+), 7 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 48ad8fc91..65dcb9e07 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -8,6 +8,7 @@ - feature: decode CUL uptime - feature: USB doc changes, FHZ initFS20_02/stopHMS parameters by Andreas. - feature: CUL_HM (experimental) for HomeMatic devices. + - feature: added date alias for FHT80b (Boris) - 2010-08-15 (5.0) - **NOTE*: The default installation path is changed to satisfy lintian diff --git a/fhem/FHEM/11_FHT.pm b/fhem/FHEM/11_FHT.pm index 26b68acd5..222666fd1 100755 --- a/fhem/FHEM/11_FHT.pm +++ b/fhem/FHEM/11_FHT.pm @@ -187,6 +187,11 @@ FHT_Set($@) my @t = localtime; splice(@a,$i,1,("hour",$t[2],"minute",$t[1])); } + + if($a[$i] eq "date") { + my @t = localtime; + splice(@a,$i,1,("year",$t[5]-100,"month",$t[4]+1,"day",$t[3])); + } } my $ncmd = 0; @@ -537,7 +542,7 @@ FHT_Parse($$) if(substr($msg,24,1) eq "7") { # Do not store FHZ acks. $cmd = "FHZ:$cmd"; - + } else { $def->{READINGS}{$cmd}{TIME} = $tn; $def->{READINGS}{$cmd}{VAL} = $val; diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 6a89db8dd..003ae00a7 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -1348,10 +1348,12 @@ A line ending with \ will be concatenated with the next one, so long lines desired-temp day-temp night-temp report1 report2 + refreshvalues mode holiday1 holiday2 # Not verified manu-temp # No clue what it does. year month day hour minute + time date lowtemp-offset # Alarm-Temp.-Differenz windowopen-temp mon-from1 mon-to1 mon-from2 mon-to2 @@ -1407,17 +1409,23 @@ A line ending with \ will be concatenated with the next one, so long lines
  • The FHT is very economical (or lazy), it accepts one message from the FHZ1x00 every 115+x seconds, where x depends on the housecode. Don't - be surprized if your command is only accepted 10 minutes later by the + be surprised if your command is only accepted 10 minutes later by the device. FHT commands are buffered in the FHZ1x00/CUL till they are sent to the FHT, see the related fhtbuf entry in the get section.
    You can send up to 8 commands in one message at once to the FHT if you specify them all as arguments to the same set command, see the example above.

    +
  • time sets hour and minute to local time

  • + +
  • date sets year, month and date to local time

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

  • +
  • All *-temp values need a temperature as argument, which will be rounded to 0.5 Celsius.
    Temperature values must between 5.5 and 30.5 Celsius. Value 5.5 sets - the actuator to OFF, value 30.5 set the actuator to ON

    + the actuator to OFF, value 30.5 set the actuator to ON

  • mode is one of auto, manual, holiday or holiday_short.
    @@ -1604,7 +1612,7 @@ A line ending with \ will be concatenated with the next one, so long lines Set