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:
loredo
2018-10-23 07:48:38 +00:00
parent 93b15e2f5e
commit 0553b21fed

View File

@@ -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"
)