FHEM Forum

FHEM - Hausautomations-Systeme => Homematic => Thema gestartet von: frank am 04 Mai 2021, 10:05:10

Titel: [gelöst] probleme bei cmds "set raw" und "set regBulk"
Beitrag von: frank am 04 Mai 2021, 10:05:10
hallo martin,


1. set raw

ich habe es nur geschafft einzelne cmds in den cmdstack zu übergeben.
die in der commandref erwähnte "liste" von cmds bekomme ich nicht übergeben.
mit der gezeigten änderung kann ich auch eine leerzeichen-getrennte liste von cmds übergeben.

        Debugging:
        <ul>
          <li><B>raw &lt;data&gt; ...</B><br>
              Only needed for experimentation.
              send a list of "raw" commands. The first command will be
              immediately sent, the next one after the previous one is acked by
              the target.  The length will be computed automatically, and the
              message counter will be incremented if the first two charcters are
              ++. Example (enable AES):
           <pre>
             set hm1 raw ++A001F100001234560105000000001\
                ++A001F10000123456010802010AF10B000C00\
                ++A001F1000012345601080801\
                ++A001F100001234560106</pre>
          </li>
        </ul>

  if   ($cmd eq "raw") {  #####################################################
    return "Usage: set $a[0] $cmd data [data ...]" if(@a < 3);
    $state = "";
#    my $msg = $a[2];
#    foreach my $sub (@a[3..$#a]) {
#      last if ($sub !~ m/^[A-F0-9]*$/);
#      $msg .= $sub;     
#    }
#    CUL_HM_PushCmdStack($hash, $msg);
    CUL_HM_PushCmdStack($hash, $_) foreach(@a[2..$#a]);
  }



2. set regBulk

regBulk verlangt immer mindestens 2 register/value pärchen.
bei der angabe von nur einem pärchen erscheint die fehlermeldung:

param 2:'-addr2:data2-' => is required but missing
regBulk: -list-.-peerChn- -addr1:data1- -addr2:data2-...
Titel: Antw:[cul_hm] probleme bei cmds "set raw" und "set regBulk"
Beitrag von: martinp876 am 18 Juli 2021, 20:17:35
set raw kann nur ein Kommando. Ich haben die Beschreibung geändert.

regBulk ist korrigiert  update HMConfig