98_weekprofile: add userattr 'weekprofile' to supported modules

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24997 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2021-09-20 09:42:04 +00:00
parent 42a9b50363
commit e6b83a1518
2 changed files with 20 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: add userattr 'weekprofile' to supported modules
- change: 98_weekprofile: using id's in module documentation
- change: 93_RFHEM: Deprecation message (use FHEM2FHEM), some fixes
- change: 93_DbRep: SQL code for SQLite, Forum:#122791

View File

@ -564,6 +564,9 @@ sub weekprofile_refreshSendDevList($)
splice(@{$hash->{SNDDEVLIST}});
my $useTopics = AttrVal($me,"useTopics",0);
Log3($me, 5, "$me(weekprofile_refreshSendDevList): start");
foreach my $d (keys %defs)
{
next if ($defs{$d}{NAME} eq $me);
@ -581,7 +584,12 @@ sub weekprofile_refreshSendDevList($)
$dev->{NAME} = $defs{$d}{NAME};
$dev->{ALIAS} = AttrVal($dev->{NAME},"alias",$dev->{NAME});
# add userattr weekprofile to device
# help of attr weekprofile will come from module weekprofile
addToDevAttrList($dev->{NAME},"weekprofile","weekprofile") if ($useTopics);
push @{$hash->{SNDDEVLIST}} , $dev;
Log3($me, 5, "$me(weekprofile_refreshSendDevList): add device $dev->{NAME}");
}
my $cnt = scalar(@{$hash->{SNDDEVLIST}});
Log3($me, 5, "$me(weekprofile_refreshSendDevList): $cnt devices in list");
@ -1991,6 +1999,12 @@ __END__
Force to send the complete profile to the device instead of only the changes.
Possibility to resend a complete week profile
</li>
<a id="weekprofile-attr-weekprofile"></a>
<li>weekprofile<br>
This attribute can be a userattr of supported modules of weekprofile to receive a specific profile with the
defined name at the <i>restore_topic</i> command. See topics for further information
</li>
</ul>
</ul>
=end html
@ -2223,6 +2237,11 @@ __END__
Ezwingt das Senden eines komplettes Wochenprofiles anstatt der Änderungen
Es besteht somit die Möglichkeit eines erneuten Senden der Daten an das Thermostats
</li>
<a id="weekprofile-attr-weekprofile"></a>
<li>weekprofile<br>
Kann ein userattr eines unterstützten Moduls von weekprofile sein, um ein spezifisches Profil mit dem angegeben Namen
beim Befehl <i>restore_topic</i> zu empfangen. Siehe auch 'Topics'.
</li>
</ul>
</ul>
=end html_DE