98_weekprofile: new: create events

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12541 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
risiko79 2016-11-10 19:17:17 +00:00
parent 775eb47fc4
commit c7c8fe3cc6
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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($$)
<br>
<b>For this module libjson-perl have to be installed</b>
<br><br>
<b>Events:</b><br>
Currently the following event will be created:<br>
<li>PROFILE_TRANSFERED: if a profile or a part of a profile (changes) is send to a device</li>
<li>PROFILES_SAVED: the profile are stored in the config file (also if there are no changes)</li>
<a name="weekprofiledefine"></a>
<b>Define</b>
<ul>
@ -1342,6 +1348,10 @@ sub weekprofile_getEditLNK_MasterDev($$)
<br>
<b>Für das Module wird libjson-perl benötigt</b>
<br><br>
<b>Events:</b><br>
Aktuell werden folgende Events erzeugt:<br>
<li>PROFILE_TRANSFERED: wenn ein Profil oder Teile davon zu einem Gerät gesended wurden</li>
<li>PROFILES_SAVED: wenn Profile in die Konfigurationsdatei gespeichert wurden (auch wenn es keine Änderung gab!)</li>
<a name="weekprofiledefine"></a>
<b>Define</b>
<ul>