2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

36_Shelly.pm: Bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@21949 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2020-05-16 04:35:35 +00:00
parent f71ec8a121
commit 659843ab33

View File

@ -39,7 +39,7 @@ use vars qw{%attr %defs};
sub Log($$);
#-- globals on start
my $version = "2.12";
my $version = "2.13";
#-- these we may get on request
my %gets = (
@ -726,7 +726,7 @@ sub Shelly_Set ($@) {
my $red=hex(substr($value,0,2));
my $green=hex(substr($value,2,2));
my $blue=hex(substr($value,4,2));
my $white=hex(substr($value,4,2));
my $white=hex(substr($value,6,2));
$cmd=sprintf("red=%d&green=%d&blue=%d&white=%d",$red,$green,$blue,$white);
Shelly_dim($hash,"color/0","?".$cmd);
}elsif( $cmd eq "white" ){