Pilight state min and max brightness settings (#14516)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Daniel de Jong 2020-09-29 17:24:42 +02:00 committed by GitHub
parent b3671be008
commit 0157ec97a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,9 @@ switch:
## Light
Pilight dimmer devices, which can have different brightness values, can be used as a light.
The configuration parameters are the same for dimmers and switches.
The configuration parameters are the same for dimmers and switches, but dimmers support a minimum and maximum dimming level.
The `dimlevel_min` and `dimlevel_max` settings are to be set in the range of `0` to `15`, as used by pilight. Any dimming performed by Home Assistant (most likely in a `0` to `100` range) will be converted as a percentage of the available configured range in Pilight.
{% configuration %}
lights:
@ -331,6 +333,8 @@ light:
- platform: pilight
lights:
test2:
dimlevel_min: 2
dimlevel_max: 14
on_code:
protocol: kaku_dimmer
id: 23298822