config files on 28-11-2023 12:46:43
This commit is contained in:
Submodule esphome/sensors/.esphome/external_components/1e6970f9 added at e995883d66
Submodule esphome/sensors/.esphome/external_components/9cb05fac added at 94b3200604
@@ -3,8 +3,8 @@ sensor:
|
||||
# Batterie volt
|
||||
- platform: adc
|
||||
pin: ${pin_vbatt}
|
||||
name: '${device_name} Battery Voltage'
|
||||
id: '${device_name}_voltage'
|
||||
name: 'Battery Voltage'
|
||||
id: 'Battery_voltage'
|
||||
attenuation: 11db
|
||||
unit_of_measurement: 'V'
|
||||
icon: 'mdi:battery-high'
|
||||
@@ -22,8 +22,8 @@ sensor:
|
||||
# Battery %
|
||||
- platform: adc
|
||||
pin: ${pin_vbatt}
|
||||
name: '${device_name} Battery'
|
||||
id: '${device_name}_percent'
|
||||
name: 'Battery level'
|
||||
id: 'Battery_level'
|
||||
attenuation: 11db
|
||||
accuracy_decimals: 2
|
||||
unit_of_measurement: '%'
|
||||
|
||||
36
esphome/sensors/battery_hi_grow.yaml
Executable file
36
esphome/sensors/battery_hi_grow.yaml
Executable file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
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: 3
|
||||
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
|
||||
pin: ${pin_vbatt}
|
||||
name: 'Battery level'
|
||||
id: 'Battery_level'
|
||||
attenuation: 11db
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: '%'
|
||||
filters:
|
||||
- multiply: 2
|
||||
- calibrate_linear:
|
||||
# Map 0.0 (from sensor) to 0.0 (true value)
|
||||
- 3.18 -> 0.0
|
||||
- 4.20 -> 100.0
|
||||
update_interval: ${update_interval}
|
||||
@@ -3,16 +3,16 @@ sensor:
|
||||
- platform: bme280
|
||||
i2c_id: bus_a
|
||||
temperature:
|
||||
name: '${device_name} BME280 Temperature'
|
||||
name: 'Temperature (BME280)'
|
||||
oversampling: 1x
|
||||
# filters: # uncomment after calibration
|
||||
# - offset: -2.3 # offset in °C for the measured temperature
|
||||
pressure:
|
||||
name: '${device_name} BME280 Pressure'
|
||||
name: 'Pressure (BME280)'
|
||||
# filters: # uncomment after calibration
|
||||
# - offset: -2.3 # offset in °C for the measured temperature
|
||||
humidity:
|
||||
name: '${device_name} BME280 Humidity'
|
||||
name: 'Humidity (BME280)'
|
||||
# filters: # uncomment after calibration
|
||||
# - offset: -2.3 # offset in °C for the measured temperature
|
||||
address: 0x77
|
||||
|
||||
8
esphome/sensors/distance_hc-004.yaml
Executable file
8
esphome/sensors/distance_hc-004.yaml
Executable file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
sensor:
|
||||
- platform: ultrasonic
|
||||
trigger_pin: ${pin_trig}
|
||||
echo_pin: ${pin_echo}
|
||||
name: "Ultrasonic Sensor"
|
||||
update_interval: 10s
|
||||
pulse_time: 20us
|
||||
@@ -5,46 +5,166 @@ uart:
|
||||
# Example configuration entry
|
||||
ld2410:
|
||||
uart_id: uart_ld
|
||||
timeout: 1s
|
||||
max_move_distance : 6m
|
||||
max_still_distance: 3m
|
||||
# g0_move_threshold: 10
|
||||
# g0_still_threshold: 20
|
||||
# g1_move_threshold: 10
|
||||
# g1_still_threshold: 20
|
||||
# g2_move_threshold: 20
|
||||
# g2_still_threshold: 21
|
||||
# g3_move_threshold: 30
|
||||
# g3_still_threshold: 31
|
||||
# g4_move_threshold: 40
|
||||
# g4_still_threshold: 41
|
||||
# g5_move_threshold: 50
|
||||
# g5_still_threshold: 51
|
||||
# g6_move_threshold: 60
|
||||
# g6_still_threshold: 61
|
||||
# g7_move_threshold: 70
|
||||
# g7_still_threshold: 71
|
||||
# g8_move_threshold: 80
|
||||
# g8_still_threshold: 81
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: "factory reset"
|
||||
restart:
|
||||
name: "restart"
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: "firmware version"
|
||||
mac_address:
|
||||
name: "mac address"
|
||||
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: "distance resolution"
|
||||
baud_rate:
|
||||
name: "baud rate"
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out pin level
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
timeout:
|
||||
name: timeout
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
max_move_distance_gate:
|
||||
name: max move distance gate
|
||||
max_still_distance_gate:
|
||||
name: max still distance gate
|
||||
g0:
|
||||
move_threshold:
|
||||
name: g0 move threshold
|
||||
still_threshold:
|
||||
name: g0 still threshold
|
||||
g1:
|
||||
move_threshold:
|
||||
name: g1 move threshold
|
||||
still_threshold:
|
||||
name: g1 still threshold
|
||||
g2:
|
||||
move_threshold:
|
||||
name: g2 move threshold
|
||||
still_threshold:
|
||||
name: g2 still threshold
|
||||
g3:
|
||||
move_threshold:
|
||||
name: g3 move threshold
|
||||
still_threshold:
|
||||
name: g3 still threshold
|
||||
g4:
|
||||
move_threshold:
|
||||
name: g4 move threshold
|
||||
still_threshold:
|
||||
name: g4 still threshold
|
||||
g5:
|
||||
move_threshold:
|
||||
name: g5 move threshold
|
||||
still_threshold:
|
||||
name: g5 still threshold
|
||||
g6:
|
||||
move_threshold:
|
||||
name: g6 move threshold
|
||||
still_threshold:
|
||||
name: g6 still threshold
|
||||
g7:
|
||||
move_threshold:
|
||||
name: g7 move threshold
|
||||
still_threshold:
|
||||
name: g7 still threshold
|
||||
g8:
|
||||
move_threshold:
|
||||
name: g8 move threshold
|
||||
still_threshold:
|
||||
name: g8 still threshold
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: "engineering mode"
|
||||
bluetooth:
|
||||
name: "control bluetooth"
|
||||
|
||||
sensor:
|
||||
- platform: ld2410
|
||||
light:
|
||||
name: light
|
||||
moving_distance:
|
||||
name : ${device_name} Moving Distance
|
||||
name : Moving Distance
|
||||
still_distance:
|
||||
name: ${device_name} Still Distance
|
||||
name: Still Distance
|
||||
moving_energy:
|
||||
name: ${device_name} Move Energy
|
||||
name: Move Energy
|
||||
still_energy:
|
||||
name: ${device_name} Still Energy
|
||||
name: Still Energy
|
||||
detection_distance:
|
||||
name: ${device_name} Detection Distance
|
||||
name: Detection Distance
|
||||
g0:
|
||||
move_energy:
|
||||
name: g0 move energy
|
||||
still_energy:
|
||||
name: g0 still energy
|
||||
g1:
|
||||
move_energy:
|
||||
name: g1 move energy
|
||||
still_energy:
|
||||
name: g1 still energy
|
||||
g2:
|
||||
move_energy:
|
||||
name: g2 move energy
|
||||
still_energy:
|
||||
name: g2 still energy
|
||||
g3:
|
||||
move_energy:
|
||||
name: g3 move energy
|
||||
still_energy:
|
||||
name: g3 still energy
|
||||
g4:
|
||||
move_energy:
|
||||
name: g4 move energy
|
||||
still_energy:
|
||||
name: g4 still energy
|
||||
g5:
|
||||
move_energy:
|
||||
name: g5 move energy
|
||||
still_energy:
|
||||
name: g5 still energy
|
||||
g6:
|
||||
move_energy:
|
||||
name: g6 move energy
|
||||
still_energy:
|
||||
name: g6 still energy
|
||||
g7:
|
||||
move_energy:
|
||||
name: g7 move energy
|
||||
still_energy:
|
||||
name: g7 still energy
|
||||
g8:
|
||||
move_energy:
|
||||
name: g8 move energy
|
||||
still_energy:
|
||||
name: g8 still energy
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: ${device_name} Presence
|
||||
name: Presence
|
||||
has_moving_target:
|
||||
name: ${device_name} Moving Target
|
||||
name: Moving Target
|
||||
has_still_target:
|
||||
name: ${device_name} Still Target
|
||||
name: Still Target
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
@@ -3,9 +3,10 @@ uart:
|
||||
- !include ../interfaces/uart_ld2420.yaml
|
||||
|
||||
external_components:
|
||||
- source: github://pr#4847
|
||||
- source: github://descipher/esphome@component.ld2420
|
||||
#github://pr#4847
|
||||
components: [ ld2420 ]
|
||||
refresh: 0s
|
||||
refresh: 1days
|
||||
|
||||
# Example configuration entry
|
||||
ld2420:
|
||||
@@ -49,10 +50,10 @@ ld2420:
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name : ${device_name} Moving Distance
|
||||
name : Moving Distance
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: ${device_name} Presence
|
||||
name: Presence
|
||||
17
esphome/sensors/light_bh1750.yaml
Executable file
17
esphome/sensors/light_bh1750.yaml
Executable file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
sensor:
|
||||
# Lux sensor
|
||||
- platform: bh1750
|
||||
i2c_id: bus_a
|
||||
name: '${device_name} BH1750 Illuminance'
|
||||
address: 0x23
|
||||
unit_of_measurement: 'lx'
|
||||
icon: 'mdi:white-balance-sunny'
|
||||
device_class: 'illuminance'
|
||||
state_class: 'measurement'
|
||||
setup_priority: -300
|
||||
update_interval: ${update_interval}
|
||||
# convert to illuminance
|
||||
# filters:
|
||||
# - lambda: |-
|
||||
# return x * 200.0;
|
||||
@@ -35,19 +35,4 @@ sensor:
|
||||
# Map 0.0 (from sensor) to 0.0 (true value)
|
||||
- ${conductivity_min} -> 0.0 # comment when calibrating
|
||||
- ${conductivity_max} -> 100.0 # comment when calibrating
|
||||
|
||||
# Lux sensor
|
||||
- platform: bh1750
|
||||
i2c_id: bus_a
|
||||
name: '${device_name} BH1750 Illuminance'
|
||||
address: 0x23
|
||||
unit_of_measurement: 'lx'
|
||||
icon: 'mdi:white-balance-sunny'
|
||||
device_class: 'illuminance'
|
||||
state_class: 'measurement'
|
||||
setup_priority: -300
|
||||
update_interval: ${update_interval}
|
||||
# convert to illuminance
|
||||
filters:
|
||||
- lambda: |-
|
||||
return x * 200.0;
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@ uart:
|
||||
sensor:
|
||||
- platform: pm1006
|
||||
pm_2_5:
|
||||
name: "${location} Particulate Matter 2.5µm Concentration"
|
||||
name: "Particulate Matter 2.5µm Concentration"
|
||||
uart_id: uart_pm
|
||||
@@ -6,9 +6,9 @@ sensor:
|
||||
uart_id: uart_pm
|
||||
type: PMSX003
|
||||
pm_1_0:
|
||||
name: ${device_name} <1.0µm
|
||||
name: Particulate Matter 1.0µm Concentration
|
||||
pm_2_5:
|
||||
name: ${device_name} <2.5µm
|
||||
name: Particulate Matter 2.5µm Concentration
|
||||
pm_10_0:
|
||||
name: ${device_name} <10.0µm
|
||||
name: Particulate Matter 10µm Concentration
|
||||
update_interval: 30000ms
|
||||
@@ -1,13 +1,13 @@
|
||||
sensor:
|
||||
- platform: scd30
|
||||
co2:
|
||||
name: "${device_name} CO2"
|
||||
name: "CO2"
|
||||
accuracy_decimals: 1
|
||||
temperature:
|
||||
name: "${device_name} Temperature"
|
||||
name: "Temperature"
|
||||
accuracy_decimals: 2
|
||||
humidity:
|
||||
name: "${device_name} Humidity"
|
||||
name: "Humidity"
|
||||
accuracy_decimals: 1
|
||||
temperature_offset: 1.5 °C
|
||||
address: 0x61
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
sensor:
|
||||
- platform: sgp30
|
||||
eco2:
|
||||
name: "${device_name} eCO2"
|
||||
name: "eCO2"
|
||||
accuracy_decimals: 1
|
||||
tvoc:
|
||||
name: "${device_name} TVOC"
|
||||
name: "TVOC"
|
||||
accuracy_decimals: 1
|
||||
store_baseline: yes
|
||||
address: 0x58
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
sensor:
|
||||
- platform: sht3xd
|
||||
temperature:
|
||||
name: Temperatuur ${device_name}
|
||||
name: Temperature
|
||||
id: sht_temp
|
||||
filters:
|
||||
- offset: -13.0
|
||||
humidity:
|
||||
name: luchtvochtigheid ${device_name}
|
||||
name: Humidity
|
||||
address: 0x44
|
||||
update_interval: 60s
|
||||
update_interval: 60s
|
||||
|
||||
@@ -4,6 +4,7 @@ uart:
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: homeassistant_time
|
||||
timezone: CET-1CEST,M3.5.0,M10.5.0/3
|
||||
|
||||
tuya:
|
||||
status_pin: ${pin_tuya_status}
|
||||
@@ -12,7 +13,7 @@ tuya:
|
||||
|
||||
sensor:
|
||||
- platform: "tuya"
|
||||
name: "Temperature ${device_name}"
|
||||
name: "Temperature"
|
||||
id: tuya_temp
|
||||
sensor_datapoint: 101
|
||||
unit_of_measurement: "°C"
|
||||
@@ -20,10 +21,11 @@ sensor:
|
||||
state_class: "measurement"
|
||||
filters:
|
||||
- multiply: 0.1
|
||||
- offset: -4.5
|
||||
accuracy_decimals: 1
|
||||
|
||||
- platform: "tuya"
|
||||
name: "humidity ${device_name}"
|
||||
name: "humidity"
|
||||
sensor_datapoint: 102
|
||||
unit_of_measurement: "%rh"
|
||||
device_class: "humidity"
|
||||
|
||||
30
esphome/sensors/uptime.yaml
Executable file
30
esphome/sensors/uptime.yaml
Executable file
@@ -0,0 +1,30 @@
|
||||
text_sensor:
|
||||
- platform: template
|
||||
name: "Uptime"
|
||||
lambda: |-
|
||||
uint32_t dur = id(uptime_s).state;
|
||||
int dys = 0;
|
||||
int hrs = 0;
|
||||
int mnts = 0;
|
||||
if (dur > 86399) {
|
||||
dys = trunc(dur / 86400);
|
||||
dur = dur - (dys * 86400);
|
||||
}
|
||||
if (dur > 3599) {
|
||||
hrs = trunc(dur / 3600);
|
||||
dur = dur - (hrs * 3600);
|
||||
}
|
||||
if (dur > 59) {
|
||||
mnts = trunc(dur / 60);
|
||||
dur = dur - (mnts * 60);
|
||||
}
|
||||
char buffer[17];
|
||||
sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur);
|
||||
return {buffer};
|
||||
icon: mdi:clock-start
|
||||
update_interval: 60s
|
||||
|
||||
sensor:
|
||||
- platform: uptime
|
||||
id: uptime_s
|
||||
update_interval: 60s
|
||||
Reference in New Issue
Block a user