mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
98_weekprofile: add userattr 'weekprofile' to supported modules
git-svn-id: https://svn.fhem.de/fhem/trunk@24997 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d15a49ce8c
commit
a0be1a9ad9
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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: 98_weekprofile: using id's in module documentation
|
||||||
- change: 93_RFHEM: Deprecation message (use FHEM2FHEM), some fixes
|
- change: 93_RFHEM: Deprecation message (use FHEM2FHEM), some fixes
|
||||||
- change: 93_DbRep: SQL code for SQLite, Forum:#122791
|
- change: 93_DbRep: SQL code for SQLite, Forum:#122791
|
||||||
|
@ -564,6 +564,9 @@ sub weekprofile_refreshSendDevList($)
|
|||||||
|
|
||||||
splice(@{$hash->{SNDDEVLIST}});
|
splice(@{$hash->{SNDDEVLIST}});
|
||||||
|
|
||||||
|
my $useTopics = AttrVal($me,"useTopics",0);
|
||||||
|
Log3($me, 5, "$me(weekprofile_refreshSendDevList): start");
|
||||||
|
|
||||||
foreach my $d (keys %defs)
|
foreach my $d (keys %defs)
|
||||||
{
|
{
|
||||||
next if ($defs{$d}{NAME} eq $me);
|
next if ($defs{$d}{NAME} eq $me);
|
||||||
@ -581,7 +584,12 @@ sub weekprofile_refreshSendDevList($)
|
|||||||
$dev->{NAME} = $defs{$d}{NAME};
|
$dev->{NAME} = $defs{$d}{NAME};
|
||||||
$dev->{ALIAS} = AttrVal($dev->{NAME},"alias",$dev->{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;
|
push @{$hash->{SNDDEVLIST}} , $dev;
|
||||||
|
Log3($me, 5, "$me(weekprofile_refreshSendDevList): add device $dev->{NAME}");
|
||||||
}
|
}
|
||||||
my $cnt = scalar(@{$hash->{SNDDEVLIST}});
|
my $cnt = scalar(@{$hash->{SNDDEVLIST}});
|
||||||
Log3($me, 5, "$me(weekprofile_refreshSendDevList): $cnt devices in list");
|
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.
|
Force to send the complete profile to the device instead of only the changes.
|
||||||
Possibility to resend a complete week profile
|
Possibility to resend a complete week profile
|
||||||
</li>
|
</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>
|
||||||
</ul>
|
</ul>
|
||||||
=end html
|
=end html
|
||||||
@ -2223,6 +2237,11 @@ __END__
|
|||||||
Ezwingt das Senden eines komplettes Wochenprofiles anstatt der Änderungen
|
Ezwingt das Senden eines komplettes Wochenprofiles anstatt der Änderungen
|
||||||
Es besteht somit die Möglichkeit eines erneuten Senden der Daten an das Thermostats
|
Es besteht somit die Möglichkeit eines erneuten Senden der Daten an das Thermostats
|
||||||
</li>
|
</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>
|
||||||
</ul>
|
</ul>
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user