-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js.example
73 lines (73 loc) · 2.85 KB
/
config.js.example
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
// See README.md for more info on this.
module.exports = {
dobiss: {
// NOTE: this whole object maps to the first argument of socketInstance.connect
// https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener
host: '10.0.0.8',
port: 10001,
interface: 'AMBIANCEPRO'
},
mqtt: {
// TODO: When tweaking authentication support for MQTT look into how we can add other parameters.
// I prefer something which just maps 1:1.
url: 'mqtt://username:password@host'
},
// Can also be 0 to fully disable automated polling. Expressed in milliseconds.
// It will then only poll once after every action.
// Downside is then that the state will not be correct if you use your wall switches to toggle the outputs.
// Upside is that your CAN Controller will not be spammed and that there will be less conflict with the native dobiss apps.
pollIntervalInMs: 1000,
modules: [
{
// "relay", "dimmer" or "0-10v" should work. So we can only turn outputs on or off or set a dimmer / 0-10v module to X %
// 0-10v & 'dimmer' will expose all outputs on it as lights automatically.
// In the future this might be configurable per output.
// Perhaps some things are fans and not lights etc.
type: 'relay',
// Either manually set the number of the relay or let dobiss2mqtt set the number automatically
// depending on the order of the module in the array.
// The first one is always 1 in dobiss2mqtt.
// Dobiss2MQTT will map the number to the weird internal number required by the dobiss protocol.
number: 1,
// The outputs (or lights in my case) are just represented as strings which are used to
// give them their names.
outputs: [
"berging",
"koele_berging",
"wc",
"inkomhal",
"inkomdeur",
"salon",
"eetplaats",
"keuken",
"terras",
"badkamer",
"master_bedroom",
"dressing"
]
},
{
type: 'relay',
number: 2,
outputs: [
"nachthal",
"office",
"fitness",
"traphal",
"zolder_1",
"zolder_2",
]
},
{
type: "dimmer",
number: 3,
// Set to 0 if you want no delay.
// This is the delay after which we poll the module again.
// If left unspecified it will automatically wait 2s to poll for dimmer modules.
pollDelayInMs: 500,
outputs: [
"tv_atmosphere"
]
}
]
}