20240410
This commit is contained in:
Submodule esphome/sensors/.esphome/external_components/1e6970f9 deleted from e995883d66
Submodule esphome/sensors/.esphome/external_components/9cb05fac deleted from 94b3200604
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
sensor:
|
||||
- platform: bme280
|
||||
- platform: bme280_i2c
|
||||
i2c_id: bus_a
|
||||
temperature:
|
||||
name: 'Temperature (BME280)'
|
||||
|
||||
14
esphome/sensors/encoder.yaml
Normal file
14
esphome/sensors/encoder.yaml
Normal 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"
|
||||
23
esphome/sensors/light_tsl2591.yaml
Normal file
23
esphome/sensors/light_tsl2591.yaml
Normal 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"
|
||||
@@ -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}
|
||||
@@ -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"
|
||||
@@ -8,5 +8,5 @@ sensor:
|
||||
humidity:
|
||||
name: Humidity
|
||||
address: 0x44
|
||||
update_interval: 60s
|
||||
update_interval: ${update_interval}
|
||||
|
||||
Reference in New Issue
Block a user