From c7c8fe3cc677b7bd04899bce019a54d22b3331c7 Mon Sep 17 00:00:00 2001 From: risiko79 <> Date: Thu, 10 Nov 2016 19:17:17 +0000 Subject: [PATCH] 98_weekprofile: new: create events git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12541 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 1 + FHEM/98_weekprofile.pm | 10 ++++++++++ 2 files changed, 11 insertions(+) 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