Add support for LTR390 (#1505)
* Add support for ltr390 * Fix linting errors * Fix more linting errors * Linting fixes continued * Linting forever * Another one * Fix regression and linting * Fix narrowing conversion * Add test and bugfix * Add codeowners * Update CODEOWNERS * Update sensor defs * Reformatted with black * Fixed device class import * Update CODEOWNERS * Update CODEOWNERS * Adding all config options As requested https://github.com/esphome/esphome/pull/1505#discussion_r597326897 * Moving test to different config file test1.yml runs out of memory * Update according to comments * Add safety clause to reading modes * Fix clang-tidy complaint * Revert change to i2c component * Fix for changes in dev * Revert "Revert change to i2c component" This reverts commit 2810df59e9c05311df6d32149ed79a393676503b. Co-authored-by: Otto winter <otto@otto-winter.com> Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
@@ -238,6 +238,20 @@ sensor:
|
||||
name: 'Inkbird IBS-TH1 Humidity'
|
||||
battery_level:
|
||||
name: 'Inkbird IBS-TH1 Battery Level'
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: "LTR390 UV"
|
||||
uv_index:
|
||||
name: "LTR390 UVI"
|
||||
light:
|
||||
name: "LTR390 Light"
|
||||
ambient_light:
|
||||
name: "LTR390 ALS"
|
||||
gain: "X3"
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
- platform: sgp40
|
||||
name: 'Workshop VOC'
|
||||
update_interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user