forked from plett/esphome-us100
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathus100.yaml
45 lines (39 loc) · 779 Bytes
/
us100.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
esphome:
name: mynode
platform: ESP8266
board: d1_mini
includes:
- us100.h
wifi:
networks:
ssid: !secret wifissid
password: !secret wifipassword
hidden: true
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
uart:
id: uart_bus
tx_pin: D1
rx_pin: D2
baud_rate: 9600
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: custom
lambda: |-
auto us100 = new US100(id(uart_bus));
App.register_component(us100);
return {
us100->distsensor,
us100->tempsensor,
};
sensors:
- name: "US100 Distance"
unit_of_measurement: mm
icon: "mdi:tape-measure"
- name: "US100 Temperature"
unit_of_measurement: °C