BH1750 dynamically calculate options (#1915)
This commit is contained in:
parent
d948eb737a
commit
5fa975f029
|
@ -28,15 +28,8 @@ your configuration for this sensor to work.
|
||||||
- platform: bh1750
|
- platform: bh1750
|
||||||
name: "BH1750 Illuminance"
|
name: "BH1750 Illuminance"
|
||||||
address: 0x23
|
address: 0x23
|
||||||
measurement_duration: 69
|
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
|
|
||||||
By default the **measurement_duration** is set to ``69`` which will result into measurements up
|
|
||||||
to 54612.5 lx for this sensor. For low-light situations consider to choose a higher
|
|
||||||
measurement_duration up to ``254`` which will result in a maximum measurement range up to 14835 lx.
|
|
||||||
For sunny scenes (for example outdoors with sunlight) use lower values down to ``31`` which will
|
|
||||||
give you the maximum measurement range up to 121556 lx.
|
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
@ -44,10 +37,6 @@ Configuration variables:
|
||||||
- **address** (*Optional*, int): Manually specify the I²C address of the sensor.
|
- **address** (*Optional*, int): Manually specify the I²C address of the sensor.
|
||||||
Defaults to ``0x23`` (address if address pin is pulled low). If the address pin is pulled high,
|
Defaults to ``0x23`` (address if address pin is pulled low). If the address pin is pulled high,
|
||||||
the address is ``0x5C``.
|
the address is ``0x5C``.
|
||||||
- **measurement_duration** (*Optional*, int): Manually specify the measurement duration between ``31``
|
|
||||||
and ``254``. Defaults to ``69``.
|
|
||||||
- **resolution** (*Optional*, string): The resolution of the sensor in lx. One of ``4.0``,
|
|
||||||
``1.0``, ``0.5``. Defaults to ``0.5`` (the maximum resolution).
|
|
||||||
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
|
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
|
||||||
sensor. Defaults to ``60s``.
|
sensor. Defaults to ``60s``.
|
||||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code
|
||||||
|
|
Loading…
Reference in New Issue