Skip to content

Commit

Permalink
add Onyx support
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Jan 13, 2025
1 parent f2f860e commit 2193774
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 42 deletions.
4 changes: 2 additions & 2 deletions drivers/heatzy/device.mts
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ export default class HeatzyDevice extends Homey.Device {
case 'onoff.window_detection':
return { window_switch: Number(value) }
case 'target_temperature':
return getTargetTemperature(product, 'cft_temp', value as number)
return getTargetTemperature(product, Mode.cft, value as number)
case 'target_temperature.eco':
return getTargetTemperature(product, 'eco_temp', value as number)
return getTargetTemperature(product, Mode.eco, value as number)
case 'thermostat_mode':
return {
mode: value === Mode.stop ? this.#offValue : (value as Mode),
Expand Down
70 changes: 36 additions & 34 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@
"publish": "homey app publish"
},
"dependencies": {
"@olivierzal/heatzy-api": "^4.15.0",
"core-js": "^3.39.0",
"@olivierzal/heatzy-api": "^5.0.0",
"core-js": "^3.40.0",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@eslint/js": "^9.18.0",
"@eslint/json": "^0.9.0",
"@eslint/markdown": "^6.2.1",
"@helljs/eslint-import-resolver-x": "^1.1.0",
"@html-eslint/eslint-plugin": "^0.32.0",
"@html-eslint/parser": "^0.32.0",
"@stylistic/eslint-plugin": "^2.12.1",
"@stylistic/eslint-plugin": "^2.13.0",
"@types/homey": "npm:homey-apps-sdk-v3-types@^0.3.10",
"@types/node": "^22.10.5",
"eslint": "^9.17.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-package-json": "^0.19.0",
"eslint-plugin-perfectionist": "^4.6.0",
"jsonc-eslint-parser": "^2.4.0",
"prettier": "^3.4.2",
"prettier-plugin-packagejson": "^2.5.6",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1"
}
}

0 comments on commit 2193774

Please sign in to comment.