diff --git a/CHANGED b/CHANGED index 38f8cc2da..1f620911b 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 98_weekprofile: create events see help for further information - feature: 36_WMBUS: support for Amber Wireless AMB8465-M as IoDev - feature: 67_ECMDDevice: new attribute noState - bugfix: 02_RSS: make hash reference explicit diff --git a/FHEM/98_weekprofile.pm b/FHEM/98_weekprofile.pm index 032f369db..a636be0db 100644 --- a/FHEM/98_weekprofile.pm +++ b/FHEM/98_weekprofile.pm @@ -292,6 +292,7 @@ sub weekprofile_sendDevProfile(@) $cmd =~ s/^\s+|\s+$//g; Log3 $me, 4, "$me(sendDevProfile): $cmd"; $ret = fhem($cmd,1); + DoTrigger($me,"PROFILE_TRANSFERED $device",1); } return $ret; } @@ -942,6 +943,7 @@ sub weekprofile_writeProfilesToFile(@) print $fh "entry=".$json->encode($hash->{PROFILES}[$i])."\n"; } close $fh; + DoTrigger($me,"PROFILES_SAVED",1); } ############################################## sub weekprofile_readProfilesFromFile(@) @@ -1197,6 +1199,10 @@ sub weekprofile_getEditLNK_MasterDev($$)
For this module libjson-perl have to be installed

+ Events:
+ Currently the following event will be created:
+
  • PROFILE_TRANSFERED: if a profile or a part of a profile (changes) is send to a device
  • +
  • PROFILES_SAVED: the profile are stored in the config file (also if there are no changes)
  • Define