-
Notifications
You must be signed in to change notification settings - Fork 1
/
bedloadcell1.yaml
46 lines (40 loc) 路 1 KB
/
bedloadcell1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
esphome:
name: bedloadcell1
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ap
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bedloadcell1 Fallback Hotspot"
password: "nfV2kQYGCrzj"
# Enable Home Assistant API
api:
# Enable logging
logger:
level: DEBUG
esp8266_store_log_strings_in_flash: False
ota:
sensor:
- platform: hx711
name: "Bed Load Cell 1"
dout_pin: GPIO0
clk_pin: GPIO14
gain: 128
update_interval: 2s
filters:
- calibrate_linear:
# - -305926 -> 0 # 0.6kg
# - -307196 -> 0 # was 10kg
# - -315550 -> 0 # was 7.8 kg
# - -345546 -> 0 # was -99 kg
# - -315550 -> 0 # was 4.15 kg
# - -331430 -> 0 # was 4.37 kg
- -347358 -> 0 # was x.xx kg
- -645000 -> 86
- sliding_window_moving_average:
window_size: 15
send_every: 1
unit_of_measurement: kg
accuracy_decimals: 2