mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +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
4522128649
commit
54adc3bbc3
@ -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