mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_Hyperion: fix rgb error msg and documentation
git-svn-id: https://svn.fhem.de/fhem/trunk@12264 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f4c5fb9eb8
commit
58874e6dc7
@ -529,7 +529,7 @@ sub Hyperion_Set($@)
|
||||
}
|
||||
elsif ($cmd eq "rgb")
|
||||
{
|
||||
return "Value of $cmd has to be in RGB hex format like ffffff or 3f7d90" if ($value !~ /^(\d|[a-f]){6}$/);
|
||||
return "Value of $cmd has to be in rgb hex format like ffffff or 3f7d90" if ($value !~ /^(\d|[a-f]){6}$/);
|
||||
my ($r,$g,$b) = Color::hex2rgb($value);
|
||||
$obj{color} = [$r,$g,$b];
|
||||
$obj{command} = "color";
|
||||
@ -952,8 +952,8 @@ sub Hyperion_readingsBulkUpdateIfChanged($$$) {
|
||||
set the light on and restore previous state
|
||||
</li>
|
||||
<li>
|
||||
<i>rgb <RRGGBB> [duration] [priority]</i><br>
|
||||
set color in RGB Hex format with optional duration in seconds and priority
|
||||
<i>rgb <rrggbb> [duration] [priority]</i><br>
|
||||
set color in rgb hex format with optional duration in seconds and priority
|
||||
</li>
|
||||
<li>
|
||||
<i>saturationGain <1.100></i><br>
|
||||
|
Loading…
Reference in New Issue
Block a user