-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules-sample.yaml
91 lines (78 loc) · 1.87 KB
/
modules-sample.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
# define the inputs and outputs of the IHC Controller and map them to HA entities
#
# note that IHC input module has inputs numbered from 1..8 and 11..18,
# but IHCServer maps them to ioNumber 1..16
#
# you must also define inputs and outputs in the following HA configuration files:
#
# inputs:
# - input_booleans.yaml
# - binary_sensors.yaml
# - customize.yaml
#
# outputs:
# - command_lines.yaml
# - customize.yaml
#######################################
# inputs
#######################################
# IHC input module 1, input 4
# motion sensor first floor
- type: inputState
moduleNumber: 1
ioNumber: 4
entity: input_boolean.pir_1
# IHC input module 1, input 7
# main thermostat
- type: inputState
moduleNumber: 1
ioNumber: 7
entity: input_boolean.thermostat_1
# IHC input module 2, input 12
# (note that input "12" maps to "ioNumber: 10"!)
- type: inputState
moduleNumber: 2
ioNumber: 10
entity: input_boolean.ihc_2_12
# ...
# IHC input module 3, input 8
# magnetic contact on front door
- type: inputState
moduleNumber: 3
ioNumber: 8
entity: input_boolean.front_door
# IHC input module 4, input 18
# light sensor
# (again, "ioNumber: 16" means input "18" on IHC module!)
- type: inputState
moduleNumber: 4
ioNumber: 16
entity: input_boolean.night
#######################################
# outputs
#######################################
# IHC output module 4, output 3
# garden lights
- type: outputState
moduleNumber: 4
ioNumber: 3
entity: switch.garden
# IHC output module 5, output 6
# power outlet (P6)
- type: outputState
moduleNumber: 5
ioNumber: 6
entity: switch.p6
# ...
# IHC output module 8, output 1
# bathroom fan
- type: outputState
moduleNumber: 8
ioNumber: 1
entity: switch.bathroom_fan
# IHC output module 15, output 2
# nuclear reactor mains
- type: outputState
moduleNumber: 15
ioNumber: 2
entity: switch.ihc_15_2