From 0deba990d0afb18d58dfde433ba8a917a21d2278 Mon Sep 17 00:00:00 2001
From: vk <>
Date: Fri, 12 Oct 2018 17:30:11 +0000
Subject: [PATCH] 24_Iluminize.pm: Switch to readingsSingleUpdate
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
FHEM/24_Iluminize.pm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/FHEM/24_Iluminize.pm b/FHEM/24_Iluminize.pm
index e3c46ac91..53a8e7f92 100644
--- a/FHEM/24_Iluminize.pm
+++ b/FHEM/24_Iluminize.pm
@@ -2,6 +2,7 @@
#
# $Id$
#
+#
# Copyright notice
#
# Release 2018-10 First version
@@ -109,14 +110,13 @@ sub Iluminize_Set($$)
return "\"set $name\" needs at least one argument" unless(defined($cmd));
-
my $command;
if ($cmd eq "on") {
$command = $on;
- $hash->{STATE} = "on";
+ readingsSingleUpdate($hash, "state", "on", 1);
} elsif($cmd eq "off") {
$command = $off;
- $hash->{STATE} = "off";
+ readingsSingleUpdate($hash, "state", "off", 1);
} else {
return SetExtensions($hash, $cmdList, $name, $cmd, @args);
}
@@ -164,6 +164,7 @@ sub Iluminize_Attr($$$$) {
=pod
+
=begin html
@@ -187,6 +188,7 @@ sub Iluminize_Attr($$$$) {
define <name> Iluminize <ip/hostname>
Definiert ein Iluminize LED Wifi-Licht
+
=end html_DE
=item summary Support for Iluminize wifi controlled led stripe