-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
86 lines (70 loc) · 2.64 KB
/
config.yml
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
---
# The address to listen on.
listenAddress: :3333
# Location where switch states and outlet schedules for time switch should be
# persisted across restarts of rfoutlet. If omitted, state will be lost. Can be
# relative or absolute.
stateFile: state.json
# Enable state drift detection. This will watch for rf codes sent out by
# something other than rfoutlet (e.g. the physical remote control for the
# outlet) and will adjust the outlet states if necessary. The receiver has to
# be attached to receivePin for this to work.
detectStateDrift: false
# GPIO configuration.
gpio:
# Pin to detect rf codes on. This is used by the state drift detector which
# can be enabled with --detect-state-drift.
receivePin: 27
# Pin to transmit rf codes on.
transmitPin: 17
# The protocol that is used for outlets that do not explicitly define it
# using the protocol field.
defaultProtocol: 1
# The pulse length that is used for outlets that do not explicitly define it
# using the pulseLength field.
defaultPulseLength: 189
# Number of times a code should be transmitted in a row. The higher the
# value, the more likely it is that an outlet actually received the code.
transmissionCount: 10
# Groups of outlets. IDs are mandatory and need to unique.
groups:
- id: foo
# The group name that is displayed in the UI. If omitted, the ID will be
# used.
displayName: Foo
# The outlets that are part of the group. Outlet IDs are mandatory and need
# to unique.
outlets:
- id: bar
# The outlet name that is displayed in the UI. If omitted, the ID will
# be used.
displayName: Bar
# The code that needs to be sent to turn the outlet on. This can be
# found out using the `rfoutlet sniff` subcommand.
codeOn: 123
# The code that needs to be sent to turn the outlet off. This can be
# found out using the `rfoutlet sniff` subcommand.
codeOff: 456
# The protocol that the outlet supports. This can be found out using
# the `rfoutlet sniff` subcommand. If omitted, defaultProtocol will be
# used.
protocol: 1
# The pulse length that is used for separating sent out high-low
# sequences to the outlet. This can be found out using the `rfoutlet
# sniff` subcommand. If omitted, defaultPulseLength will be used.
pulseLength: 189
- id: baz
name: Baz
codeOn: 789
codeOff: 012
protocol: 2
pulseLength: 189
- id: bar
displayName: Bar
outlets:
- id: qux
name: Qux
codeOn: 345
codeOff: 678
protocol: 3
pulseLength: 305