-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.cfg
66 lines (63 loc) · 1.25 KB
/
example.cfg
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
# autolight configuration
MQTT = {
host = "mybroker-hostname";
};
ambientlight = {
topic = "home/light";
hysteresis = 7;
};
motion_detectors = (
{ name = "yard";
topic = "home/yard/motion",
},
{ name = "door";
topic = "home/frontdoor/motion";
}
);
lamps = (
{ name = "stairs";
mqtt_topic = ("home/stairs/cmnd/POWER2");
ambientlight_threshold = 960;
schedule = (
{ weekdays = ("Mon", "Tue", "Wed", "Thu", "Fri");
on = (5, 30);
off = (22, 00);
},
{ weekdays = ("Sat", "Sun");
on = (6, 00);
off = (23, 00);
}
);
},
{
name = "outside";
mqtt_topic = ("home/outside/lamp/cmnd/POWER1");
ambientlight_threshold = 950;
schedule = (
{ weekdays = ("Thu", "Sat");
on = (7, 15);
off = (22, 00);
}
);
motion = {
detector = "yard";
on_time = 10;
};
},
{
name = "kitchen";
mqtt_topic = ("home/kitchen/cmnd/POWER");
ambientlight_threshold = 960;
schedule = (
{ weekdays = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun");
on = (6, 00);
off = (22, 00);
random = {
count = 2;
average_length = 40;
length_stddev = 20;
};
}
);
}
);