mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_weekprofile: new: create events
git-svn-id: https://svn.fhem.de/fhem/trunk@12541 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0920d065f7
commit
487ead93b2
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user