-
Notifications
You must be signed in to change notification settings - Fork 0
/
autopilot.yaml
98 lines (87 loc) · 2.17 KB
/
autopilot.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
esphome:
name: autopilot
platform: ESP8266
board: nodemcuv2
includes:
- udpsensor.h
libraries: ESPAsyncUDP
#logger:
wifi:
ssid: !secret ssid
password: !secret ssidpw
fast_connect: true #hidden ssid
http_request:
useragent: esphome/device
timeout: 10s
remote_receiver:
pin: D3
tolerance: 60%
filter: 4us
idle: 4ms
binary_sensor:
- platform: remote_receiver
name: RF Button Keyfob1
rc_switch_raw:
protocol: 1
code: "111111110101111101110001"
filters:
- delayed_off: 100ms
on_press:
- http_request.send:
method: POST
url: http://192.168.42.1:3000/plugins/anchoralarm/raiseAnchor
- http_request.send:
method: POST
url: http://192.168.42.1:3000/plugins/alarmsilencer/clearNotification
headers:
Content-Type: application/json
json:
path: notifications.navigation.anchor
- platform: remote_receiver
name: RF Button Keyfob2
rc_switch_raw:
protocol: 1
code: "111010111000100001101000"
filters:
- delayed_off: 100ms
on_press:
- http_request.send:
method: POST
url: http://192.168.42.1:3000/plugins/anchoralarm/dropAnchor
- platform: remote_receiver
name: RF Button Keyfob3
rc_switch_raw:
protocol: 1
code: "111111110101111101110010"
filters:
- delayed_off: 100ms
on_press:
- http_request.send:
method: POST
url: http://192.168.42.1:3000/plugins/alarmsilencer/clearNotification
headers:
Content-Type: application/json
json:
path: notifications.navigation.anchor
- platform: remote_receiver
name: RF Button Keyfob4
rc_switch_raw:
protocol: 1
code: "111111110101111101111000"
filters:
- delayed_off: 100ms
uart:
tx_pin: GPIO01
baud_rate: 9600
text_sensor:
- platform: custom
lambda: |-
auto udp_sensor = new UdpSensor();
App.register_component(udp_sensor);
return {udp_sensor};
text_sensors:
name: "udp"
on_value:
then:
- uart.write: !lambda
return std::vector<unsigned char>( x.begin(), x.end() );