Repository navigation
Expand file tree
/
Copy pathuseful-rules.json
More file actions
58 lines (58 loc) · 1.61 KB
/
Copy pathuseful-rules.json
File metadata and controls
58 lines (58 loc) · 1.61 KB
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
{
"format": "evtasker-rules",
"version": 1,
"rules": [
{
"id": "example-night-display",
"name": "Night: dim display",
"enabled": false,
"match": "ALL",
"conditions": [
{ "type": "TIME_OF_DAY", "op": "EQ", "minutesFrom": 1200, "minutesTo": 390 }
],
"actions": [
{ "type": "SET_SCREEN_BRIGHTNESS", "number": 25 }
]
},
{
"id": "example-quiet-morning",
"name": "Weekday morning: quiet media",
"enabled": false,
"match": "ALL",
"conditions": [
{ "type": "TIME_OF_DAY", "op": "EQ", "minutesFrom": 360, "minutesTo": 540 },
{ "type": "DAY_OF_WEEK", "op": "EQ", "days": [2, 3, 4, 5, 6] }
],
"actions": [
{ "type": "SET_MEDIA_VOLUME", "number": 8 }
]
},
{
"id": "example-eco-start",
"name": "Parked start: Eco and high regen",
"enabled": false,
"match": "ALL",
"conditions": [
{ "type": "IN_PARK", "op": "EQ", "flag": true },
{ "type": "SPEED", "op": "EQ", "number": 0 }
],
"actions": [
{ "type": "SET_DRIVE_MODE", "number": 2 },
{ "type": "SET_REGEN_LEVEL", "number": 2 }
]
},
{
"id": "example-gate-webhook",
"name": "Star right, long press: open the gate",
"enabled": false,
"match": "ALL",
"conditions": [
{ "type": "PHYSICAL_BUTTON", "op": "EQ", "number": 286, "text": "LONG" }
],
"actions": [
{ "type": "ASK_CONFIRM", "text": "Open the gate?" },
{ "type": "WEBHOOK", "flag": false, "text": "https://example.com/gate" }
]
}
]
}