Skip to content

Commit dc96115

Browse files
committed
initial commit
0 parents  commit dc96115

29 files changed

+6798
-0
lines changed

.create-adapter.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"cli": true,
3+
"target": "directory",
4+
"adapterName": "tedee",
5+
"title": "Tedee",
6+
"description": "Adapter for Tedee Locks",
7+
"keywords": ["tedee"],
8+
"expert": "yes",
9+
"features": ["adapter"],
10+
"adminFeatures": [],
11+
"type": "hardware",
12+
"startMode": "daemon",
13+
"connectionType": "cloud",
14+
"dataSource": "poll",
15+
"connectionIndicator": "yes",
16+
"language": "JavaScript",
17+
"nodeVersion": "16",
18+
"adminUi": "json",
19+
"tools": ["ESLint", "type checking", "Prettier"],
20+
"releaseScript": "yes",
21+
"devServer": "no",
22+
"indentation": "Space (4)",
23+
"quotes": "single",
24+
"es6class": "yes",
25+
"authorName": "TA2k",
26+
"authorGithub": "TA2k",
27+
"authorEmail": "tombox2020@gmail.com",
28+
"gitRemoteProtocol": "HTTPS",
29+
"gitCommit": "no",
30+
"defaultBranch": "main",
31+
"license": "MIT License",
32+
"dependabot": "no",
33+
"creatorVersion": "2.5.0"
34+
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.prettierrc.js
2+
**/.eslintrc.js
3+
admin/words.js

.eslintrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es6": true,
5+
"node": true,
6+
"mocha": true
7+
},
8+
"extends": ["eslint:recommended"],
9+
"plugins": [],
10+
"rules": {
11+
"indent": [
12+
"error",
13+
2,
14+
{
15+
"SwitchCase": 1
16+
}
17+
],
18+
"no-console": "off",
19+
"no-unused-vars": [
20+
"error",
21+
{
22+
"ignoreRestSiblings": true,
23+
"argsIgnorePattern": "^_"
24+
}
25+
],
26+
"no-var": "error",
27+
"no-trailing-spaces": "error",
28+
"prefer-const": "error",
29+
"quotes": [
30+
"error",
31+
"single",
32+
{
33+
"avoidEscape": true,
34+
"allowTemplateLiterals": true
35+
}
36+
],
37+
"semi": ["error", "always"]
38+
},
39+
"parserOptions": {
40+
"ecmaVersion": 2020
41+
}
42+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Test and Release
2+
3+
# Run this job on all pushes and pull requests
4+
# as well as tags with a semantic version
5+
on:
6+
push:
7+
branches:
8+
- "main"
9+
tags:
10+
# normal versions
11+
- "v[0-9]+.[0-9]+.[0-9]+"
12+
# pre-releases
13+
- "v[0-9]+.[0-9]+.[0-9]+-**"
14+
pull_request: {}
15+
16+
# Cancel previous PR/branch runs when a new commit is pushed
17+
concurrency:
18+
group: ${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
# Performs quick checks before the expensive test runs
23+
check-and-lint:
24+
if: contains(github.event.head_commit.message, '[skip ci]') == false
25+
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- uses: ioBroker/testing-action-check@v1
30+
with:
31+
node-version: '18.x'
32+
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
33+
# install-command: 'npm install'
34+
lint: true
35+
36+
# Runs adapter tests on all supported node versions and OSes
37+
adapter-tests:
38+
if: contains(github.event.head_commit.message, '[skip ci]') == false
39+
40+
runs-on: ${{ matrix.os }}
41+
strategy:
42+
matrix:
43+
node-version: [16.x, 18.x, 20.x]
44+
os: [ubuntu-latest, windows-latest, macos-latest]
45+
46+
steps:
47+
- uses: ioBroker/testing-action-adapter@v1
48+
with:
49+
node-version: ${{ matrix.node-version }}
50+
os: ${{ matrix.os }}
51+
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
52+
# install-command: 'npm install'
53+
54+
# TODO: To enable automatic npm releases, create a token on npmjs.org
55+
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
56+
# Then uncomment the following block:
57+
58+
# # Deploys the final package to NPM
59+
# deploy:
60+
# needs: [check-and-lint, adapter-tests]
61+
#
62+
# # Trigger this step only when a commit on any branch is tagged with a version number
63+
# if: |
64+
# contains(github.event.head_commit.message, '[skip ci]') == false &&
65+
# github.event_name == 'push' &&
66+
# startsWith(github.ref, 'refs/tags/v')
67+
#
68+
# runs-on: ubuntu-latest
69+
#
70+
# # Write permissions are required to create Github releases
71+
# permissions:
72+
# contents: write
73+
#
74+
# steps:
75+
# - uses: ioBroker/testing-action-deploy@v1
76+
# with:
77+
# node-version: '18.x'
78+
# # Uncomment the following line if your adapter cannot be installed using 'npm ci'
79+
# # install-command: 'npm install'
80+
# npm-token: ${{ secrets.NPM_TOKEN }}
81+
# github-token: ${{ secrets.GITHUB_TOKEN }}
82+
#
83+
# # When using Sentry for error reporting, Sentry can be informed about new releases
84+
# # To enable create a API-Token in Sentry (User settings, API keys)
85+
# # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
86+
# # Then uncomment and customize the following block:
87+
# sentry: true
88+
# sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
89+
# sentry-project: "iobroker-tedee"
90+
# sentry-version-prefix: "iobroker.tedee"
91+
# # If your sentry project is linked to a GitHub repository, you can enable the following option
92+
# # sentry-github-integration: true

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# No dot-directories except github/vscode
2+
.*/
3+
!.vscode/
4+
!.github/
5+
6+
*.code-workspace
7+
node_modules
8+
nbproject
9+
10+
# npm package files
11+
iobroker.*.tgz
12+
13+
Thumbs.db
14+
15+
# i18n intermediate files
16+
admin/i18n/flat.txt
17+
admin/i18n/*/flat.txt
18+
.DS_Store

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
package-lock.json

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 120,
6+
useTabs: false,
7+
tabWidth: 2,
8+
endOfLine: 'lf',
9+
};

.releaseconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["iobroker", "license", "manual-review"]
3+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"eslint.enable": true,
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"json.schemas": [
6+
{
7+
"fileMatch": ["io-package.json"],
8+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.js-controller/master/schemas/io-package.json"
9+
},
10+
{
11+
"fileMatch": ["admin/jsonConfig.json", "admin/jsonCustom.json", "admin/jsonTab.json"],
12+
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
13+
}
14+
]
15+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 TA2k <tombox2020@gmail.com>
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.

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
![Logo](admin/tedee.png)
2+
3+
# ioBroker.tedee
4+
5+
[![NPM version](https://img.shields.io/npm/v/iobroker.tedee.svg)](https://www.npmjs.com/package/iobroker.tedee)
6+
[![Downloads](https://img.shields.io/npm/dm/iobroker.tedee.svg)](https://www.npmjs.com/package/iobroker.tedee)
7+
![Number of Installations](https://iobroker.live/badges/tedee-installed.svg)
8+
![Current version in stable repository](https://iobroker.live/badges/tedee-stable.svg)
9+
10+
[![NPM](https://nodei.co/npm/iobroker.tedee.png?downloads=true)](https://nodei.co/npm/iobroker.tedee/)
11+
12+
**Tests:** ![Test and Release](https://github.com/TA2k/ioBroker.tedee/workflows/Test%20and%20Release/badge.svg)
13+
14+
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
15+
16+
## tedee adapter for ioBroker
17+
18+
Adapter for Tedee Locks
19+
20+
## Usage
21+
22+
## Changelog
23+
24+
<!--
25+
Placeholder for the next version (at the beginning of the line):
26+
### **WORK IN PROGRESS**
27+
-->
28+
29+
### **WORK IN PROGRESS**
30+
31+
- (TA2k) initial release
32+
33+
## License
34+
35+
MIT License
36+
37+
Copyright (c) 2023 TA2k <tombox2020@gmail.com>
38+
39+
Permission is hereby granted, free of charge, to any person obtaining a copy
40+
of this software and associated documentation files (the "Software"), to deal
41+
in the Software without restriction, including without limitation the rights
42+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43+
copies of the Software, and to permit persons to whom the Software is
44+
furnished to do so, subject to the following conditions:
45+
46+
The above copyright notice and this permission notice shall be included in all
47+
copies or substantial portions of the Software.
48+
49+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55+
SOFTWARE.

0 commit comments

Comments
 (0)