From d07ce55c36b5f46cf81cd7eb7f909bffa09efd9c Mon Sep 17 00:00:00 2001 From: fhemzap <> Date: Tue, 5 Jan 2016 18:10:49 +0000 Subject: [PATCH] HMCCUCHN: Update all client devices git-svn-id: https://svn.fhem.de/fhem/trunk@10371 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/HMCCU/88_HMCCUCHN.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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.