mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
24_Iluminize.pm: Switch to readingsSingleUpdate
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ca02061a56
commit
0deba990d0
@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
#
|
||||||
# Copyright notice
|
# Copyright notice
|
||||||
#
|
#
|
||||||
# Release 2018-10 First version
|
# Release 2018-10 First version
|
||||||
@ -109,14 +110,13 @@ sub Iluminize_Set($$)
|
|||||||
|
|
||||||
return "\"set $name\" needs at least one argument" unless(defined($cmd));
|
return "\"set $name\" needs at least one argument" unless(defined($cmd));
|
||||||
|
|
||||||
|
|
||||||
my $command;
|
my $command;
|
||||||
if ($cmd eq "on") {
|
if ($cmd eq "on") {
|
||||||
$command = $on;
|
$command = $on;
|
||||||
$hash->{STATE} = "on";
|
readingsSingleUpdate($hash, "state", "on", 1);
|
||||||
} elsif($cmd eq "off") {
|
} elsif($cmd eq "off") {
|
||||||
$command = $off;
|
$command = $off;
|
||||||
$hash->{STATE} = "off";
|
readingsSingleUpdate($hash, "state", "off", 1);
|
||||||
} else {
|
} else {
|
||||||
return SetExtensions($hash, $cmdList, $name, $cmd, @args);
|
return SetExtensions($hash, $cmdList, $name, $cmd, @args);
|
||||||
}
|
}
|
||||||
@ -164,6 +164,7 @@ sub Iluminize_Attr($$$$) {
|
|||||||
|
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
=begin html
|
=begin html
|
||||||
|
|
||||||
<a name="Iluminize"></a>
|
<a name="Iluminize"></a>
|
||||||
@ -187,6 +188,7 @@ sub Iluminize_Attr($$$$) {
|
|||||||
<code>define <name> Iluminize <ip/hostname></code><br>
|
<code>define <name> Iluminize <ip/hostname></code><br>
|
||||||
<br>
|
<br>
|
||||||
Definiert ein Iluminize LED Wifi-Licht
|
Definiert ein Iluminize LED Wifi-Licht
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
|
||||||
=item summary Support for Iluminize wifi controlled led stripe
|
=item summary Support for Iluminize wifi controlled led stripe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user