mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-27 04:13:07 +02:00
Fix range parameters for light.addressable_set (#1363)
Since 521c080989d4 the range parameters are a closed interval, not a half-open interval.
This commit is contained in:
parent
96bc8820f6
commit
d0f311a18f
@ -309,10 +309,10 @@ Configuration variables:
|
||||
|
||||
- **id** (**Required**, :ref:`config-id`): The ID of the addressable light to control.
|
||||
- **range_from** (*Optional*, :ref:`templatable <config-templatable>`, int): The beginning
|
||||
of the range of LEDs to control. 0-based indexing. Defaults to 0 (the beginning of the strip).
|
||||
of the range of LEDs to control, inclusive, using zero-based indexing. Defaults to 0 (the beginning of the strip).
|
||||
- **range_to** (*Optional*, :ref:`templatable <config-templatable>`, int): The end of the
|
||||
range of LEDs to control - this is a half-open interval. 0-based indexing.
|
||||
Defaults to the end of the strip (``num_leds``).
|
||||
range of LEDs to control, inclusive, using zero-based indexing.
|
||||
Defaults to the end of the strip (``num_leds`` - 1).
|
||||
- **color_brightness** (*Optional*, :ref:`templatable <config-templatable>`, percentage): The brightness to
|
||||
set the color channel to.
|
||||
- **red** (*Optional*, :ref:`templatable <config-templatable>`, percentage): The value to
|
||||
|
Loading…
Reference in New Issue
Block a user