bma: Add substitutions
This commit is contained in:
parent
d9e2115e42
commit
d5f7733166
1 changed files with 4 additions and 8 deletions
12
bma.yaml
12
bma.yaml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue