Skip to content

Commit

Permalink
Added hue and color temperature support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Vynohradov committed Oct 20, 2024
1 parent 50720b9 commit 6ff55f4
Show file tree
Hide file tree
Showing 36 changed files with 1,735 additions and 573 deletions.
19 changes: 11 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:@typescript-eslint/recommended", // uses the recommended rules from the @typescript-eslint/eslint-plugin
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
"sourceType": "module",
},
"ignorePatterns": [
"dist"
],
"ignorePatterns": ["dist"],
"rules": {
"quotes": ["warn", "single"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
Expand All @@ -28,13 +27,17 @@
"comma-spacing": ["error"],
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"no-trailing-spaces": ["warn"],
"lines-between-class-members": ["warn", "always", {"exceptAfterSingleLine": true}],
"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",
"@typescript-eslint/semi": ["warn"],
"@typescript-eslint/member-delimiter-style": ["warn"],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
"@typescript-eslint/no-explicit-any": "off",
},
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
6 changes: 2 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
"recommendations": ["dbaeumer.vscode-eslint"]
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [ 140 ],
"editor.rulers": [140],
"eslint.enable": true
}
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CHANGELOG

1.0.0 - Support all device types.
1.0.0 - Support all device types.
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,21 @@ This plugin seamlessly exposes all your SinricPro devices to HomeKit, enabling y

#### Following devices types are supported:

|Sinric Pro |HomeKit Accessory |Notes
|--- |--- |---
| `Switch` | Switch | -
| `Blinds` | WindowCovering | -
| `Dimmable Switch` | Lightbulb | -
| `Fan` | Fan | -
| `Garage Door` | GarageDoorOpener | -
| `Light` | Lightbulb | -
| `Lock` | LockMechanism | -
| `Thermostat` | Thermostat | -
| `TV` | Television | On and Off only.
| `AC Unit` | Thermostat | -
| `Temperature Sensor` | TemperatureSensor and HumiditySensor | -
| `Motion Sensor` | MotionSensor | -
| `Contact Sensor` | ContactSensor | -


| Sinric Pro | HomeKit Accessory | Notes |
| -------------------- | ------------------------------------ | ---------------- |
| `Switch` | Switch | - |
| `Blinds` | WindowCovering | - |
| `Dimmable Switch` | Lightbulb | - |
| `Fan` | Fan | - |
| `Garage Door` | GarageDoorOpener | - |
| `Light` | Lightbulb | - |
| `Lock` | LockMechanism | - |
| `Thermostat` | Thermostat | - |
| `TV` | Television | On and Off only. |
| `AC Unit` | Thermostat | - |
| `Temperature Sensor` | TemperatureSensor and HumiditySensor | - |
| `Motion Sensor` | MotionSensor | - |
| `Contact Sensor` | ContactSensor | - |

#### For Developments

Expand All @@ -46,6 +44,7 @@ This plugin seamlessly exposes all your SinricPro devices to HomeKit, enabling y
4. npm run watch

## Join the community!

Join us on our [Official Discord Server](https://discord.gg/rq9vcRcSqA)!

### Limitations
Expand Down
2 changes: 1 addition & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
}
}
}
}
}
6 changes: 2 additions & 4 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"watch": [
"src"
],
"watch": ["src"],
"ext": "ts",
"ignore": [],
"exec": "tsc && homebridge -I -D",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
}
}
}
37 changes: 34 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "SinricPro",
"name": "homebridge-sinricpro",
"version": "1.1.2",
"version": "1.1.3",
"description": "Sinric Pro devices support for HomeKit.",
"license": "CC-BY-SA",
"repository": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"smartthings",
"esp32",
"esp8266",
"homebridge-plugin"
"homebridge-plugin"
],
"dependencies": {
"axios": "^1.6.2",
Expand All @@ -41,8 +41,10 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.1.0",
"homebridge": "^1.6.0",
"nodemon": "^2.0.22",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
Expand Down
Loading

0 comments on commit 6ff55f4

Please sign in to comment.