mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 19:32:42 +00:00
FHEM/10_MQTT2_DEVICE.pm: second try (Forum #129932)
git-svn-id: https://svn.fhem.de/fhem/trunk@26609 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1b6af60580
commit
50cd471848
@ -857,7 +857,7 @@ MQTT2_DEVICE_addPos($@)
|
||||
sub
|
||||
zigbee2mqtt_RGB2JSON($;$)
|
||||
{
|
||||
my ($rgb,$trans) = shift(@_);
|
||||
my ($rgb,$trans) = (@_);
|
||||
$rgb =~ m/^(..)(..)(..)/;
|
||||
return toJSON({'transition'=>defined($trans) ? $trans : 1,
|
||||
'color'=>{r=>hex($1),g=>hex($2),b=>hex($3)}});
|
||||
|
Loading…
x
Reference in New Issue
Block a user