From 140fa058c3721bad992ef083a38b139e326e3265 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 9 Jul 2017 10:11:50 +0000 Subject: [PATCH] 10_FS20.pm: add useSetExtensions attribetu, default is 1 git-svn-id: https://svn.fhem.de/fhem/trunk@14675 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/10_FS20.pm | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index f1691e5b8..81801e2d6 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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. + - feature: 10_FS20: add useSetExtensions attribute, default is 1 - feature: 82_LGTV_WebOS: Version 0.8.0, fix screenMsg Charset problem - bugfix: 93_DbLog: V2.18.3, cannot load V2.18.2, new internal 'model' - bugfix: list: do not change the upper casing of hashes (Forum #73828) diff --git a/fhem/FHEM/10_FS20.pm b/fhem/FHEM/10_FS20.pm index 821bfa260..d8579b5b2 100755 --- a/fhem/FHEM/10_FS20.pm +++ b/fhem/FHEM/10_FS20.pm @@ -128,7 +128,7 @@ FS20_Initialize($) $hash->{ParseFn} = "FS20_Parse"; $hash->{AttrList} = "IODev follow-on-for-timer:1,0 follow-on-timer ". "do_not_notify:1,0 ignore:1,0 dummy:1,0 showtime:1,0 ". - "$readingFnAttributes " . + "useSetExtensions:0,1 $readingFnAttributes " . "model:".join(",", sort keys %models); } @@ -209,7 +209,9 @@ FS20_Set($@) } $list = (join(" ", sort keys %fs20_c2b) . " dim:slider,0,6.25,100") if(!defined($list)); - return SetExtensions($hash, $list, @a); + return SetExtensions($hash, $list, @a) + if(AttrVal($name, "useSetExtensions", 1)); + return "Unknown argument $a[1], choose one of $list"; } SetExtensionsCancel($hash); @@ -665,6 +667,11 @@ four2hex($$)