-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp_scale.yaml
53 lines (45 loc) · 1.28 KB
/
esp_scale.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
47
48
49
50
51
esphome:
name: esp-scale-1
platform: ESP32
board: esp32thing
wifi:
networks:
- ssid: !secret apollossid
password: !secret apollopassword
- ssid: !secret astroiotssid
password: !secret astroiotpassword
- ssid: !secret hackerspacessid
password: !secret hackerspacepassword
# manual_ip:
# Set this to the IP of the ESP
# static_ip: 192.168.5.110
# gateway: 192.168.5.1
# subnet: 255.255.255.0
sensor:
- platform: hx711
name: "HX711 Value"
dout_pin: GPIO25
clk_pin: GPIO26
gain: 128
update_interval: 1s
# filters:
# - calibrate_linear:
# - -54400 -> 0
# - 1547573 -> 65
# unit_of_measurement: kg
# filters:
# - lambda: |-
# auto first_mass = 105700.0; // first known mass was 0kg
# auto first_value = 0; // value for the first known mass was
# auto second_mass = -75000; // second mass was
# auto second_value = 500; // second value was
# auto r = map(x/1000, first_value, second_value, first_mass, second_mass);
# if (r > 0) return r;
# return 0;
# unit_of_measurement: g
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret apipassword
ota: