mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
PHTV: fix commandref and possible scope for set-hue
git-svn-id: https://svn.fhem.de/fhem/trunk@5229 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a88158ea6b
commit
40c8a716ca
@ -727,7 +727,7 @@ sub PHTV_Set($@) {
|
|||||||
my $_ = $a[2];
|
my $_ = $a[2];
|
||||||
my $hsb;
|
my $hsb;
|
||||||
my $hex;
|
my $hex;
|
||||||
if ( m/^\d+$/ && $_ >= 0 && $_ <= 65534 ) {
|
if ( m/^\d+$/ && $_ >= 0 && $_ <= 65535 ) {
|
||||||
$hsb = PHTV_hex2hsb( $hash->{READINGS}{rgb}{VAL} );
|
$hsb = PHTV_hex2hsb( $hash->{READINGS}{rgb}{VAL} );
|
||||||
$hex = PHTV_hsb2hex( $_, $hsb->{s}, $hsb->{b} );
|
$hex = PHTV_hsb2hex( $_, $hsb->{s}, $hsb->{b} );
|
||||||
|
|
||||||
@ -3048,12 +3048,15 @@ sub PHTV_min {
|
|||||||
<br><br>
|
<br><br>
|
||||||
<u>Examples:</u><br>
|
<u>Examples:</u><br>
|
||||||
<div style="margin-left: 2em">
|
<div style="margin-left: 2em">
|
||||||
<code># set LED 0 on left side within layer 1 to color RED
|
<code># set LED 0 on left side within layer 1 to color RED<br>
|
||||||
set PhilipsTV rgb L1L0:FF0000<br><br>
|
set PhilipsTV rgb L1L0:FF0000
|
||||||
# set LED 0, 2 and 4 on left side within layer 1 to color RED
|
<br><br>
|
||||||
set PhilipsTV rgb L1L0:FF0000 L1L2:FF0000 L1L4:FF0000<br><br>
|
# set LED 0, 2 and 4 on left side within layer 1 to color RED<br>
|
||||||
# set complete right side within layer 1 to color GREEN
|
set PhilipsTV rgb L1L0:FF0000 L1L2:FF0000 L1L4:FF0000
|
||||||
set PhilipsTV rgb L1R:00FF00<br><br>
|
<br><br>
|
||||||
|
# set complete right side within layer 1 to color GREEN<br>
|
||||||
|
set PhilipsTV rgb L1R:00FF00
|
||||||
|
<br><br>
|
||||||
# set complete layer 1 to color BLUE
|
# set complete layer 1 to color BLUE
|
||||||
set PhilipsTV rgb L1:0000FF</code>
|
set PhilipsTV rgb L1:0000FF</code>
|
||||||
</div><br>
|
</div><br>
|
||||||
@ -3082,17 +3085,22 @@ sub PHTV_min {
|
|||||||
<br><br>
|
<br><br>
|
||||||
<u>Examples:</u><br>
|
<u>Examples:</u><br>
|
||||||
<div style="margin-left: 2em">
|
<div style="margin-left: 2em">
|
||||||
<code># to use only LED 4 from the top as source
|
<code># to use only LED 4 from the top as source<br>
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:4<br><br>
|
attr PhilipsTV ambiHueTop HUEDevice0:4
|
||||||
# to use a combination of LED's 1+2 as source
|
<br><br>
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:1-2<br><br>
|
# to use a combination of LED's 1+2 as source<br>
|
||||||
# to use LED's 1+2 and only 90% of their saturation
|
attr PhilipsTV ambiHueTop HUEDevice0:1-2
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:1-2:90<br><br>
|
<br><br>
|
||||||
# to use LED's 1+2 and only 50% of their brightness
|
# to use LED's 1+2 and only 90% of their saturation<br>
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:1-2::50<br><br>
|
attr PhilipsTV ambiHueTop HUEDevice0:1-2:90
|
||||||
# to use LED's 1+2, 90% saturation and 50% brightness
|
<br><br>
|
||||||
|
# to use LED's 1+2 and only 50% of their brightness<br>
|
||||||
|
attr PhilipsTV ambiHueTop HUEDevice0:1-2::50
|
||||||
|
<br><br>
|
||||||
|
# to use LED's 1+2, 90% saturation and 50% brightness<br>
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:1-2:90:50
|
attr PhilipsTV ambiHueTop HUEDevice0:1-2:90:50
|
||||||
# to use default LED settings but only adjust their brightness to 50%
|
<br><br>
|
||||||
|
# to use default LED settings but only adjust their brightness to 50%<br>
|
||||||
attr PhilipsTV ambiHueTop HUEDevice0:::50</code>
|
attr PhilipsTV ambiHueTop HUEDevice0:::50</code>
|
||||||
</div><br>
|
</div><br>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user