-
Notifications
You must be signed in to change notification settings - Fork 18
/
dtgbot.cfg
68 lines (64 loc) · 2.04 KB
/
dtgbot.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
-- Change these:
command_modules = {"utility", "dtgmenu", "list", "devices", "flick", "nflick", "on", "battery", "help", "temperature" }; --- list of modules to load. each module handle one or more commands
command_prefix = ""
dtgbot_pid = "/var/run/dtgbot.pid"
domoticz_pid = "/var/run/domoticz.pid"
WLName = 'TelegramBotWhiteListedIDs'
---------------------------------
--> define the status field to be reported on the button and whether this Type needs an action menu
-- Defaul: Status = Status and Actions = True
-- ["xxx"] = Type of Device
-- status ="fieldname" Fielddname to be used for the status value
-- status2 ="fieldname" option second Fielddname to be used for the secong status value
-- StatusSuffix ="xx" character(s) to add behind the status.
-- DisplayActions ="fieldname" Filedname to be used for the status value
dtgbot_type_status = {
["P1 Smart Meter"] = {
["Status"] = {{Data = ''}},
["DisplayActions"] = false,
},
["Air Quality"] = {
["Status"] = {{Data = ''}},
["DisplayActions"] = false,
},
["Lux"] = {
["Status"] = {{Data = ''}},
["DisplayActions"] = false,
},
["Rain"] = {
["Status"] = {{Rain = 'mm/h'}},
["DisplayActions"] = false,
},
["Wind"] = {
["Status"] = {{Speed = 'km/h'}},
["DisplayActions"] = false,
},
["Temp"] = {
["Status"] = {{Temp = '°C'}},
["DisplayActions"] = false,
},
["Temp + Humidity"] = {
["Status"] = {{Temp = '°C'}, {Humidity = '%'}},
["DisplayActions"] = false,
},
["Temp + Humidity + Baro"] = {
["Status"] = {{Temp = '°C'}, {Humidity = '%'}, {Barometer = 'hPa'}, {ForecastStr = ''}},
["DisplayActions"] = false,
},
["Thermostat"] = {
["Status"] = {{SetPoint = '°C'}},
["DisplayActions"] = true,
},
["UV"] = {
["Status"] = {{UVI = 'uvi'}},
["DisplayActions"] = false,
},
["Wind"] = {
["Status"] = {{Temp = '°C'}, {Speed = 'km/h'}, {DirectionStr = ''}},
["DisplayActions"] = false,
},
["General"] = {
["Status"] = {{Data = ''}},
["DisplayActions"] = false,
},
}