mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 07:19:24 +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(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurSleep",
|
"lastDurSleep",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastSleep", "" )
|
$datetime, ReadingsVal( $name, "lastSleep", "" )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurSleep_cr",
|
"lastDurSleep_cr",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastSleep", "" ), "min"
|
$datetime, ReadingsVal( $name, "lastSleep", "" ), "min"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -854,14 +854,14 @@ sub RESIDENTS_UpdateReadings (@) {
|
|||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurAbsence",
|
"lastDurAbsence",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastDeparture", "-" )
|
$datetime, ReadingsVal( $name, "lastDeparture", "-" )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurAbsence_cr",
|
"lastDurAbsence_cr",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastDeparture", "-" ),
|
$datetime, ReadingsVal( $name, "lastDeparture", "-" ),
|
||||||
"min"
|
"min"
|
||||||
)
|
)
|
||||||
@ -876,14 +876,14 @@ sub RESIDENTS_UpdateReadings (@) {
|
|||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurPresence",
|
"lastDurPresence",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastArrival", "-" )
|
$datetime, ReadingsVal( $name, "lastArrival", "-" )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$hash,
|
$hash,
|
||||||
"lastDurPresence_cr",
|
"lastDurPresence_cr",
|
||||||
RESIDENTStk_TimeDiff(
|
UConv::duration(
|
||||||
$datetime, ReadingsVal( $name, "lastArrival", "-" ),
|
$datetime, ReadingsVal( $name, "lastArrival", "-" ),
|
||||||
"min"
|
"min"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user