From 9e6152201724fbb1b6968d4f52cff060bf4dfcaa Mon Sep 17 00:00:00 2001 From: Ellert Date: Sun, 26 Feb 2017 12:30:29 +0000 Subject: [PATCH] 98_DOIFtools.pm: add a possibility to set the attribute icon for DOIF by multiselect to helper_doif, DOIF's new icon D[:]IF git-svn-id: https://svn.fhem.de/fhem/trunk@13525 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/98_DOIFtools.pm | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 273d2e47d..cc365f2d4 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # 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. + - update: 98_DOIFtools: add a possibility to set the attribute icon for DOIF + by multiselect to helper_doif, DOIF's new icon D[:]IF - update: 38_netatmo.pm: API changes - new: 34_ESPEasy.pm: initial check in - bugfix: 38_netatmo.pm: fixed error crash diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm index e20cf4372..1992b18e5 100644 --- a/fhem/FHEM/98_DOIFtools.pm +++ b/fhem/FHEM/98_DOIFtools.pm @@ -258,8 +258,8 @@ sub DOIFtools_logWrapper($) { FW_pO "
"; FW_pO "
" if($FW_ss); - FW_pO "
jump to: the end first listing
"; - my $suffix = "
jump to: the top first listing
".($FW_ss ? "
" : "")."
"; + FW_pO "
jump to: the end top listing
"; + my $suffix = "
jump to: the top top listing
".($FW_ss ? "" : "").""; my $reverseLogs = AttrVal($FW_wname, "reverseLogs", 0); if(!$reverseLogs) { @@ -1296,9 +1296,13 @@ sub DOIFtools_Get($@) $ret = $ret ? "Found running wait_timer for:\n\n$ret" : "No running wait_timer found."; return $ret; + } elsif ($arg eq "SetAttrIconForDOIF") { + $ret .= CommandAttr(undef,"$value icon helper_doif"); + $ret .= CommandSave(undef,undef) if (AttrVal($pn,"DOIFtoolsExecuteSave","")); + return $ret; } else { my $hardcoded = "checkDOIF:noArg statisticsReport:noArg runningTimerInDOIF:noArg"; - return "unknown argument $arg for $pn, choose one of readingsGroup_for:multiple-strict,$dL DOIF_to_Log:multiple-strict,$dL userReading_nextTimer_for:multiple-strict,$ntL ".(AttrVal($pn,"DOIFtoolsHideGetSet",0) ? $hardcoded :""); + return "unknown argument $arg for $pn, choose one of readingsGroup_for:multiple-strict,$dL DOIF_to_Log:multiple-strict,$dL SetAttrIconForDOIF:multiple-strict,$dL userReading_nextTimer_for:multiple-strict,$ntL ".(AttrVal($pn,"DOIFtoolsHideGetSet",0) ? $hardcoded :""); } return $ret; @@ -1465,6 +1469,9 @@ DOIFtools stellt Funktionen zur Unterstützung von DOIF-Geräten bereit.
get <name> runningTimerInDOIF
runningTimerInDOIF zeigt eine Liste der laufenden Timer. Damit kann entschieden werden, ob bei einem Neustart wichtige Timer gelöscht werden und der Neustart ggf. verschoben werden sollte.

+ get <name> SetAttrIconForDOIF <DOIF names for setting the attribute icon to helper_doif>
+ SetAttrIconForDOIF setzt für die ausgewählten DOIF das Attribut icon auf helper_doif.
+