iobroker.alarm 2.1.0
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/.gitattributes +17 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/test-and-release.yml +141 -0
- package/LICENSE +21 -0
- package/README.md +245 -0
- package/SECURITY.md +21 -0
- package/admin/admin.d.ts +1 -0
- package/admin/alarm.png +0 -0
- package/admin/img/info-big.png +0 -0
- package/admin/img/short.png +0 -0
- package/admin/index_m.html +1227 -0
- package/admin/style.css +99 -0
- package/admin/words.js +281 -0
- package/io-package.json +946 -0
- package/iob_npm.done +1 -0
- package/lib/Readme_en.md +1 -0
- package/lib/adapter-config.d.ts +16 -0
- package/lib/tools.js +91 -0
- package/main.js +1639 -0
- package/main.test.js +30 -0
- package/package.json +85 -0
package/.gitattributes
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# Custom for Visual Studio
|
|
5
|
+
*.cs diff=csharp
|
|
6
|
+
|
|
7
|
+
# Standard to msysgit
|
|
8
|
+
*.doc diff=astextplain
|
|
9
|
+
*.DOC diff=astextplain
|
|
10
|
+
*.docx diff=astextplain
|
|
11
|
+
*.DOCX diff=astextplain
|
|
12
|
+
*.dot diff=astextplain
|
|
13
|
+
*.DOT diff=astextplain
|
|
14
|
+
*.pdf diff=astextplain
|
|
15
|
+
*.PDF diff=astextplain
|
|
16
|
+
*.rtf diff=astextplain
|
|
17
|
+
*.RTF diff=astextplain
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Something is not working as it should
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Describe the bug**
|
|
10
|
+
A clear and concise description of what the bug is.
|
|
11
|
+
|
|
12
|
+
**To Reproduce**
|
|
13
|
+
Steps to reproduce the behavior:
|
|
14
|
+
1. Go to '...'
|
|
15
|
+
2. Click on '...'
|
|
16
|
+
3. Scroll down to '....'
|
|
17
|
+
4. See error
|
|
18
|
+
|
|
19
|
+
**Expected behavior**
|
|
20
|
+
A clear and concise description of what you expected to happen.
|
|
21
|
+
|
|
22
|
+
**Screenshots & Logfiles**
|
|
23
|
+
If applicable, add screenshots and logfiles to help explain your problem.
|
|
24
|
+
|
|
25
|
+
**Versions:**
|
|
26
|
+
- Adapter version: <adapter-version>
|
|
27
|
+
- JS-Controller version: <js-controller-version> <!-- determine this with `iobroker -v` on the console -->
|
|
28
|
+
- Node version: <node-version> <!-- determine this with `node -v` on the console -->
|
|
29
|
+
- Operating system: <os-name>
|
|
30
|
+
|
|
31
|
+
**Additional context**
|
|
32
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ master ]
|
|
17
|
+
pull_request:
|
|
18
|
+
# The branches below must be a subset of the branches above
|
|
19
|
+
branches: [ master ]
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '42 19 * * 5'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
analyze:
|
|
25
|
+
name: Analyze
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
permissions:
|
|
28
|
+
actions: read
|
|
29
|
+
contents: read
|
|
30
|
+
security-events: write
|
|
31
|
+
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
language: [ 'javascript' ]
|
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
37
|
+
# Learn more:
|
|
38
|
+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
- name: Checkout repository
|
|
42
|
+
uses: actions/checkout@v2
|
|
43
|
+
|
|
44
|
+
# Initializes the CodeQL tools for scanning.
|
|
45
|
+
- name: Initialize CodeQL
|
|
46
|
+
uses: github/codeql-action/init@v1
|
|
47
|
+
with:
|
|
48
|
+
languages: ${{ matrix.language }}
|
|
49
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
50
|
+
# By default, queries listed here will override any specified in a config file.
|
|
51
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
52
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
53
|
+
|
|
54
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
55
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
56
|
+
- name: Autobuild
|
|
57
|
+
uses: github/codeql-action/autobuild@v1
|
|
58
|
+
|
|
59
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
60
|
+
# 📚 https://git.io/JvXDl
|
|
61
|
+
|
|
62
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
63
|
+
# and modify them (or add more) to build your code if your project
|
|
64
|
+
# uses a compiled language
|
|
65
|
+
|
|
66
|
+
#- run: |
|
|
67
|
+
# make bootstrap
|
|
68
|
+
# make release
|
|
69
|
+
|
|
70
|
+
- name: Perform CodeQL Analysis
|
|
71
|
+
uses: github/codeql-action/analyze@v1
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# This is a composition of lint and test scripts
|
|
2
|
+
# Make sure to update this file along with the others
|
|
3
|
+
|
|
4
|
+
name: Test and Release
|
|
5
|
+
|
|
6
|
+
# Run this job on all pushes and pull requests
|
|
7
|
+
# as well as tags with a semantic version
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- '*'
|
|
12
|
+
tags:
|
|
13
|
+
# normal versions
|
|
14
|
+
- "v?[0-9]+.[0-9]+.[0-9]+"
|
|
15
|
+
# pre-releases
|
|
16
|
+
- "v?[0-9]+.[0-9]+.[0-9]+-**"
|
|
17
|
+
pull_request: {}
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
# Performs quick checks before the expensive test runs
|
|
21
|
+
check-and-lint:
|
|
22
|
+
if: contains(github.event.head_commit.message, '[skip ci]') == false
|
|
23
|
+
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
|
|
26
|
+
strategy:
|
|
27
|
+
matrix:
|
|
28
|
+
node-version: [16.x]
|
|
29
|
+
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v1
|
|
32
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
33
|
+
uses: actions/setup-node@v1
|
|
34
|
+
with:
|
|
35
|
+
node-version: ${{ matrix.node-version }}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- name: Install Dependencies
|
|
39
|
+
run: npm ci
|
|
40
|
+
|
|
41
|
+
# - name: Perform a type check
|
|
42
|
+
# run: npm run check:ts
|
|
43
|
+
# env:
|
|
44
|
+
# CI: true
|
|
45
|
+
# - name: Lint TypeScript code
|
|
46
|
+
# run: npm run lint
|
|
47
|
+
# - name: Test package files
|
|
48
|
+
# run: npm run test:package
|
|
49
|
+
|
|
50
|
+
# Runs adapter tests on all supported node versions and OSes
|
|
51
|
+
adapter-tests:
|
|
52
|
+
if: contains(github.event.head_commit.message, '[skip ci]') == false
|
|
53
|
+
|
|
54
|
+
needs: [check-and-lint]
|
|
55
|
+
|
|
56
|
+
runs-on: ${{ matrix.os }}
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
node-version: [12.x, 14.x, 16.x]
|
|
60
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
61
|
+
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/checkout@v1
|
|
64
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
65
|
+
uses: actions/setup-node@v1
|
|
66
|
+
with:
|
|
67
|
+
node-version: ${{ matrix.node-version }}
|
|
68
|
+
|
|
69
|
+
- name: Install Dependencies
|
|
70
|
+
run: npm ci
|
|
71
|
+
|
|
72
|
+
- name: Run local tests
|
|
73
|
+
run: npm test
|
|
74
|
+
# - name: Run unit tests
|
|
75
|
+
# run: npm run test:unit
|
|
76
|
+
# - name: Run integration tests # (linux/osx)
|
|
77
|
+
# if: startsWith(runner.OS, 'windows') == false
|
|
78
|
+
# run: DEBUG=testing:* npm run test:integration
|
|
79
|
+
# - name: Run integration tests # (windows)
|
|
80
|
+
# if: startsWith(runner.OS, 'windows')
|
|
81
|
+
# run: set DEBUG=testing:* & npm run test:integration
|
|
82
|
+
|
|
83
|
+
# Deploys the final package to NPM
|
|
84
|
+
deploy:
|
|
85
|
+
needs: [adapter-tests]
|
|
86
|
+
|
|
87
|
+
# Trigger this step only when a commit on master is tagged with a version number
|
|
88
|
+
if: |
|
|
89
|
+
contains(github.event.head_commit.message, '[skip ci]') == false &&
|
|
90
|
+
github.event_name == 'push' &&
|
|
91
|
+
startsWith(github.ref, 'refs/tags/')
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
strategy:
|
|
94
|
+
matrix:
|
|
95
|
+
node-version: [16.x]
|
|
96
|
+
|
|
97
|
+
steps:
|
|
98
|
+
- name: Checkout code
|
|
99
|
+
uses: actions/checkout@v2
|
|
100
|
+
|
|
101
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
102
|
+
uses: actions/setup-node@v1
|
|
103
|
+
with:
|
|
104
|
+
node-version: ${{ matrix.node-version }}
|
|
105
|
+
|
|
106
|
+
- name: Extract the version and commit body from the tag
|
|
107
|
+
id: extract_release
|
|
108
|
+
# The body may be multiline, therefore we need to escape some characters
|
|
109
|
+
run: |
|
|
110
|
+
VERSION="${{ github.ref }}"
|
|
111
|
+
VERSION=${VERSION##*/}
|
|
112
|
+
VERSION=${VERSION##*v}
|
|
113
|
+
echo "::set-output name=VERSION::$VERSION"
|
|
114
|
+
BODY=$(git show -s --format=%b)
|
|
115
|
+
BODY="${BODY//'%'/'%25'}"
|
|
116
|
+
BODY="${BODY//$'\n'/'%0A'}"
|
|
117
|
+
BODY="${BODY//$'\r'/'%0D'}"
|
|
118
|
+
echo "::set-output name=BODY::$BODY"
|
|
119
|
+
|
|
120
|
+
- name: Install Dependencies
|
|
121
|
+
run: npm ci
|
|
122
|
+
|
|
123
|
+
# - name: Create a clean build
|
|
124
|
+
# run: npm run build
|
|
125
|
+
- name: Publish package to npm
|
|
126
|
+
run: |
|
|
127
|
+
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
|
128
|
+
npm whoami
|
|
129
|
+
npm publish
|
|
130
|
+
|
|
131
|
+
- name: Create Github Release
|
|
132
|
+
uses: actions/create-release@v1
|
|
133
|
+
env:
|
|
134
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
135
|
+
with:
|
|
136
|
+
tag_name: ${{ github.ref }}
|
|
137
|
+
release_name: Release v${{ steps.extract_release.outputs.VERSION }}
|
|
138
|
+
draft: false
|
|
139
|
+
# Prerelease versions create prereleases on Github
|
|
140
|
+
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
|
|
141
|
+
body: ${{ steps.extract_release.outputs.BODY }}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-2021 misanorot <audi16v@gmx.de>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+

|
|
2
|
+
# ioBroker.alarm
|
|
3
|
+
|
|
4
|
+
 [](https://www.npmjs.com/package/iobroker.alarm)
|
|
5
|
+
[](https://www.npmjs.com/package/iobroker.alarm)
|
|
6
|
+
[](https://david-dm.org/misanorot/iobroker.alarm)
|
|
7
|
+
[](https://snyk.io/test/github/misanorot/ioBroker.alarm)
|
|
8
|
+
|
|
9
|
+
[](https://nodei.co/npm/iobroker.alarm/)
|
|
10
|
+
|
|
11
|
+
**Github Actions**:
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZYHW84XXF5REJ&source=url)
|
|
17
|
+
|
|
18
|
+
**[English description](https://github.com/misanorot/ioBroker.alarm/blob/master/lib/Readme_en.md)**
|
|
19
|
+
|
|
20
|
+
## ioBroker Alarm
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Dies ist ein Adapter, mit dem sich eine kleine Alarmanlage ohne große programmiertechnische Vorkenntnisse realisieren lässt.
|
|
24
|
+
Er bietet die Möglichkeit 3 Sicherheitskreise zu konfigurieren und diese z. B. bei Nachtruhe oder De- und Aktivierung zu überwachen. Des Weiteren ist
|
|
25
|
+
eine direkte Verknüpfung der jeweiligen Instanz "states", auf andere "states" möglich. Diese Verknüpfungen werden im Reiter Verknüpfungen angelegt.
|
|
26
|
+
|
|
27
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
28
|
+
|
|
29
|
+
### Tab Haupteinstellungen
|
|
30
|
+
|
|
31
|
+
Hier werden die Einstellungen wie die Zeiten der Nachtruhe, Sirenezeit, Stiller-Alarm und Passwort vorgenommen.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
- Aktivierzeit -> Zeitverzögerung bis zu Aktivierung wenn man einen delay Datenpunkt benutzt
|
|
35
|
+
- Sirenenzeit bei Einbruch -> Bei Einbruch wird der Datenpunkt alarm.0.status.siren für die Zeit auf true gesetzt
|
|
36
|
+
- Alarmverzögerung -> Verzögerungszeit bis Einbruch ausgelöst wird (während dieser Zeit wird der Stille Alarm ausgelöst)
|
|
37
|
+
- Auslösezeit bei Warnungen/Sirene innen -> Bei Auslösung des Benachrichtigungskreises oder scharf innen Kreises, wird der jeweils zugehörige Datenpunkt für die Zeit auf true gesetzt
|
|
38
|
+
|
|
39
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
### Tab Benachrichtigungen
|
|
42
|
+
|
|
43
|
+
Benachrichtigungen über Andere Adapter wie z. B. Telegramm, Email oder andere.
|
|
44
|
+
[Probleme](#Probleme)
|
|
45
|
+
|
|
46
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
### Tab Überwachung
|
|
49
|
+
|
|
50
|
+
Hier werden die Kreise der Anlage konfiguriert.
|
|
51
|
+
*die Namen der states lassen sich ändern*
|
|
52
|
+
|
|
53
|
+
Der Alarmkreis hat die Priorität „hoch" und hat bei aktivierter Anlage (scharf) Vorrang vor allen anderen Kreisen. Er dient zur eigentlichen Überwachung der Anlage. Dies entspricht den Vollschutz einer Alarmanlage. Der scharf intern Kreis wird überwacht, wenn die Anlage sich im Zustand scharf intern befindet, dies entspricht einem Außenhautschutz einer Alarmanlage. Der Meldekreis dient nur zur Meldung während der Zustände scharf, scharf intern und bei der Nachtruhe.
|
|
54
|
+
*Es ist durchaus möglich, dass man für einem state, den Haken bei allen drei Kreisen macht.*
|
|
55
|
+
|
|
56
|
+
Sollte man einen Kontakt haben, der den Alarmkreis nicht sofort auslösen soll, kann man das Häkchen bei "stiller Alarm" aktivieren, dadurch wird nach Ablauf der eingestellten Zeit (Haupteinstellungen), der Alarm ausgelöst.
|
|
57
|
+
|
|
58
|
+
Sollte es erforderlich sein die Einzelnen States nicht auf *true*, sondern auf *false* zu triggern (z.B. Drahtbruchsichere Sensoren), so kann man das Häkchen bei "negieren" setzen.
|
|
59
|
+
|
|
60
|
+
Sollte man im Tab Haupteinstellungen die Option "verlassen" aktiviert haben, kann man unter dem entsprechenden Datenpunkt "verlassen" anwählen. Dies bewirkt, dass bei verzögerte Aktivierung, der Countdown nicht ablaufen muss, sondern es reicht z. B. die Tür zu schließen.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
Die Kreise werden folgendermaßen überwacht:
|
|
64
|
+
|
|
65
|
+
#### Alarmkreis:
|
|
66
|
+
Alarmanlage lässt sich nicht aktivieren (scharf schalten) wenn ein konfigurierter state aktiv ist. Bei aktivierter Alarmanlage führt eine Veränderung sofort zur Auslösung der Anlage.
|
|
67
|
+
|
|
68
|
+
#### Scharf intern Kreis:
|
|
69
|
+
Alle hier konfigurierten states werden beim Zustand scharf intern überwacht und lösen unter anderem den internen Alarm aus.
|
|
70
|
+
|
|
71
|
+
#### Meldekreis:
|
|
72
|
+
Der überwacht die konfigurierten states auf Veränderungen und meldet dies.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
### Tab Sprachausgabe
|
|
78
|
+
|
|
79
|
+
Ist eine gewünschte Sprachausgabe z. B. bei Änderung des Zustandes gewünscht, lässt sich das hier mit den gewünschten Sätzen konfigurieren.
|
|
80
|
+
*Man muss sich sicher sein, das der ausgewählte Datenpunkt, mit einem Text beschrieben werden kann! Z.B. "sayit.0.tts"*
|
|
81
|
+
|
|
82
|
+
Möchte man sich die Ausgabe von Namen mit Ansagen lassen, kann man diese Option anwählen.
|
|
83
|
+
|
|
84
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
85
|
+
|
|
86
|
+
### Tab Verknüpfungen
|
|
87
|
+
|
|
88
|
+
Hier ist es möglich Adapter interne states direkt mit externen states zu verknüpfen. Somit ist ein Umweg über ein Skript oder ähnlichen nicht erforderlich.
|
|
89
|
+
Es lässt sich somit z. B. bei Beginn der Nachtruhe, eine Verriegelung des Türschlosses realisieren.
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
#### Eingabeverknüpfungen
|
|
93
|
+
|
|
94
|
+
Trigger--> any = es wird bei jeder Änderung getriggert
|
|
95
|
+
ne = es wird nur getriggert, wenn der Wert sich geändert
|
|
96
|
+
|
|
97
|
+
Auslösewert--> Ist der Wert, auf welchen getriggert werden soll
|
|
98
|
+
|
|
99
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
100
|
+
|
|
101
|
+
### Tab Andere Alarme
|
|
102
|
+
|
|
103
|
+
Es stehen einen zwei frei konfigurierbare Überwachungskreise zu Verfügung, diese werden bei Benutzung unabhängig dem Zustand der Alarmanlage ständig überwacht!
|
|
104
|
+
Als Voreinstellung sind diese als Feuer- und Wasseralarm beschriftet. In der ganzen Konfiguration sind diese als Kreise 1 und 2 beschriftet und an den Nummern zu erkennen.
|
|
105
|
+
|
|
106
|
+
Sollte es erforderlich sein die Einzelnen States nicht auf *true*, sondern auf *false* zu triggern (z.B. Drahtbruchsichere Sensoren), so kann man das Häkchen bei "negieren" setzen.
|
|
107
|
+
|
|
108
|
+
####Es ist darauf zu achten, dass keine States aus dem eigentlichen Hauptüberwachungskreisen benutzt werden!
|
|
109
|
+
|
|
110
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
111
|
+
|
|
112
|
+
Der Adapter liefert eine ganze Anzahl an states:
|
|
113
|
+
|
|
114
|
+
#### "alarm.x.use.....".
|
|
115
|
+
Das sind die eigentlichen states um die Alarmanlage zu bedienen.
|
|
116
|
+
|
|
117
|
+
- use.activate_nightrest -> Aktivierung der Nachtruhe
|
|
118
|
+
- use.activate_sharp_inside_circuit -> Aktivierung der Überwachung des Warnkreises (intern scharf)
|
|
119
|
+
- use.disable -> Deaktivierung der Anlage (Alarmkreis)
|
|
120
|
+
- use.enable -> Aktivierung der Anlage (Alarmkreis)
|
|
121
|
+
- use.enable_with_delay -> Aktivierung der Anlage (Alarmkreis) mit Verzögerungszeit
|
|
122
|
+
- use.list -> Deaktivierung/Aktivierung/Warnkreis/Aktivierung mit Verzögerungszeit
|
|
123
|
+
- use.quit_changes -> Rücksetzen der states *info.notification_circuit_changes, info.sharp_inside_siren, status.activation_failed, other_alarms.one_changes, other_alarms.two_changes*
|
|
124
|
+
- use.toggle_password -> Deaktivierung/Aktivierung der Anlage (Alarmkreis) mit Passwort
|
|
125
|
+
- use.toggle_with_delay -> Deaktivierung/Aktivierung der Anlage (Alarmkreis) mit Verzögerungszeit
|
|
126
|
+
- use.toggle_with_delay_and_password -> Deaktivierung/Aktivierung der Anlage (Alarmkreis) mit Passwort und Verzögerungszeit
|
|
127
|
+
- use.panic -> Händische Auslösung der Alarmanlage(Einbruch), auch wenn diese deaktiviert ist
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
#### "alarm.x.status...."
|
|
132
|
+
Hier lässte sich der Zustand der Anlage ablesen.
|
|
133
|
+
|
|
134
|
+
- status.sleep -> Signalisiert den Zustand der automatischen Nachtruhe
|
|
135
|
+
|
|
136
|
+
#### "alarm.x.info...."
|
|
137
|
+
Liefert zusätzliche Informationen wie z.B. welche "Türen offen sind" oder einen Log state.
|
|
138
|
+
Der log_today state wird um Mitternacht geleert.
|
|
139
|
+
|
|
140
|
+
#### "alarm.x.other_alarms...."
|
|
141
|
+
Beinhaltet die Informationen für die "anderen" Alarmkreise 1 + 2.
|
|
142
|
+
|
|
143
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
144
|
+
|
|
145
|
+
## Probleme
|
|
146
|
+
- wenn man eine Telegram oder ähnliches über das + hinzufügt, kann man nur ein state der Instanz auswählen und man muss bis auf *telegram.0* alles löschen.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
#### Wichtig, die Benutzung dieses Adapters geschieht auf eigene Gefahr, für etwaige Fehlfunktionen wird keine Haftung übernommen!
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## Changelog
|
|
154
|
+
|
|
155
|
+
#### 2.1.0 (11.10.2021)
|
|
156
|
+
* (misanorot) extend list states and speech output, added leave option
|
|
157
|
+
|
|
158
|
+
#### 2.0.2 (08.08.2021)
|
|
159
|
+
* (misanorot) fixed password issues
|
|
160
|
+
|
|
161
|
+
#### 2.0.1 (04.05.2021)
|
|
162
|
+
* (misanorot) fixed ack issues
|
|
163
|
+
|
|
164
|
+
#### 2.0.0 (22.03.2021)
|
|
165
|
+
* (misanorot) added other alarms
|
|
166
|
+
|
|
167
|
+
#### 1.9.0 (08.01.2021)
|
|
168
|
+
* (misanorot) added html states and fixed little issues
|
|
169
|
+
|
|
170
|
+
#### 1.8.0 (26.11.2020)
|
|
171
|
+
* (misanorot) added status.state_list to shortcuts
|
|
172
|
+
|
|
173
|
+
#### 1.7.0 (20.11.2020)
|
|
174
|
+
* (misanorot) changed notifications and fixed little issues
|
|
175
|
+
|
|
176
|
+
#### 1.6.0 (08.11.2020)
|
|
177
|
+
* (misanorot) changed time inputs to numbers
|
|
178
|
+
|
|
179
|
+
#### 1.5.0 (08.11.2020)
|
|
180
|
+
* (misanorot) added stop inside alarm with disable
|
|
181
|
+
|
|
182
|
+
#### 1.4.0 (05.11.2020)
|
|
183
|
+
* (misanorot) added silent alarm selection for every state
|
|
184
|
+
|
|
185
|
+
#### 1.3.0 (01.11.2020)
|
|
186
|
+
* (misanorot) added diffrent time options
|
|
187
|
+
|
|
188
|
+
#### 1.2.0 (09.07.2020)
|
|
189
|
+
* (misanorot) added countdown speech output
|
|
190
|
+
|
|
191
|
+
#### 1.1.0 (05.07.2020)
|
|
192
|
+
* (misanorot) Added input shortcuts
|
|
193
|
+
|
|
194
|
+
#### 1.0.0 (01.07.2020)
|
|
195
|
+
* (misanorot) added alarm and silent flash light
|
|
196
|
+
|
|
197
|
+
#### 0.9.0 (28.06.2020)
|
|
198
|
+
* (misanorot) Homekit integrated, set shortcuts only when changed
|
|
199
|
+
|
|
200
|
+
#### 0.8.0 (18.06.2020)
|
|
201
|
+
#### (misanorot) !!! Changed circuits dramatacly !!! Please do a new installation when you come from less versions
|
|
202
|
+
|
|
203
|
+
#### 0.7.5 (14.06.2020)
|
|
204
|
+
* (misanorot) fixed a few little issues
|
|
205
|
+
|
|
206
|
+
#### 0.7.0 (07.06.2020)
|
|
207
|
+
* (misanorot) edit notification sentences in admin
|
|
208
|
+
|
|
209
|
+
#### 0.6.0 (31.05.2020)
|
|
210
|
+
* (misanorot) changed speech output
|
|
211
|
+
|
|
212
|
+
#### 0.5.0 (14.05.2020)
|
|
213
|
+
* (misanorot) added use.list state
|
|
214
|
+
|
|
215
|
+
#### 0.4.0 (14.05.2020)
|
|
216
|
+
* (misanorot) added warn circuit monitoring
|
|
217
|
+
|
|
218
|
+
#### 0.3.0 (04.05.2020)
|
|
219
|
+
* (misanorot) expaned speech output
|
|
220
|
+
|
|
221
|
+
#### 0.2.2 (30.04.2020)
|
|
222
|
+
* (misanorot) added alexa2 speak output
|
|
223
|
+
|
|
224
|
+
#### 0.2.0 (22.04.2020)
|
|
225
|
+
* (misanorot) added more states
|
|
226
|
+
|
|
227
|
+
#### 0.1.2 (19.04.2020)
|
|
228
|
+
* (misanorot) status.state activated
|
|
229
|
+
|
|
230
|
+
#### 0.1.1 (28.03.2020)
|
|
231
|
+
* (misanorot) added states and lists - fixed issues - translation
|
|
232
|
+
|
|
233
|
+
#### 0.1.0 ()
|
|
234
|
+
* (misanorot) add password for de/activation -- better logging
|
|
235
|
+
|
|
236
|
+
#### 0.0.9 (19.02.2020)
|
|
237
|
+
* (misanorot) add sayit
|
|
238
|
+
|
|
239
|
+
#### 0.0.8 (03.02.2020)
|
|
240
|
+
* (misanorot) initial release
|
|
241
|
+
|
|
242
|
+
## License
|
|
243
|
+
MIT License
|
|
244
|
+
|
|
245
|
+
Copyright (c) 2019-2021 misanorot <audi16v@gmx.de>
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
| ------- | ------------------ |
|
|
10
|
+
| 5.1.x | :white_check_mark: |
|
|
11
|
+
| 5.0.x | :x: |
|
|
12
|
+
| 4.0.x | :white_check_mark: |
|
|
13
|
+
| < 4.0 | :x: |
|
|
14
|
+
|
|
15
|
+
## Reporting a Vulnerability
|
|
16
|
+
|
|
17
|
+
Use this section to tell people how to report a vulnerability.
|
|
18
|
+
|
|
19
|
+
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
+
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
+
declined, etc.
|
package/admin/admin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare let systemDictionary: Record<string, Record<string, string>>;
|
package/admin/alarm.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|