mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
renames, fixes , and other fun schtuff
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
esphome:
|
||||
name: bed-presence-2d14a4
|
||||
friendly_name: Bed Presence 2d14a4
|
||||
comment: White Bed Sensor
|
||||
min_version: 2024.6.0
|
||||
name_add_mac_suffix: false
|
||||
project:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
esphome:
|
||||
name: bed-presence-c175a4
|
||||
friendly_name: Bed Presence c175a4
|
||||
comment: Master Bed Sensor
|
||||
min_version: 2024.6.0
|
||||
name_add_mac_suffix: false
|
||||
project:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
substitutions:
|
||||
devicename: black-bed
|
||||
friendly_name: Black Bed
|
||||
comment: Clever Bed Sensor
|
||||
comment: Black Bed Sensor
|
||||
entity_name: black_bed
|
||||
platform: ESP8266
|
||||
board: nodemcuv2
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Example configuration entry
|
||||
sensor:
|
||||
- platform: bme680
|
||||
temperature:
|
||||
name: "BME680 Temperature"
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: "BME680 Pressure"
|
||||
humidity:
|
||||
id: "humidity"
|
||||
name: "BME680 Humidity"
|
||||
gas_resistance:
|
||||
id: "gas_resistance"
|
||||
name: "BME680 Gas Resistance"
|
||||
address: 0x77
|
||||
update_interval: 60s
|
||||
- platform: template
|
||||
name: "BME680 Indoor Air Quality"
|
||||
id: iaq
|
||||
icon: "mdi:gauge"
|
||||
# calculation: comp_gas = log(R_gas[ohm]) + 0.04 log(Ohm)/%rh * hum[%rh]
|
||||
lambda: |-
|
||||
return log(id(gas_resistance).state) + 0.04 * id(humidity).state;
|
||||
state_class: "measurement"
|
||||
text_sensor:
|
||||
- platform: template
|
||||
name: "BME680 IAQ Classification"
|
||||
icon: "mdi:checkbox-marked-circle-outline"
|
||||
lambda: |-
|
||||
if (int(id(iaq).state) <= 50) {
|
||||
return {"Excellent"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 100) {
|
||||
return {"Good"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 150) {
|
||||
return {"Lightly polluted"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 200) {
|
||||
return {"Moderately polluted"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 250) {
|
||||
return {"Heavily polluted"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 350) {
|
||||
return {"Severely polluted"};
|
||||
}
|
||||
else if (int(id(iaq).state) <= 500) {
|
||||
return {"Extremely polluted"};
|
||||
}
|
||||
else {
|
||||
return {"unknown"};
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
bme680_bsec:
|
||||
# id
|
||||
# -----------
|
||||
# Identifier for this component, useful when working with multiple devices.
|
||||
# Must be unique, and can be used in the sensor sections to refer to the correct device.
|
||||
# Default: auto-computed
|
||||
id: bme680_internal
|
||||
|
||||
# i2c address
|
||||
# -----------
|
||||
# Common values are:
|
||||
# - 0x76
|
||||
# - 0x77
|
||||
# Default: 0x76
|
||||
address: 0x76
|
||||
|
||||
# Temperature offset
|
||||
# ------------------
|
||||
# Useful if device is in enclosure and reads too high
|
||||
# For example, if it reads 5C too high, set this to 5
|
||||
# This also corrects the relative humidity readings
|
||||
# Default: 0
|
||||
temperature_offset: 0
|
||||
|
||||
# IAQ calculation mode
|
||||
# --------------------
|
||||
# Available options:
|
||||
# - static (for fixed position devices)
|
||||
# - mobile (for on a person or other moveable devices)
|
||||
# Default: static
|
||||
iaq_mode: static
|
||||
|
||||
# Supply voltage
|
||||
# --------------------
|
||||
# Available options:
|
||||
# - 3.3V
|
||||
# - 1.8V
|
||||
# Default: 3.3V
|
||||
supply_voltage: 3.3V
|
||||
|
||||
# Sample rate
|
||||
# -----------
|
||||
# Available options:
|
||||
# - lp (low power - samples every 3 seconds)
|
||||
# - ulp (ultra-low power - samples every 5 minutes)
|
||||
# Default: lp
|
||||
sample_rate: ulp
|
||||
|
||||
# Interval at which to save BSEC state
|
||||
# ------------------------------------
|
||||
# Default: 6h
|
||||
state_save_interval: 6h
|
||||
|
||||
sensor:
|
||||
- platform: bme680_bsec
|
||||
# ID of the bme680_bsec component to use for the next sensors.
|
||||
# Useful when working with multiple devices
|
||||
bme680_bsec_id: bme680_internal
|
||||
|
||||
temperature:
|
||||
# Temperature in °C
|
||||
name: "BME680 Temperature"
|
||||
sample_rate: lp
|
||||
filters:
|
||||
- median
|
||||
pressure:
|
||||
# Pressure in hPa
|
||||
name: "BME680 Pressure"
|
||||
sample_rate: lp
|
||||
filters:
|
||||
- median
|
||||
humidity:
|
||||
# Relative humidity %
|
||||
name: "BME680 Humidity"
|
||||
sample_rate: lp
|
||||
filters:
|
||||
- median
|
||||
gas_resistance:
|
||||
# Gas resistance in Ω
|
||||
name: "BME680 Gas Resistance"
|
||||
filters:
|
||||
- median
|
||||
iaq:
|
||||
# Indoor air quality value
|
||||
name: "BME680 IAQ"
|
||||
filters:
|
||||
- median
|
||||
iaq_accuracy:
|
||||
# IAQ accuracy as a numeric value of 0, 1, 2, 3
|
||||
name: "BME680 Numeric IAQ Accuracy"
|
||||
co2_equivalent:
|
||||
# CO2 equivalent estimate in ppm
|
||||
name: "BME680 CO2 Equivalent"
|
||||
filters:
|
||||
- median
|
||||
breath_voc_equivalent:
|
||||
# Volatile organic compounds equivalent estimate in ppm
|
||||
name: "BME680 Breath VOC Equivalent"
|
||||
filters:
|
||||
- median
|
||||
|
||||
text_sensor:
|
||||
- platform: bme680_bsec
|
||||
iaq_accuracy:
|
||||
# IAQ accuracy as a text value of Stabilizing, Uncertain, Calibrating, Calibrated
|
||||
name: "BME680 IAQ Accuracy"
|
||||
@@ -0,0 +1,61 @@
|
||||
# I2C bus for the BME680 devices
|
||||
i2c:
|
||||
- id: "i2cbus_bme"
|
||||
sda: GPIO18
|
||||
scl: GPIO19
|
||||
scan: true
|
||||
|
||||
# BME680 devices using BSEC library
|
||||
bme680_bsec:
|
||||
- id: bme680_internal
|
||||
i2c_id: "i2cbus_bme"
|
||||
address: 0x76
|
||||
- id: bme680_external
|
||||
i2c_id: "i2cbus_bme"
|
||||
address: 0x77
|
||||
|
||||
sensor:
|
||||
# Sensors for the internal BME680 device
|
||||
- platform: bme680_bsec
|
||||
bme680_bsec_id: bme680_internal
|
||||
temperature:
|
||||
name: "IN_Temp"
|
||||
pressure:
|
||||
name: "IN_Press"
|
||||
humidity:
|
||||
name: "IN_RH"
|
||||
iaq:
|
||||
name: "IN_IAQ"
|
||||
co2_equivalent:
|
||||
name: "IN_CO2eq"
|
||||
breath_voc_equivalent:
|
||||
name: "IN_VOCeq"
|
||||
|
||||
# Sensors for the external BME680 device
|
||||
- platform: bme680_bsec
|
||||
bme680_bsec_id: bme680_external
|
||||
temperature:
|
||||
name: "OUT_Temperatura"
|
||||
pressure:
|
||||
name: "OUT_Pressione"
|
||||
humidity:
|
||||
name: "OUT_RH"
|
||||
iaq:
|
||||
name: "OUT_IAQ"
|
||||
co2_equivalent:
|
||||
name: "OUT_CO2eq"
|
||||
breath_voc_equivalent:
|
||||
name: "OUT_VOCeq"
|
||||
|
||||
text_sensor:
|
||||
# Text sensor for the internal BME680 device
|
||||
- platform: bme680_bsec
|
||||
bme680_bsec_id: bme680_internal
|
||||
iaq_accuracy:
|
||||
name: "IN_IAQaccuracy"
|
||||
|
||||
# Text sensor for the external BME680 device
|
||||
- platform: bme680_bsec
|
||||
bme680_bsec_id: bme680_external
|
||||
iaq_accuracy:
|
||||
name: "OUT_IAQaccuracy"
|
||||
@@ -8,13 +8,17 @@ substitutions:
|
||||
board: wemos_d1_mini32
|
||||
static_ip: !secret hvac-multisensor-ip
|
||||
|
||||
# For i2c devices
|
||||
# In this case it's just the display
|
||||
sda_pin: GPIO21
|
||||
scl_pin: GPIO22
|
||||
|
||||
door_pin: GPIO19
|
||||
|
||||
one_wire_pin: GPIO26
|
||||
#one_wire_pin: GPIO14
|
||||
|
||||
# For the ultrasonic sensor
|
||||
trigger_pin: GPIO16
|
||||
#trigger_pin: GPIO04
|
||||
echo_pin: GPIO13
|
||||
|
||||
#mdc_pin: GPIO23
|
||||
@@ -133,7 +137,7 @@ sensor:
|
||||
trigger_pin: ${trigger_pin}
|
||||
echo_pin: ${echo_pin}
|
||||
id: ultrasonic_source
|
||||
#update_interval: 5s
|
||||
update_interval: 1s
|
||||
internal: True
|
||||
filters:
|
||||
- sliding_window_moving_average:
|
||||
|
||||
Reference in New Issue
Block a user