Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
convert to heater-cooler
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Jun 7, 2020
1 parent f49d153 commit 6603c4e
Show file tree
Hide file tree
Showing 16 changed files with 2,428 additions and 2,420 deletions.
36 changes: 36 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"ignorePatterns": [
"dist"
],
"rules": {
"quotes": ["warn", "single"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"linebreak-style": ["warn", "unix"],
"semi": ["warn", "always"],
"comma-dangle": ["warn", "always-multiline"],
"dot-notation": "off",
"eqeqeq": "warn",
"curly": ["warn", "all"],
"brace-style": ["warn"],
"prefer-arrow-callback": ["warn"],
"max-len": ["warn", 160],
"no-console": ["warn"], // use the provided Homebridge log method instead
"no-non-null-assertion": ["off"],
"comma-spacing": "warn",
"no-multi-spaces": "warn",
"lines-between-class-members": ["warn", "always", {"exceptAfterSingleLine": true}],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
122 changes: 120 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,124 @@
node_modules
# Ignore compiled code
build
dist
.arduino-output
.vscode/c_cpp_properties.json
homebridge-daikin-esp8266-*.tgz
homebridge-daikin-esp8266-*.tgz

# ------------- Defaults ------------- #

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.rulers": [
160
],
"eslint.enable": true,
"[cpp]": {
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
Expand Down
27 changes: 27 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@
"type": "string",
"default": "Daikin AC",
"required": true
},
"oscillateDirection": {
"title": "Oscillate Direction",
"description": "Control the oscillate direction of the device 'Oscillate' option in the Home app. You can still use the other switch accessories to control the other swing mode direction.",
"type": "string",
"default": "horizontal+vertical",
"oneOf": [
{
"title": "Horizontal + Vertical",
"enum": [
"horizontal+vertical"
]
},
{
"title": "Vertical",
"enum": [
"vertical"
]
},
{
"title": "Horizontal",
"enum": [
"horizontal"
]
}
],
"required": true
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"watch": [
"plugin"
"src"
],
"ext": "ts",
"ignore": [],
"exec": "tsc && homebridge -I"
"exec": "tsc && homebridge -I -D",
"signal": "SIGTERM"
}
Loading

0 comments on commit 6603c4e

Please sign in to comment.