diff --git a/fhem/contrib/HMCCU/88_HMCCUCHN.pm b/fhem/contrib/HMCCU/88_HMCCUCHN.pm index 6d8593b62..75c045dbe 100644 --- a/fhem/contrib/HMCCU/88_HMCCUCHN.pm +++ b/fhem/contrib/HMCCU/88_HMCCUCHN.pm @@ -4,7 +4,7 @@ # # $Id:$ # -# Version 2.3 +# Version 2.4 # # (c) 2015 zap (zap01 t-online de) # @@ -22,6 +22,7 @@ # get channel # get config # get configdesc +# get update # # attr ccureadings { 0 | 1 } # attr ccureadingfilter @@ -286,6 +287,11 @@ sub HMCCUCHN_Get ($@) return HMCCUCHN_SetError ($hash, $rc) if ($rc < 0); return $ccureadings ? undef : $result; } + elsif ($opt eq 'update') { + $rc = HMCCU_GetUpdate ($hash, $hash->{ccuaddr}); + return HMCCUCHN_SetError ($hash, $rc) if ($rc < 0); + return undef; + } elsif ($opt eq 'config') { my $ccuobj = $hash->{ccuaddr}; @@ -301,7 +307,7 @@ sub HMCCUCHN_Get ($@) return $res; } else { - return "HMCCUCHN: Unknown argument $opt, choose one of devstate:noArg datapoint channel config:noArg configdesc:noArg"; + return "HMCCUCHN: Unknown argument $opt, choose one of devstate:noArg datapoint channel update:noArg config:noArg configdesc:noArg"; } } @@ -415,6 +421,10 @@ sub HMCCUCHN_SetError ($$)
  • get <name> configdesc
    Get description of configuration parameters of CCU channel. +

  • +
  • get <name> update +
    + Update all datapoints / readings of channel.