mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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:
parent
f71ec8a121
commit
659843ab33
@ -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" ){
|
||||
|
Loading…
Reference in New Issue
Block a user