iobroker.alarm 3.3.9 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/io-package.json +27 -27
- package/main.js +6 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -23,10 +23,18 @@
|
|
|
23
23
|
**[English description](docs/en/alarm_en.md)**
|
|
24
24
|
|
|
25
25
|
******************************************************************************************
|
|
26
|
+
## CHANGELOG
|
|
27
|
+
|
|
26
28
|
<!--
|
|
27
29
|
Placeholder for the next version (at the beginning of the line):
|
|
28
30
|
### **WORK IN PROGRESS**
|
|
29
31
|
-->
|
|
32
|
+
### 3.3.11 (2023-04-15)
|
|
33
|
+
* (misanorot) fixed issue at night rest
|
|
34
|
+
|
|
35
|
+
### 3.3.10 (2023-03-31)
|
|
36
|
+
* (misanorot) fixed litle speech and presence bug
|
|
37
|
+
|
|
30
38
|
### 3.3.9 (2023-01-14)
|
|
31
39
|
* (misanorot) fixed issues at burgle log
|
|
32
40
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "alarm",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.11",
|
|
5
5
|
"news": {
|
|
6
|
+
"3.3.11": {
|
|
7
|
+
"en": "fixed issue at night rest",
|
|
8
|
+
"de": "festes problem bei nachtruhe",
|
|
9
|
+
"ru": "фиксированная проблема в ночной отдых",
|
|
10
|
+
"pt": "problema fixo no descanso noturno",
|
|
11
|
+
"nl": "'s nachts rust",
|
|
12
|
+
"fr": "problème fixe au repos nocturne",
|
|
13
|
+
"it": "problema fisso al riposo notturno",
|
|
14
|
+
"es": "tema fijo en el descanso nocturno",
|
|
15
|
+
"pl": "trwały problem w nocy",
|
|
16
|
+
"uk": "виправлено проблему в нічному режимі",
|
|
17
|
+
"zh-cn": "夜间固定问题休息"
|
|
18
|
+
},
|
|
19
|
+
"3.3.10": {
|
|
20
|
+
"en": "fixed litle speech and presence bug",
|
|
21
|
+
"de": "feste litle rede und anwesenheit fehler",
|
|
22
|
+
"ru": "исправлена лиловая речь и ошибка присутствия",
|
|
23
|
+
"pt": "discurso de linho fixo e bug presença",
|
|
24
|
+
"nl": "_",
|
|
25
|
+
"fr": "discours fixe et bug de présence",
|
|
26
|
+
"it": "discorso fisso e bug di presenza",
|
|
27
|
+
"es": "discurso de litio fijo y error de presencia",
|
|
28
|
+
"pl": "stałe przemówienie i obecność bugu",
|
|
29
|
+
"uk": "виправлений лайт мова і наявність помилок",
|
|
30
|
+
"zh-cn": "固定的利词和存在 bug"
|
|
31
|
+
},
|
|
6
32
|
"3.3.9": {
|
|
7
33
|
"en": "fixed issues at burgle log",
|
|
8
34
|
"de": "feste probleme bei burgle log",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "aktualizacja dziennika",
|
|
68
94
|
"uk": "виправлені питання в журналі сьогодні",
|
|
69
95
|
"zh-cn": "今天逻辑上的固定问题"
|
|
70
|
-
},
|
|
71
|
-
"3.3.4": {
|
|
72
|
-
"en": "fixed issues",
|
|
73
|
-
"de": "feste probleme",
|
|
74
|
-
"ru": "фиксированные вопросы",
|
|
75
|
-
"pt": "problemas",
|
|
76
|
-
"nl": "_",
|
|
77
|
-
"fr": "questions fixes",
|
|
78
|
-
"it": "questioni fisse",
|
|
79
|
-
"es": "cuestiones fijas",
|
|
80
|
-
"pl": "ustalenie",
|
|
81
|
-
"uk": "виправлені питання",
|
|
82
|
-
"zh-cn": "固定问题"
|
|
83
|
-
},
|
|
84
|
-
"3.3.3": {
|
|
85
|
-
"en": "fixed issues",
|
|
86
|
-
"de": "feste probleme",
|
|
87
|
-
"ru": "фиксированные вопросы",
|
|
88
|
-
"pt": "problemas",
|
|
89
|
-
"nl": "_",
|
|
90
|
-
"fr": "questions fixes",
|
|
91
|
-
"it": "questioni fisse",
|
|
92
|
-
"es": "cuestiones fijas",
|
|
93
|
-
"pl": "ustalenie",
|
|
94
|
-
"uk": "виправлені питання",
|
|
95
|
-
"zh-cn": "固定问题"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"title": "Alarm",
|
package/main.js
CHANGED
|
@@ -1203,7 +1203,7 @@ class Alarm extends utils.Adapter {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
sleep_begin(auto) {
|
|
1206
|
-
if (night_rest) return;
|
|
1206
|
+
if (night_rest || burgle) return;
|
|
1207
1207
|
if (auto && inside || auto && activated) {
|
|
1208
1208
|
this.log.warn(`Cannot set alarm system to night rest, it is sharp or sharp inside`);
|
|
1209
1209
|
return;
|
|
@@ -1604,17 +1604,18 @@ class Alarm extends utils.Adapter {
|
|
|
1604
1604
|
countdown(count) {
|
|
1605
1605
|
const time = this.timeMode(this.config.time_activate_select);
|
|
1606
1606
|
let counter = this.config.time_activate * time / 1000;
|
|
1607
|
-
let say = this.config.time_activate + ' ' + this.config.text_countdown;
|
|
1608
1607
|
if (count && !timer && !activated) {
|
|
1608
|
+
const say = this.config.time_activate + ' ' + this.config.text_countdown;
|
|
1609
1609
|
if (is_alarm) {
|
|
1610
1610
|
if (this.config.send_activation_warnings) this.messages(`${this.config.log_act_notice} ${names_alarm}`);
|
|
1611
|
-
say =
|
|
1611
|
+
let say = this.config.text_warning;
|
|
1612
1612
|
if (this.config.opt_say_names) {
|
|
1613
1613
|
say = say + ' ' + names_alarm;
|
|
1614
1614
|
}
|
|
1615
1615
|
this.sayit(say, 4);
|
|
1616
1616
|
}
|
|
1617
|
-
this.sayit(say, 11);
|
|
1617
|
+
if (is_alarm) setTimeout(() => {this.sayit(say, 11);}, 5000);
|
|
1618
|
+
else this.sayit(say, 11);
|
|
1618
1619
|
this.setState('status.gets_activated', true, true);
|
|
1619
1620
|
this.setState('status.state', 'gets activated', true);
|
|
1620
1621
|
this.setState('status.state_list', 5, true);
|
|
@@ -1795,7 +1796,7 @@ class Alarm extends utils.Adapter {
|
|
|
1795
1796
|
tempObj.presence_light_lux = ele.presence_light_lux;
|
|
1796
1797
|
tempObj.wasOn = false;
|
|
1797
1798
|
|
|
1798
|
-
presenceTimers[ele.
|
|
1799
|
+
presenceTimers[ele.name_id] = tempObj;
|
|
1799
1800
|
|
|
1800
1801
|
} else if (!ele.enable) {
|
|
1801
1802
|
this.log.debug(`Presence state not used but configured: ${ele.name_id}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.alarm",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "Your own lttle alarm system",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "misanorot",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"node": ">= 16"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@iobroker/adapter-core": "^2.6.
|
|
25
|
-
"node-schedule": "^2.1.
|
|
24
|
+
"@iobroker/adapter-core": "^2.6.8",
|
|
25
|
+
"node-schedule": "^2.1.1",
|
|
26
26
|
"suncalc2": "^1.8.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"@types/chai": "^4.3.4",
|
|
37
37
|
"@types/chai-as-promised": "^7.1.5",
|
|
38
38
|
"@types/mocha": "^10.0.1",
|
|
39
|
-
"@types/node": "^18.11
|
|
39
|
+
"@types/node": "^18.15.11",
|
|
40
40
|
"@types/proxyquire": "^1.3.28",
|
|
41
41
|
"@types/sinon": "^10.0.13",
|
|
42
42
|
"@types/sinon-chai": "^3.2.9",
|
|
43
43
|
"chai": "^4.3.7",
|
|
44
44
|
"chai-as-promised": "^7.1.1",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.37.0",
|
|
46
46
|
"mocha": "^10.2.0",
|
|
47
47
|
"proxyquire": "^2.1.3",
|
|
48
|
-
"sinon": "^15.0.
|
|
48
|
+
"sinon": "^15.0.3",
|
|
49
49
|
"sinon-chai": "^3.7.0",
|
|
50
|
-
"typescript": "~
|
|
50
|
+
"typescript": "~5.0.3"
|
|
51
51
|
},
|
|
52
52
|
"main": "main.js",
|
|
53
53
|
"files": [
|