Compare commits

...

3 commits

Author SHA1 Message Date
ef11decb6b
lyws: Add bma280 hehe 2025-01-08 20:06:37 +02:00
d5f7733166
bma: Add substitutions 2025-01-08 20:06:11 +02:00
d9e2115e42
include: Add restart button 2025-01-08 20:05:40 +02:00
3 changed files with 32 additions and 12 deletions

View file

@ -4,6 +4,10 @@ esphome:
platform: ESP8266
board: d1_mini
substitutions:
name: bma
friendly_name: BMA280
device_name: bma280
packages:
common: !include includes/common.yaml
@ -15,10 +19,6 @@ i2c:
scl: D4
scan: true
button:
- platform: restart
name: "Restart BME280"
sensor:
- platform: bme280_i2c
address: 0x76
@ -31,7 +31,3 @@ sensor:
name: "BME280 Humidity"
update_interval: 300s
i2c_id: bus_a
- platform: wifi_signal
name: "Wi-Fi Signal"
update_interval: 60s
icon: mdi:wifi

View file

@ -20,4 +20,8 @@ sensor:
- platform: uptime
name: "${friendly_name} Uptime"
- platform: wifi_signal
name: "${friendly_name} Wifi Signal"
name: "${friendly_name} Wifi Signal"
button:
- platform: restart
name: "Restart ${friendly_name}"

View file

@ -1,7 +1,7 @@
esphome:
name: esp32_kitchen
name: kitchenlyws
platform: esp32
board: nodemcu-32s
board: wemos_d1_mini32
substitutions:
name: lyws
@ -14,7 +14,14 @@ packages:
esp32_ble_tracker:
i2c:
- id: bus_a
sda: D3
scl: D4
scan: true
sensor:
# LYWS Xiaomi
- platform: atc_mithermometer
mac_address: A4:C1:38:81:EE:B0
temperature:
@ -38,4 +45,17 @@ sensor:
battery_voltage:
name: "Outdoors Battery-Voltage"
signal_strength:
name: "Outdoors Signal"
name: "Outdoors Signal"
# BME280
- platform: bme280_i2c
address: 0x76
temperature:
name: "BME280 Temperature"
oversampling: 16x
pressure:
name: "BME280 Pressure"
humidity:
name: "BME280 Humidity"
update_interval: 300s
i2c_id: bus_a