-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample.yaml
72 lines (60 loc) · 1.27 KB
/
example.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
esphome:
name: phc-test
esp32:
board: esp32dev
framework:
type: arduino
# Load components via Github
external_components:
- source: github://TillFleisch/ESPHome-PHC-Controller@main
# Define UART bus connected to the RS-485 adapter with bus parameters
uart:
id: bus
tx_pin: TX
rx_pin: RX
baud_rate: 19200
stop_bits: 2
# create PHC-controller
PHCController:
id: controller1
uart_id: bus
switch:
# AMD output as a switch entity (i.e. Outlet)
- platform: AMD
name: Living Room Outlet
phc_controller_id: controller1
dip: 6
channel: 4
light:
# AMD output as a light
- platform: AMD
name: Living Room
phc_controller_id: controller1
dip: 6
channel: 5
# EMD LED-output as a light entity
- platform: EMD
name: Office Feedback Light
phc_controller_id: controller1
dip: 2
channel: 3
binary_sensor:
# EMD input as a binary sensor
- platform: EMD
name: Office Light Switch
phc_controller_id: controller1
dip: 6
channel: 5
cover:
# Cover entity
- platform: JRM
name: Kitchen
phc_controller_id: controller1
dip: 0
channel: 0
max_open_time: 35s
max_close_time: 30s
# Assume cover position (optional)
assume_position:
open_time: 30s
close_time: 25s