forked from brandond/esphome-tuya_pir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pir.yaml
60 lines (51 loc) · 995 Bytes
/
pir.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
52
53
54
55
56
57
58
59
60
esphome:
name: pir
platform: ESP8266
board: esp01_1m
arduino_version: 2.5.1
board_flash_mode: dout
includes:
- sb1_uart.h
substitutions: !include .substitutions.yaml
wifi:
ssid: ${wifi_ssid}
password: ${wifi_password}
fast_connect: true
mqtt:
broker: ${mqtt_broker}
birth_message:
shutdown_message:
will_message:
uart:
- tx_pin: 1
rx_pin: 3
baud_rate: 9600
id: uart0
ota:
logger:
level: INFO
hardware_uart: UART1
sensor:
- platform: wifi_signal
name: "PIR WiFi Signal"
update_interval: never
expire_after:
filters: []
- platform: adc
name: "PIR Battery"
update_interval: never
expire_after:
pin: VCC
filters: []
binary_sensor:
- platform: template
id: motion
name: "PIR Motion"
filters: []
device_class: motion
lambda: "return {};"
custom_component:
- id: sb1_uart
lambda: |-
auto component = new SB1UARTComponent(id(uart0), id(motion));
return {component};