iobroker.alarm 3.3.9 → 3.3.10
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 +5 -0
- package/io-package.json +14 -14
- package/main.js +5 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -23,10 +23,15 @@
|
|
|
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.10 (2023-03-31)
|
|
33
|
+
* (misanorot) fixed litle speech and presence bug
|
|
34
|
+
|
|
30
35
|
### 3.3.9 (2023-01-14)
|
|
31
36
|
* (misanorot) fixed issues at burgle log
|
|
32
37
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "alarm",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.10",
|
|
5
5
|
"news": {
|
|
6
|
+
"3.3.10": {
|
|
7
|
+
"en": "fixed litle speech and presence bug",
|
|
8
|
+
"de": "feste litle rede und anwesenheit fehler",
|
|
9
|
+
"ru": "исправлена лиловая речь и ошибка присутствия",
|
|
10
|
+
"pt": "discurso de linho fixo e bug presença",
|
|
11
|
+
"nl": "_",
|
|
12
|
+
"fr": "discours fixe et bug de présence",
|
|
13
|
+
"it": "discorso fisso e bug di presenza",
|
|
14
|
+
"es": "discurso de litio fijo y error de presencia",
|
|
15
|
+
"pl": "stałe przemówienie i obecność bugu",
|
|
16
|
+
"uk": "виправлений лайт мова і наявність помилок",
|
|
17
|
+
"zh-cn": "固定的利词和存在 bug"
|
|
18
|
+
},
|
|
6
19
|
"3.3.9": {
|
|
7
20
|
"en": "fixed issues at burgle log",
|
|
8
21
|
"de": "feste probleme bei burgle log",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "ustalenie",
|
|
81
94
|
"uk": "виправлені питання",
|
|
82
95
|
"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
|
@@ -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.10",
|
|
4
4
|
"description": "Your own lttle alarm system",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "misanorot",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@iobroker/adapter-core": "^2.6.7",
|
|
25
|
-
"node-schedule": "^2.1.
|
|
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.
|
|
39
|
+
"@types/node": "^18.14.2",
|
|
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.35.0",
|
|
46
46
|
"mocha": "^10.2.0",
|
|
47
47
|
"proxyquire": "^2.1.3",
|
|
48
48
|
"sinon": "^15.0.1",
|
|
49
49
|
"sinon-chai": "^3.7.0",
|
|
50
|
-
"typescript": "~4.9.
|
|
50
|
+
"typescript": "~4.9.5"
|
|
51
51
|
},
|
|
52
52
|
"main": "main.js",
|
|
53
53
|
"files": [
|