RFFHEM icon indicating copy to clipboard operation
RFFHEM copied to clipboard

Dynamic logical modules

Open sidey79 opened this issue 10 years ago • 1 comments

Provide an option, to extend decoding via additional logical modules defined with attributes.

sidey79 avatar May 22 '15 20:05 sidey79

Eine Matchlist kann pro Gerätedefinition wie folgt eingebunden werden.

{
   my ($hash, $def) = @_;

   ...

   $hash->{MatchList} = { "1:CUL_HM" => "^A...................." };
}

Das SD_Packages Modul könnte diese Information bereitstellen indem dort eine Funktion getMatchlist(); angeboten wird.

Die Funktion getMatchlist() könnte dabei über den protocol hash iterieren und aus dem hinterlegten Clientmodul die Matchlist erzeugen. Woher wir die Priorität nehmen weiss ich nicht. Im Zweifelsfall wird einfach nach der ID sortiert.

@ralf9 @homeautouser

sidey79 avatar Feb 28 '19 20:02 sidey79