This commit is contained in:
2024-04-10 14:49:07 +02:00
parent 956236ca8d
commit 523d1143f3
111 changed files with 41255 additions and 98061 deletions

Submodule esphome/sensors/.esphome/external_components/1e6970f9 deleted from e995883d66

Submodule esphome/sensors/.esphome/external_components/9cb05fac deleted from 94b3200604

View File

@@ -1,23 +1,23 @@
---
sensor:
# Batterie volt
- platform: adc
pin: ${pin_vbatt}
name: 'Battery Voltage'
id: 'Battery_voltage'
attenuation: 11db
unit_of_measurement: 'V'
icon: 'mdi:battery-high'
device_class: 'voltage'
state_class: 'measurement'
accuracy_decimals: 2
filters:
- multiply: 2
- calibrate_linear:
# Map 0.0 (from sensor) to 0.0 (true value)
- 0.0 -> 0.0
- 4.0 -> 4.0
update_interval: ${update_interval}
# - platform: adc
# pin: ${pin_vbatt}
# name: 'Battery Voltage'
# id: 'Battery_voltage'
# attenuation: 11db
# unit_of_measurement: 'V'
# icon: 'mdi:battery-high'
# device_class: 'voltage'
# state_class: 'measurement'
# accuracy_decimals: 2
# filters:
# - multiply: 2
# - calibrate_linear:
# # Map 0.0 (from sensor) to 0.0 (true value)
# - 0.0 -> 0.0
# - 4.0 -> 4.0
# update_interval: ${update_interval}
# Battery %
- platform: adc

View File

@@ -1,6 +1,6 @@
---
sensor:
- platform: bme280
- platform: bme280_i2c
i2c_id: bus_a
temperature:
name: 'Temperature (BME280)'

View File

@@ -0,0 +1,14 @@
---
sensor:
- platform: rotary_encoder
internal: False
name: "Rotary Encoder"
pin_a: ${pin_encode_a}
pin_b: ${pin_encode_b}
binary_sensor:
- platform: gpio
pin:
number: ${pin_encode_btn}
inverted: True
name: "Rotary Button"

View File

@@ -0,0 +1,23 @@
---
sensor:
- platform: tsl2591
name: "light sensor"
id: "tls2591"
address: 0x29
update_interval: 60s
gain: auto
device_factor: 53
glass_attenuation_factor: 14.4
visible:
name: "visible light"
infrared:
name: "infrared light"
full_spectrum:
name: "full spectrum light"
calculated_lux:
id: i_lux
name: "Lux"
actual_gain:
id: "actual_gain"
name: "actual gain"

View File

@@ -11,4 +11,4 @@ sensor:
name: Particulate Matter 2.5µm Concentration
pm_10_0:
name: Particulate Matter 10µm Concentration
update_interval: 30000ms
update_interval: ${update_interval}

View File

@@ -11,4 +11,24 @@ sensor:
accuracy_decimals: 1
temperature_offset: 1.5 °C
address: 0x61
update_interval: 5s
update_interval: 1s
button:
- platform: template
name: "SCD30 Force manual calibration"
entity_category: "config"
on_press:
then:
- scd30.force_recalibration_with_reference:
value: !lambda 'return id(co2_cal).state;'
number:
- platform: template
name: "CO2 calibration value"
optimistic: true
min_value: 350
max_value: 4500
step: 1
id: co2_cal
icon: "mdi:molecule-co2"
entity_category: "config"

View File

@@ -8,5 +8,5 @@ sensor:
humidity:
name: Humidity
address: 0x44
update_interval: 60s
update_interval: ${update_interval}