esphome updates
This commit is contained in:
67
active/device_esphome/atom_s3_lite.yaml
Normal file
67
active/device_esphome/atom_s3_lite.yaml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
esphome:
|
||||||
|
name: atom-s3-lite
|
||||||
|
friendly_name: Atom S3 Lite
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: m5stack-atoms3
|
||||||
|
framework:
|
||||||
|
type: arduino
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
level: debug
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: !secret great_room_atom_echo_key
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: !secret wifi_ssid
|
||||||
|
password: !secret wifi_password
|
||||||
|
domain: .reeselink.com
|
||||||
|
fast_connect: true
|
||||||
|
enable_btm: true
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Great-Room-Atom-Echo"
|
||||||
|
password: !secret hotspot_password
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: !secret ota_password
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
external_components:
|
||||||
|
- source:
|
||||||
|
type: git
|
||||||
|
url: https://github.com/chill-Division/M5Stack-ESPHome/
|
||||||
|
ref: main
|
||||||
|
components: sonic_i2c
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: 2
|
||||||
|
scl: 1
|
||||||
|
scan: true
|
||||||
|
id: bus_1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sonic_i2c
|
||||||
|
i2c_id: bus_1
|
||||||
|
address: 0x57
|
||||||
|
name: "Ultrasonic Sensor 1"
|
||||||
|
id: ultrasonic1
|
||||||
|
unit_of_measurement: mm
|
||||||
|
update_interval: 1s
|
||||||
|
filters:
|
||||||
|
- filter_out: nan
|
||||||
|
- lambda: |-
|
||||||
|
if (x == 0) {
|
||||||
|
return {}; // This filters out the reading
|
||||||
|
} else {
|
||||||
|
return x; // This passes the reading through
|
||||||
|
}
|
||||||
|
- sliding_window_moving_average:
|
||||||
|
window_size: 1
|
||||||
|
send_every: 1
|
||||||
@@ -58,7 +58,7 @@ sudo usermod -a -G dialout ducoterra
|
|||||||
Then "run" your config file
|
Then "run" your config file
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd active/device_esp32
|
cd active/device_esphome
|
||||||
uv venv
|
uv venv
|
||||||
uv pip install esphome
|
uv pip install esphome
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
|
|||||||
@@ -40,6 +40,39 @@ ota:
|
|||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
|
||||||
|
external_components:
|
||||||
|
- source:
|
||||||
|
type: git
|
||||||
|
url: https://github.com/chill-Division/M5Stack-ESPHome/
|
||||||
|
ref: main
|
||||||
|
components: sonic_i2c
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: 26
|
||||||
|
scl: 32
|
||||||
|
scan: true
|
||||||
|
id: bus_1
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: sonic_i2c
|
||||||
|
i2c_id: bus_1
|
||||||
|
address: 0x57
|
||||||
|
name: "Ultrasonic Sensor 1"
|
||||||
|
id: ultrasonic1
|
||||||
|
unit_of_measurement: mm
|
||||||
|
update_interval: 5s
|
||||||
|
filters:
|
||||||
|
- filter_out: nan
|
||||||
|
- lambda: |-
|
||||||
|
if (x == 0) {
|
||||||
|
return {}; // This filters out the reading
|
||||||
|
} else {
|
||||||
|
return x; // This passes the reading through
|
||||||
|
}
|
||||||
|
- sliding_window_moving_average:
|
||||||
|
window_size: 10
|
||||||
|
send_every: 20
|
||||||
|
|
||||||
button:
|
button:
|
||||||
- platform: factory_reset
|
- platform: factory_reset
|
||||||
id: factory_reset_btn
|
id: factory_reset_btn
|
||||||
|
|||||||
Reference in New Issue
Block a user