[Patch] notifyRegexpChanged for 91_sequence.pm & 98_structure.pm

Begonnen von Nestor, 24 Juli 2020, 22:59:15

Vorheriges Thema - Nächstes Thema

Nestor

--- - 2020-07-24 22:56:35.230251905 +0200
+++ /srv/fhem/FHEM/91_sequence.pm 2020-07-24 22:30:51.949163133 +0200
@@ -58,6 +58,9 @@
   $hash->{MAX} = int(@def);
   $hash->{STATE} = "active";
   $hash->{TS} = 0;

+  notifyRegexpChanged($hash, $hash->{RE});

   return undef;
}


--- - 2020-07-24 22:56:47.261736449 +0200
+++ /srv/fhem/FHEM/98_structure.pm 2020-07-24 22:52:15.153984579 +0200
@@ -112,6 +112,8 @@
         if(AttrVal($devname, "setStructType", $featurelevel <= 5.8));
   }, undef, 0);

+  notifyRegexpChanged($hash, 'global|'.join('|', @a));
+
   return undef;
}

rudolfkoenig

Applied the patch for sequence as proposed.
The call in structure.pm is better placed in structure_setDevs().