-
Notifications
You must be signed in to change notification settings - Fork 3
/
telegram-device-config-schema.coffee
executable file
·48 lines (48 loc) · 1.61 KB
/
telegram-device-config-schema.coffee
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
module.exports = {
title: "Telegram device config schemas"
TelegramReceiverDevice: {
title: "Telegram Receiver configuration options"
type: "object"
properties:
disable2FA:
description: "Setting disable2FA to Yes, will allow users to send requests without providing a password. This lowers security!"
type: "boolean"
default: false
secret:
description: "Passcode to provide before requests are accepted"
type: "string"
default: "change_me_now!"
auth_timeout:
description: "Time after which passcode needs to be re-entered (in minutes)"
type: "number"
default: 5
stateStartup:
description: "Start Telegram Listener at Pimatic start?"
type: "boolean"
default: true
confirmRuleTrigger:
description: "Should the receiver send confirmation upon executing rule actions?"
type: "boolean"
default: true
confirmDeviceAction:
description: "Should the receiver send confirmation upon executing device actions?"
type: "boolean"
default: true
timeout:
description: "Message polling timout in seconds (0 - short polling)"
type: "number"
default: 30
limit:
description: "Number of new requests to be retrieved"
type: "number"
default: 100
interval:
description: "DEPRECATED - How often to check for new requests (in ms)"
type: "number"
default: 1000
retryTimeout:
description: "DEPRECATED - Reconnect timeout (in ms)"
type: "number"
default: 5000
}
}