mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
10_RESIDENTS.pm: hotfix to use new duration() function
git-svn-id: https://svn.fhem.de/fhem/trunk@17602 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8558730571
commit
04279a7778
@ -823,14 +823,14 @@ sub RESIDENTS_UpdateReadings (@) {
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurSleep",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastSleep", "" )
|
||||
)
|
||||
);
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurSleep_cr",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastSleep", "" ), "min"
|
||||
)
|
||||
);
|
||||
@ -854,14 +854,14 @@ sub RESIDENTS_UpdateReadings (@) {
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurAbsence",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastDeparture", "-" )
|
||||
)
|
||||
);
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurAbsence_cr",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastDeparture", "-" ),
|
||||
"min"
|
||||
)
|
||||
@ -876,14 +876,14 @@ sub RESIDENTS_UpdateReadings (@) {
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurPresence",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastArrival", "-" )
|
||||
)
|
||||
);
|
||||
readingsBulkUpdate(
|
||||
$hash,
|
||||
"lastDurPresence_cr",
|
||||
RESIDENTStk_TimeDiff(
|
||||
UConv::duration(
|
||||
$datetime, ReadingsVal( $name, "lastArrival", "-" ),
|
||||
"min"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user