mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
021d593576
- Removes the clear channel and introduces sensor saturation as precentage value. - Ensures values stays within 0-100% range - fixes a rare bug where values would massively exceed 0-100% range, likely due to floating point matching of the exposure time failing. - Export R, G, B values as 0.0, until next PR adds calibrated irradiance values.
21 lines
398 B
YAML
21 lines
398 B
YAML
i2c:
|
|
- id: i2c_tcs34725
|
|
scl: 5
|
|
sda: 4
|
|
|
|
sensor:
|
|
- platform: tcs34725
|
|
red_channel:
|
|
name: Red Channel
|
|
green_channel:
|
|
name: Green Channel
|
|
blue_channel:
|
|
name: Blue Channel
|
|
sensor_saturation:
|
|
name: Sensor Saturation
|
|
illuminance:
|
|
name: Illuminance
|
|
color_temperature:
|
|
name: Color Temperature
|
|
integration_time: 614ms
|
|
gain: 60x
|