-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_gdoor.yaml
57 lines (50 loc) · 1.84 KB
/
example_gdoor.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
esp32:
board: esp32dev
external_components:
- source:
type: git
url: https://github.com/gdoor-org/esphome-components
components: [gdoor]
refresh: 0s
gdoor:
id: my_gdoor # optional set your own id here
tx_pin: 25 # optional (default 25)
tx_en_pin: 27 # optional (default 27)
rx_pin: 22 # optional (default 22)
rx_thresh_pin: 26 # optional (default 26)
rx_sens: 'med' # optional if rx_pin is 22: 'low', 'med' or 'high' (default 'high')
text_sensor: # atm returns gdoor formatted string: {"action": "BUTTON_RING", "parameters": "0360", "source": "A286FD", "destination": "000000", "type": "OUTDOOR", "busdata": "011011A286FD0360A04A"}
- platform: gdoor
id: gdoor_bus_message
icon: "mdi:console-network-outline"
name: "GDoor Bus Message"
gdoor_id: my_gdoor
binary_sensor:
- platform: gdoor
id: gdoor_outdoor_button_ring
icon: "mdi:bell-ring-outline"
name: "GDoor Button Ring"
gdoor_id: my_gdoor
busdata:
- "011011A286FD0360A04A" # example filter a short BUTTON_RING on OUTDOOR station
- "011011A286FD03A0A08A" # example filter a long BUTTON_RING on OUTDOOR station
- platform: gdoor
id: gdoor_indoor_button_light
icon: "mdi:lightbulb-on"
name: "GDoor Button Light"
gdoor_id: my_gdoor
busdata: "011041A286FD0000A18FA7" # example filter a BUTTON_LIGHT from INDOOR station
output:
- platform: gdoor
id: gdoor_outdoor_opener
name: "GDoor Outdoor Opener"
gdoor_id: my_gdoor
# Attention: CRC check will be performed on hex-string during config validation. Only valid payloads are allowed.
payload: "0200311234560000A165432139" # example of DOOR_OPEN to open a OUTDOOR .
button:
- platform: output
name: Outdoor Opener
id: my_opener_utton
icon: "mdi:door-open"
output: gdoor_outdoor_opener
duration: 50ms