From af6101db23a56bbbffc163ee937f58a0605641b8 Mon Sep 17 00:00:00 2001
From: Beta-User <>
Date: Mon, 29 Jul 2019 10:03:17 +0000
Subject: [PATCH] 98_RandomTimer.pm: cref fixes and reading name changes (Forum
#102621)
git-svn-id: https://svn.fhem.de/fhem/trunk@19910 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/98_RandomTimer.pm | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/fhem/FHEM/98_RandomTimer.pm b/fhem/FHEM/98_RandomTimer.pm
index a9afea6ee..44b4a09ad 100644
--- a/fhem/FHEM/98_RandomTimer.pm
+++ b/fhem/FHEM/98_RandomTimer.pm
@@ -65,7 +65,7 @@ sub RandomTimer_Initialize($) {
$hash->{UndefFn} = "RandomTimer_Undef";
$hash->{AttrFn} = "RandomTimer_Attr";
$hash->{AttrList} = "onCmd offCmd switchmode disable:0,1 disableCond ".
- "runonce:0,1 keepDeviceAlive forceStoptimeSameDay ".
+ "runonce:0,1 keepDeviceAlive:0,1 forceStoptimeSameDay:0,1 ".
$readingFnAttributes;
}
@@ -323,8 +323,10 @@ sub RandomTimer_schaltZeitenErmitteln ($$) {
RandomTimer_stopZeitErmitteln ($hash, $now);
readingsBeginUpdate($hash);
- readingsBulkUpdate ($hash, "Startzeit", FmtDateTime($hash->{helper}{startTime}));
- readingsBulkUpdate ($hash, "Stoppzeit", FmtDateTime($hash->{helper}{stopTime}));
+# readingsBulkUpdate ($hash, "Startzeit", FmtDateTime($hash->{helper}{startTime}));
+# readingsBulkUpdate ($hash, "Stoppzeit", FmtDateTime($hash->{helper}{stopTime}));
+ readingsBulkUpdate ($hash, "StartTime", FmtDateTime($hash->{helper}{startTime}));
+ readingsBulkUpdate ($hash, "StopTime", FmtDateTime($hash->{helper}{stopTime}));
readingsEndUpdate ($hash, defined($hash->{LOCAL} ? 0 : 1));
}
@@ -538,7 +540,7 @@ sub RandomTimer_GetHashIndirekt ($$) {
Defines a device, that imitates the random switch functionality of a timer clock, like a FS20 ZSU. The idea to create it, came from the problem, that is was always a little bit tricky to install a timer clock before holiday: finding the manual, testing it the days before and three different timer clocks with three different manuals - a horror.
By using it in conjunction with a dummy and a disableCond, I'm able to switch the always defined timer on every weekend easily from all over the world.
- Descrition
+ Description
forceStoptimeSameDay
keepDeviceAlive
attr stateFormat EDIPlug_01 {(ReadingsVal("EDIPlug_01","state","nF") =~ m/(ON|on)/i) ? "on" : "off" }
runonce
switchmode