mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_weekprofile: New: Force to send complete week profile Attr forceCompleteProfile
git-svn-id: https://svn.fhem.de/fhem/trunk@18144 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eaebc6567a
commit
c21612d8d0
@ -1,7 +1,9 @@
|
|||||||
# 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: Force to send complete week profile
|
||||||
|
Attr forceCompleteProfile
|
||||||
- feature: 98_weekprofile: delay between sending profile data to the
|
- feature: 98_weekprofile: delay between sending profile data to the
|
||||||
same type of device. Attr send_delay
|
same type of device. Attr sendDelay
|
||||||
- bugfix: 88_HMCCU: Bug fixes
|
- bugfix: 88_HMCCU: Bug fixes
|
||||||
- change: 10_MYSENSORS_DEVICE: make OTA feature available,
|
- change: 10_MYSENSORS_DEVICE: make OTA feature available,
|
||||||
change battery name convention,
|
change battery name convention,
|
||||||
|
@ -305,7 +305,7 @@ sub weekprofile_sendDevProfile(@)
|
|||||||
|
|
||||||
my $devPrf = weekprofile_readDevProfile($device,$type,$me);
|
my $devPrf = weekprofile_readDevProfile($device,$type,$me);
|
||||||
|
|
||||||
|
my $force = AttrVal($me,"forceCompleteProfile",0);
|
||||||
|
|
||||||
# only send changed days
|
# only send changed days
|
||||||
my @dayToTransfer = ();
|
my @dayToTransfer = ();
|
||||||
@ -327,7 +327,7 @@ sub weekprofile_sendDevProfile(@)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($equal == 0) {
|
if ($equal == 0 || $force > 0) {
|
||||||
push @dayToTransfer , $day;
|
push @dayToTransfer , $day;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
@ -407,7 +407,7 @@ sub weekprofile_sendDevProfile(@)
|
|||||||
$cmd =~ s/^\s+|\s+$//g;
|
$cmd =~ s/^\s+|\s+$//g;
|
||||||
|
|
||||||
#transfer profil data delayed e.q. to avoid messages like "queue is full, dropping packet" by HM devices
|
#transfer profil data delayed e.q. to avoid messages like "queue is full, dropping packet" by HM devices
|
||||||
my $snd_delay = AttrVal($me,"send_delay",0);
|
my $snd_delay = AttrVal($me,"sendDelay",0);
|
||||||
if ($snd_delay>0) {
|
if ($snd_delay>0) {
|
||||||
|
|
||||||
my $datetimenow = gettimeofday();
|
my $datetimenow = gettimeofday();
|
||||||
@ -568,7 +568,7 @@ sub weekprofile_Initialize($)
|
|||||||
$hash->{NotifyFn} = "weekprofile_Notify";
|
$hash->{NotifyFn} = "weekprofile_Notify";
|
||||||
$hash->{AttrFn} = "weekprofile_Attr";
|
$hash->{AttrFn} = "weekprofile_Attr";
|
||||||
$hash->{AttrList} = "useTopics:0,1 widgetTranslations widgetWeekdays widgetEditOnNewPage:0,1 widgetEditDaysInRow:1,2,3,4,5,6,7 \
|
$hash->{AttrList} = "useTopics:0,1 widgetTranslations widgetWeekdays widgetEditOnNewPage:0,1 widgetEditDaysInRow:1,2,3,4,5,6,7 \
|
||||||
send_delay tempON tempOFF configFile ".$readingFnAttributes;
|
sendDelay tempON tempOFF configFile forceCompleteProfile:0,1 ".$readingFnAttributes;
|
||||||
|
|
||||||
$hash->{FW_summaryFn} = "weekprofile_SummaryFn";
|
$hash->{FW_summaryFn} = "weekprofile_SummaryFn";
|
||||||
|
|
||||||
@ -1536,10 +1536,16 @@ sub weekprofile_getEditLNK_MasterDev($$)
|
|||||||
<li>tempOFF<br>
|
<li>tempOFF<br>
|
||||||
Temperature for 'off'. e.g. 4
|
Temperature for 'off'. e.g. 4
|
||||||
</li>
|
</li>
|
||||||
<li>send_delay<br>
|
<li>sendDelay<br>
|
||||||
|
Default: 0
|
||||||
Delay in seconds between sending profile data the same type of device.
|
Delay in seconds between sending profile data the same type of device.
|
||||||
This is usefull to avoid messages like "queue is full, dropping packet" by HM devices
|
This is usefull to avoid messages like "queue is full, dropping packet" by HM devices
|
||||||
</li>
|
</li>
|
||||||
|
<li>forceCompleteProfile<br>
|
||||||
|
Default: 0
|
||||||
|
Force to send the complete profile to the device instead of only the changes.
|
||||||
|
Possibility to resend a complete week profile
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -1699,10 +1705,16 @@ sub weekprofile_getEditLNK_MasterDev($$)
|
|||||||
<li>tempOFF<br>
|
<li>tempOFF<br>
|
||||||
Temperature für 'off'. z.B. 4
|
Temperature für 'off'. z.B. 4
|
||||||
</li>
|
</li>
|
||||||
<li>send_delay<br>
|
<li>sendDelay<br>
|
||||||
|
Default: 0
|
||||||
Verzögerungszweit in Sekunden zwischen dem Senden von Profildaten an ein Thermostat gleichen Typs.
|
Verzögerungszweit in Sekunden zwischen dem Senden von Profildaten an ein Thermostat gleichen Typs.
|
||||||
Hilfreich zur Vermeidung von Meldungen wie "queue is full, dropping packet".
|
Hilfreich zur Vermeidung von Meldungen wie "queue is full, dropping packet".
|
||||||
</li>
|
</li>
|
||||||
|
<li>forceCompleteProfile<br>
|
||||||
|
Default: 0
|
||||||
|
Ezwingt das Senden eines komplettes Wochenprofiles anstatt der Änderungen
|
||||||
|
Es besteht somit die Möglichkeit eines erneuten Senden der Daten an das Thermostats
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user