@homebridge-plugins/homebridge-smarthq 0.4.0 → 0.4.2

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.
Files changed (77) hide show
  1. package/.github/ISSUE_TEMPLATE/config.yml +1 -1
  2. package/.github/copilot-instructions.md +90 -0
  3. package/.github/scripts/branch-helper.sh +41 -0
  4. package/.github/scripts/npm-version-script-esm-auto.js +207 -0
  5. package/.github/workflows/beta-release.yml +1 -1
  6. package/.github/workflows/release.yml +56 -16
  7. package/CHANGELOG.md +84 -0
  8. package/README.md +15 -0
  9. package/dist/devices/OpalIceMaker/Managers/OpalProgressSvcManager.d.ts +1 -1
  10. package/dist/devices/OpalIceMaker/Managers/OpalProgressSvcManager.d.ts.map +1 -1
  11. package/dist/devices/OpalIceMaker/Managers/OpalProgressSvcManager.js +9 -5
  12. package/dist/devices/OpalIceMaker/Managers/OpalProgressSvcManager.js.map +1 -1
  13. package/dist/devices/airConditioner.d.ts +1 -0
  14. package/dist/devices/airConditioner.d.ts.map +1 -1
  15. package/dist/devices/airConditioner.js +38 -7
  16. package/dist/devices/airConditioner.js.map +1 -1
  17. package/dist/devices/hood.d.ts +34 -0
  18. package/dist/devices/hood.d.ts.map +1 -0
  19. package/dist/devices/hood.js +306 -0
  20. package/dist/devices/hood.js.map +1 -0
  21. package/dist/getAccessToken.d.ts.map +1 -1
  22. package/dist/getAccessToken.js +6 -0
  23. package/dist/getAccessToken.js.map +1 -1
  24. package/dist/platform.d.ts +1 -0
  25. package/dist/platform.d.ts.map +1 -1
  26. package/dist/platform.js +48 -0
  27. package/dist/platform.js.map +1 -1
  28. package/dist/platform.test.d.ts +2 -0
  29. package/dist/platform.test.d.ts.map +1 -0
  30. package/dist/platform.test.js +80 -0
  31. package/dist/platform.test.js.map +1 -0
  32. package/dist/settings.d.ts +2 -0
  33. package/dist/settings.d.ts.map +1 -1
  34. package/dist/settings.js +3 -0
  35. package/dist/settings.js.map +1 -1
  36. package/docs/assets/highlight.css +7 -0
  37. package/docs/assets/main.js +5 -5
  38. package/docs/assets/navigation.js +1 -0
  39. package/docs/assets/search.js +1 -0
  40. package/docs/assets/style.css +251 -229
  41. package/docs/classes/SmartHQPlatform.html +45 -56
  42. package/docs/hierarchy.html +1 -0
  43. package/docs/index.html +22 -12
  44. package/docs/interfaces/DeviceOptions.html +2 -3
  45. package/docs/interfaces/SmartHQPlatformConfig.html +6 -17
  46. package/docs/interfaces/SmartHqContext.html +3 -4
  47. package/docs/interfaces/SmartHqERDResponse.html +7 -8
  48. package/docs/interfaces/credentials.html +3 -4
  49. package/docs/interfaces/devicesConfig.html +7 -8
  50. package/docs/interfaces/options.html +7 -8
  51. package/docs/media/copilot-instructions.md +90 -0
  52. package/docs/modules.html +1 -2
  53. package/docs/variables/API_URL.html +1 -2
  54. package/docs/variables/ERD_CODES.html +1 -2
  55. package/docs/variables/ERD_TYPES.html +1 -2
  56. package/docs/variables/KEEPALIVE_TIMEOUT.html +1 -2
  57. package/docs/variables/LOGIN_URL.html +2 -3
  58. package/docs/variables/OAUTH2_CLIENT_ID.html +1 -2
  59. package/docs/variables/OAUTH2_CLIENT_SECRET.html +1 -2
  60. package/docs/variables/OAUTH2_REDIRECT_URI.html +1 -2
  61. package/docs/variables/PLATFORM_NAME.html +2 -3
  62. package/docs/variables/PLUGIN_NAME.html +2 -3
  63. package/docs/variables/SECURE_URL.html +2 -3
  64. package/docs/variables/default.html +1 -0
  65. package/package.json +18 -26
  66. package/typedoc.json +0 -4
  67. package/vitest.config.ts +6 -5
  68. package/.github/workflows/build.yml +0 -18
  69. package/.github/workflows/changerelease.yml +0 -11
  70. package/.github/workflows/labeler.yml +0 -9
  71. package/.github/workflows/release-drafter.yml +0 -14
  72. package/docs/assets/dmt/dmt-component-data.js +0 -1
  73. package/docs/assets/dmt/dmt-components.css +0 -20
  74. package/docs/assets/dmt/dmt-components.js +0 -67
  75. package/docs/assets/dmt/dmt-search.cmp +0 -0
  76. package/docs/assets/dmt/dmt-theme.css +0 -1
  77. package/docs/functions/default.html +0 -2
@@ -1,4 +1,4 @@
1
- blank_issues_enabled: false
1
+ blank_issues_enabled: true
2
2
  contact_links:
3
3
  - name: Homebridge Discord Channel for SmartHQ
4
4
  url: https://discord.gg/8fpZA4S
@@ -0,0 +1,90 @@
1
+ # GitHub Copilot Instructions for homebridge-smarthq
2
+
3
+ ## Branch Management and PR Workflow
4
+
5
+ ### Current Project State
6
+
7
+ - **Stable branch**: `latest` (version 0.4.0)
8
+ - **Active beta branch**: `beta-0.5.0` (currently at v0.5.0-beta.4)
9
+ - **Main development**: All new features and non-critical fixes should target `beta-0.5.0`
10
+ - **Critical patches**: For urgent fixes to stable release, may target new `beta-0.4.x` branch
11
+
12
+ ### Branch Targeting Requirements
13
+
14
+ All pull requests **MUST** be directed to a beta branch first, never directly to the main branch (`latest`). This ensures proper testing and gradual release management.
15
+
16
+ ### Beta Branch Creation
17
+
18
+ If no appropriate beta branch exists, create one based on the next possible version using semantic versioning:
19
+
20
+ 1. **Current stable version**: Check `package.json` in the `latest` branch for the current stable version (currently 0.4.0)
21
+ 2. **Current beta version**: Check if `beta-0.5.0` exists and is active (currently has v0.5.0-beta.4)
22
+ 3. **Determine next version** based on change type:
23
+ - **Patch** (bug fixes): If working on 0.4.x patches → create `beta-0.4.1`
24
+ - **Minor** (new features): Use existing `beta-0.5.0` or create next minor version
25
+ - **Major** (breaking changes): 1.0.0 → create `beta-1.0.0`
26
+
27
+ 4. **Create beta branch** from the latest stable branch (if needed):
28
+ ```bash
29
+ git fetch origin
30
+ git checkout latest
31
+ git pull origin latest
32
+ git checkout -b beta-X.Y.Z
33
+ git push origin beta-X.Y.Z
34
+ ```
35
+
36
+ **Current Status**: `beta-0.5.0` branch exists and is active with several beta releases (v0.5.0-beta.1 through v0.5.0-beta.4)
37
+
38
+ ### Required Labels Before Assignment
39
+
40
+ Before assigning any issue to Copilot, the following labels **MUST** be set to determine the semantic version increment:
41
+
42
+ - **`patch`** - For bug fixes, security patches, documentation updates, and other non-feature changes
43
+ - **`minor`** - For new features, enhancements, and backwards-compatible additions
44
+ - **`major`** - For breaking changes, API changes, and backwards-incompatible modifications
45
+
46
+ ### PR Workflow
47
+
48
+ 1. **Check for appropriate beta branch**: Look for existing beta branches that match the intended version
49
+ 2. **Create beta branch if needed**: If no appropriate beta branch exists, create one as described above
50
+ 3. **Target the beta branch**: Always target PRs to the beta branch, not `latest`
51
+ 4. **Use semantic versioning**: Ensure the target beta branch version aligns with the change type (patch/minor/major)
52
+
53
+ ### Branch Naming Convention
54
+
55
+ - Main development branch: `latest`
56
+ - Beta branches: `beta-X.Y.Z` (e.g., `beta-0.5.0`, `beta-0.4.1`, `beta-1.0.0`)
57
+ - Feature branches: Follow standard naming (e.g., `feature/add-support-for-xyz`, `fix/bug-description`)
58
+
59
+ ### Release Process
60
+
61
+ 1. **Beta releases**: PRs merge to beta branches → trigger beta release workflow
62
+ 2. **Stable releases**: Beta branches merge to `latest` → trigger main release workflow
63
+
64
+ ### Examples
65
+
66
+ #### For a Bug Fix (patch):
67
+ - Label: `patch`
68
+ - Target branch: `beta-0.4.1` (for patches to stable 0.4.0) or `beta-0.5.0` (for patches to upcoming 0.5.0)
69
+ - If targeting patches to stable release, create `beta-0.4.1` from `latest`
70
+ - If targeting current development, use existing `beta-0.5.0`
71
+
72
+ #### For a New Feature (minor):
73
+ - Label: `minor`
74
+ - Target branch: `beta-0.5.0` (currently active beta branch)
75
+ - Use existing `beta-0.5.0` branch which is actively receiving minor updates
76
+
77
+ #### For Breaking Changes (major):
78
+ - Label: `major`
79
+ - Target branch: `beta-1.0.0` (if current beta is 0.5.0)
80
+ - Create `beta-1.0.0` from current `beta-0.5.0` or `latest` as appropriate
81
+
82
+ ### Validation
83
+
84
+ Before creating any PR, ensure:
85
+ - [ ] Appropriate label (patch/minor/major) is set on the issue
86
+ - [ ] Target beta branch exists or has been created
87
+ - [ ] Beta branch version matches the semantic version implied by the label
88
+ - [ ] All changes are focused and minimal for the specific issue being addressed
89
+
90
+ This workflow ensures proper version management, thorough testing through beta releases, and maintains stability of the main codebase.
@@ -0,0 +1,41 @@
1
+ #!/bin/bash
2
+
3
+ # Branch Target Helper for homebridge-smarthq
4
+ # This script helps determine which beta branch to target based on change type
5
+
6
+ echo "🏠 Homebridge SmartHQ - Branch Target Helper"
7
+ echo "==========================================="
8
+ echo
9
+
10
+ # Ensure we have the latest remote info
11
+ git fetch origin >/dev/null 2>&1
12
+
13
+ # Get current versions
14
+ STABLE_VERSION=$(git show latest:package.json 2>/dev/null | grep '"version"' | cut -d'"' -f4)
15
+ BETA_BRANCHES=$(git branch -r | grep "origin/beta-" | sed 's/.*origin\///' | sort -V)
16
+
17
+ echo "📊 Current State:"
18
+ echo " Stable version (latest): $STABLE_VERSION"
19
+ echo " Available beta branches:"
20
+ if [ -z "$BETA_BRANCHES" ]; then
21
+ echo " - beta-0.5.0 (active development - v0.5.0-beta.4)"
22
+ else
23
+ for branch in $BETA_BRANCHES; do
24
+ echo " - $branch"
25
+ done
26
+ fi
27
+ echo
28
+
29
+ echo "🎯 Branch Targeting Guide:"
30
+ echo " 🐛 Bug fixes (patch): beta-0.4.1 (patches) or beta-0.5.0 (development)"
31
+ echo " ✨ New features (minor): beta-0.5.0 (active development)"
32
+ echo " 💥 Breaking changes: beta-1.0.0 (create if needed)"
33
+ echo
34
+
35
+ echo "📋 Required Labels:"
36
+ echo " - patch: Bug fixes, security patches, documentation"
37
+ echo " - minor: New features, enhancements"
38
+ echo " - major: Breaking changes, API changes"
39
+ echo
40
+
41
+ echo "⚠️ Remember: ALL PRs must target beta branches, never 'latest' directly!"
@@ -0,0 +1,207 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Standalone ESM implementation — self-contained so this file can be copied
5
+ * into other repos without pulling any other files.
6
+ */
7
+
8
+ import assert from 'node:assert'
9
+ import child_process from 'node:child_process'
10
+ import fs from 'node:fs'
11
+ import process from 'node:process'
12
+ // Minimal, in-file semver utilities used by this script.
13
+ // This avoids an external dependency so the script can run in environments
14
+ // where `semver` isn't installed.
15
+ const semver = {
16
+ // Very small validation: match major.minor.patch with optional prerelease/build
17
+ valid(v) {
18
+ return /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/.test(v)
19
+ },
20
+ // Return prerelease identifiers array or null
21
+ prerelease(v) {
22
+ const m = v.match(/^\d+\.\d+\.\d+-(.+)$/)
23
+ return m ? m[1].split('.') : null
24
+ },
25
+ // Compare two semver strings in reverse order (for rcompare use)
26
+ rcompare(a, b) {
27
+ // Use standard semver precedence rules for major.minor.patch; ignore prerelease complexity except that prerelease is lower than release
28
+ const pa = a.split('-')
29
+ const pb = b.split('-')
30
+ const aCore = pa[0].split('.').map(Number)
31
+ const bCore = pb[0].split('.').map(Number)
32
+ for (let i = 0; i < 3; i++) {
33
+ if (aCore[i] > bCore[i]) return -1
34
+ if (aCore[i] < bCore[i]) return 1
35
+ }
36
+ // equal core; releases (no prerelease) are greater than prerelease
37
+ if (pa.length === 1 && pb.length > 1) return -1
38
+ if (pa.length > 1 && pb.length === 1) return 1
39
+ // both same prerelease status: compare as strings
40
+ if (a > b) return -1
41
+ if (a < b) return 1
42
+ return 0
43
+ },
44
+ // Increment version by 'major'|'minor'|'patch'
45
+ inc(v, level) {
46
+ if (!this.valid(v)) throw new Error(`Invalid semver passed to inc: ${v}`)
47
+ // strip prerelease/build
48
+ const core = v.split('-')[0].split('+')[0]
49
+ const parts = core.split('.').map(Number)
50
+ switch (level) {
51
+ case 'major':
52
+ parts[0] += 1
53
+ parts[1] = 0
54
+ parts[2] = 0
55
+ break
56
+ case 'minor':
57
+ parts[1] += 1
58
+ parts[2] = 0
59
+ break
60
+ case 'patch':
61
+ default:
62
+ parts[2] += 1
63
+ break
64
+ }
65
+ return parts.join('.')
66
+ }
67
+ }
68
+
69
+ const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
70
+
71
+ // Load package.json
72
+ const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
73
+
74
+ const refArgument = process.argv[2]
75
+ const tagArgument = process.argv[3] || 'latest'
76
+ const prLabel = process.argv[4] || null // optional PR label: major, minor, patch
77
+
78
+ if (!refArgument) {
79
+ console.error('ref argument is missing')
80
+ console.error('Usage: npm-version-script-esm.js <ref> [tag] [pr_label]')
81
+ process.exit(1)
82
+ }
83
+
84
+ /**
85
+ * Queries the NPM registry for the latest version for the provided base version and tag.
86
+ * If the tag is latest, then the base version is returned if it exists. For other tags, the latest
87
+ * version found for that base version and tag is returned.
88
+ * @param baseVersion The base version to query for, e.g. 2.0.0
89
+ * @param tag The tag to query for, e.g. beta or latest
90
+ * @returns {string} Returns the version, or '' if not found
91
+ */
92
+ function getTagVersionFromNpm(baseVersion, tag) {
93
+ try {
94
+ return JSON.parse(child_process.execSync(`npm info ${packageJSON.name} versions --json`).toString('utf8').trim())
95
+ .filter(v => (tag === 'latest' ? v === baseVersion : v.startsWith(`${baseVersion}-${tag}.`)))
96
+ .reduce((_, current) => current, '')
97
+ } catch (e) {
98
+ console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`, e)
99
+ // throw e;
100
+ return ''
101
+ }
102
+ }
103
+
104
+ function getLatestStableVersionFromNpm() {
105
+ try {
106
+ const versions = JSON.parse(child_process.execSync(`npm info ${packageJSON.name} versions --json`).toString('utf8').trim())
107
+ if (!Array.isArray(versions) || versions.length === 0) return ''
108
+
109
+ // Only consider stable semver versions (no prerelease)
110
+ const stable = versions.filter(v => semver.valid(v) && !semver.prerelease(v))
111
+ if (stable.length === 0) return ''
112
+
113
+ // Sort descending and return the highest
114
+ const sorted = stable.sort(semver.rcompare)
115
+ return sorted[0]
116
+ } catch (e) {
117
+ console.error('Failed to query the npm registry for published versions', e)
118
+ return ''
119
+ }
120
+ }
121
+
122
+ function desiredTargetVersion(ref) {
123
+ // ref is a GitHub action ref string
124
+ if (ref.startsWith('refs/pull/')) {
125
+ throw new Error('The version script was executed inside a PR!')
126
+ }
127
+
128
+ assert(ref.startsWith('refs/heads/'))
129
+ const branchName = ref.slice('refs/heads/'.length)
130
+
131
+ const results = branchName.match(BRANCH_VERSION_PATTERN)
132
+ if (results !== null) {
133
+ if (results[1].toLowerCase() !== tagArgument.toLowerCase()) {
134
+ console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
135
+ }
136
+
137
+ return results[2]
138
+ }
139
+
140
+ if (branchName === 'latest') {
141
+ // For latest branch, start with package.json version as base
142
+ return packageJSON.version
143
+ }
144
+
145
+ throw new Error(`Malformed branch name for ref: ${ref}. Must be beta-x.x.x, alpha-x.x.x, or 'latest'`)
146
+ }
147
+
148
+ function bumpVersion(baseVersion, prLabel) {
149
+ const label = (prLabel || 'patch').toLowerCase()
150
+ if (!semver.valid(baseVersion)) {
151
+ throw new Error(`Invalid base version passed to bumpVersion: ${baseVersion}`)
152
+ }
153
+
154
+ switch (label) {
155
+ case 'major':
156
+ return semver.inc(baseVersion, 'major')
157
+ case 'minor':
158
+ return semver.inc(baseVersion, 'minor')
159
+ case 'patch':
160
+ default:
161
+ return semver.inc(baseVersion, 'patch')
162
+ }
163
+ }
164
+
165
+ const baseVersion = desiredTargetVersion(refArgument)
166
+ let publishTag = baseVersion
167
+
168
+ if (refArgument.includes('latest')) {
169
+ if (prLabel) {
170
+ // For latest branch when a PR label is provided, bump according to PR label
171
+ publishTag = bumpVersion(baseVersion, prLabel)
172
+ } else {
173
+ // No PR label: determine next version based on the highest published stable version
174
+ const latestPublishedStable = getLatestStableVersionFromNpm()
175
+ if (latestPublishedStable) {
176
+ console.warn(`Latest published stable version is ${latestPublishedStable}; bumping patch`)
177
+ publishTag = bumpVersion(latestPublishedStable, 'patch')
178
+ } else {
179
+ console.warn('No published stable versions found; bumping package.json version patch')
180
+ publishTag = bumpVersion(baseVersion, 'patch')
181
+ }
182
+ }
183
+ } else {
184
+ // For alpha/beta, query npm for latest
185
+ const latestReleasedVersion = getTagVersionFromNpm(baseVersion, tagArgument)
186
+ if (latestReleasedVersion) {
187
+ console.warn(`Latest published version for ${baseVersion} with tag ${tagArgument} is ${latestReleasedVersion}`)
188
+ publishTag = latestReleasedVersion
189
+ } else {
190
+ console.warn(`No published versions for ${baseVersion} with tag ${tagArgument}`)
191
+ }
192
+ }
193
+
194
+ if (packageJSON.version !== publishTag) {
195
+ console.warn(`Updating version in package.json from ${packageJSON.version} to ${publishTag}`)
196
+ packageJSON.version = publishTag
197
+ fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
198
+
199
+ // perform the same change to the package-lock.json
200
+ const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
201
+ packageLockJSON.version = publishTag
202
+ fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))
203
+ } else {
204
+ console.warn(`Version in package.json is already ${packageJSON.version}`)
205
+ }
206
+
207
+ console.log(publishTag)
@@ -52,4 +52,4 @@ jobs:
52
52
  Version `v${{ needs.publish.outputs.NPM_VERSION }}`
53
53
  url: "https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
54
54
  secrets:
55
- DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
55
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
@@ -1,35 +1,75 @@
1
- name: Release
1
+ name: Unified Release
2
2
 
3
3
  on:
4
- release:
5
- types: [published]
4
+ push:
5
+ branches:
6
+ #- "alpha-*"
7
+ #- "beta-*"
8
+ - latest
9
+ workflow_dispatch:
6
10
 
7
11
  jobs:
8
- build_and_test:
9
- uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
12
+ # 1️⃣ Determine release type, ESM status, and branch name
13
+ determine-release-type:
14
+ uses: homebridge/.github/.github/workflows/determine-release-type.yml@latest
10
15
  with:
11
- enable_coverage: false
16
+ ref_name: ${{ github.ref_name }}
17
+
18
+ # 2️⃣ Update version and changelog using the scripts
19
+ update-version:
20
+ needs: determine-release-type
21
+ uses: homebridge/.github/.github/workflows/update-version.yml@latest
22
+ with:
23
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
24
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
12
25
  secrets:
13
- token: ${{ secrets.GITHUB_TOKEN }}
26
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14
27
 
15
- publish:
16
- needs: build_and_test
17
- if: ${{ github.repository == 'homebridge-plugins/homebridge-smarthq' }}
28
+ # 3️⃣ Publish to NPM and create GitHub release
29
+ publish-release:
30
+ needs: [determine-release-type, update-version]
18
31
  permissions:
19
32
  id-token: write
20
- uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
33
+ contents: write
34
+ uses: homebridge/.github/.github/workflows/publish-release.yml@latest
35
+ with:
36
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
37
+ version: ${{ needs.update-version.outputs.version }}
38
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
39
+ secrets:
40
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+
42
+ # 4️⃣ Promote branch if this is a prerelease (alpha/beta)
43
+ promote-branch:
44
+ needs: [determine-release-type, publish-release]
45
+ if: ${{ needs.determine-release-type.outputs.release_type != 'latest' && needs.determine-release-type.outputs.release_type != 'skip' }}
46
+ uses: homebridge/.github/.github/workflows/promote-branch.yml@latest
47
+ with:
48
+ branch_name: ${{ needs.determine-release-type.outputs.branch_name }}
49
+ release_type: ${{ needs.determine-release-type.outputs.release_type }}
50
+ is_esm: ${{ needs.determine-release-type.outputs.is_esm == 'true' }}
21
51
  secrets:
22
- npm_auth_token: ${{ secrets.npm_token }}
52
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+
54
+ # 5️⃣ Notify if any previous job fails
55
+ workflow-failure:
56
+ if: ${{ failure() }}
57
+ needs: [determine-release-type, update-version, publish-release, promote-branch]
58
+ uses: homebridge/.github/.github/workflows/report-failure.yml@latest
59
+ with:
60
+ workflow_name: ${{ github.workflow }}
61
+ job_name: ${{ github.job }}
62
+ run_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
23
63
 
64
+ # 6️⃣ Post to Discord
24
65
  github-releases-to-discord:
25
66
  name: Discord Webhooks
26
- needs: [build_and_test,publish]
27
- if: ${{ github.repository == 'homebridge-plugins/homebridge-smarthq' }}
67
+ needs: [determine-release-type, update-version, publish-release]
28
68
  uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
29
69
  with:
30
70
  title: "SmartHQ Release"
31
71
  description: |
32
- Version `v${{ needs.publish.outputs.NPM_VERSION }}`
33
- url: "https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
72
+ Version `v${{ needs.update-version.outputs.version }}`
73
+ url: "https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v${{ needs.update-version.outputs.version }}"
34
74
  secrets:
35
75
  DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,90 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
4
4
 
5
+ ## [0.4.2](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.1...v0.4.2) (2025-11-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * support hood ([#57](https://github.com/homebridge-plugins/homebridge-smarthq/issues/57)) ([6a98928](https://github.com/homebridge-plugins/homebridge-smarthq/commit/6a989281dcac32d8c47fd78a2eb7bcd76c67c0b5))
11
+
12
+
13
+
14
+ ## [0.4.1](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.0...v0.4.1) (2025-09-18)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **air conditioner:** fix temperature setting and update switch display names ([#38](https://github.com/homebridge-plugins/homebridge-smarthq/issues/38)) ([1675205](https://github.com/homebridge-plugins/homebridge-smarthq/commit/16752059c93d6a5b26b782f2b42246e622b4b830))
20
+ * **air conditioner:** preserve decimal precision when converting Celsius to Fahrenheit ([#40](https://github.com/homebridge-plugins/homebridge-smarthq/issues/40)) ([38c8285](https://github.com/homebridge-plugins/homebridge-smarthq/commit/38c82852015d8ea0ceb0f4dd4b9ddf0622f57963))
21
+ * **air conditioner:** report all operating modes off when unit is off ([#42](https://github.com/homebridge-plugins/homebridge-smarthq/issues/42)) ([d44ebe3](https://github.com/homebridge-plugins/homebridge-smarthq/commit/d44ebe34590a2da6645e30db0db269e1dbbe4f3b))
22
+
23
+
24
+ ### Features
25
+
26
+ * add Portable AC as supported device ([#45](https://github.com/homebridge-plugins/homebridge-smarthq/issues/45)) ([50d83b1](https://github.com/homebridge-plugins/homebridge-smarthq/commit/50d83b1e003d8d238485459a5c882f357e1c61fb))
27
+
28
+
29
+
30
+ # [0.4.0](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v0.4.0) (2025-06-27)
31
+
32
+
33
+
34
+ # 0.2.0 (2025-02-23)
35
+
36
+ ## [0.4.2](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.1...v0.4.2) (2025-11-20)
37
+
38
+
39
+ ### Features
40
+
41
+ * support hood ([#57](https://github.com/homebridge-plugins/homebridge-smarthq/issues/57)) ([8f9cb9e](https://github.com/homebridge-plugins/homebridge-smarthq/commit/8f9cb9e66c5b911093f45d6ab530a68cd75177ac))
42
+
43
+
44
+
45
+ ## [0.4.1](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.0...v0.4.1) (2025-09-18)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * **air conditioner:** fix temperature setting and update switch display names ([#38](https://github.com/homebridge-plugins/homebridge-smarthq/issues/38)) ([1675205](https://github.com/homebridge-plugins/homebridge-smarthq/commit/16752059c93d6a5b26b782f2b42246e622b4b830))
51
+ * **air conditioner:** preserve decimal precision when converting Celsius to Fahrenheit ([#40](https://github.com/homebridge-plugins/homebridge-smarthq/issues/40)) ([38c8285](https://github.com/homebridge-plugins/homebridge-smarthq/commit/38c82852015d8ea0ceb0f4dd4b9ddf0622f57963))
52
+ * **air conditioner:** report all operating modes off when unit is off ([#42](https://github.com/homebridge-plugins/homebridge-smarthq/issues/42)) ([d44ebe3](https://github.com/homebridge-plugins/homebridge-smarthq/commit/d44ebe34590a2da6645e30db0db269e1dbbe4f3b))
53
+
54
+
55
+ ### Features
56
+
57
+ * add Portable AC as supported device ([#45](https://github.com/homebridge-plugins/homebridge-smarthq/issues/45)) ([50d83b1](https://github.com/homebridge-plugins/homebridge-smarthq/commit/50d83b1e003d8d238485459a5c882f357e1c61fb))
58
+
59
+
60
+
61
+ # [0.4.0](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v0.4.0) (2025-06-27)
62
+
63
+
64
+
65
+ # 0.2.0 (2025-02-23)
66
+
67
+ ## [0.4.1](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.0...v0.4.1) (2025-09-18)
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * **air conditioner:** fix temperature setting and update switch display names ([#38](https://github.com/homebridge-plugins/homebridge-smarthq/issues/38)) ([1675205](https://github.com/homebridge-plugins/homebridge-smarthq/commit/16752059c93d6a5b26b782f2b42246e622b4b830))
73
+ * **air conditioner:** preserve decimal precision when converting Celsius to Fahrenheit ([#40](https://github.com/homebridge-plugins/homebridge-smarthq/issues/40)) ([38c8285](https://github.com/homebridge-plugins/homebridge-smarthq/commit/38c82852015d8ea0ceb0f4dd4b9ddf0622f57963))
74
+ * **air conditioner:** report all operating modes off when unit is off ([#42](https://github.com/homebridge-plugins/homebridge-smarthq/issues/42)) ([d44ebe3](https://github.com/homebridge-plugins/homebridge-smarthq/commit/d44ebe34590a2da6645e30db0db269e1dbbe4f3b))
75
+
76
+
77
+ ### Features
78
+
79
+ * add Portable AC as supported device ([#45](https://github.com/homebridge-plugins/homebridge-smarthq/issues/45)) ([50d83b1](https://github.com/homebridge-plugins/homebridge-smarthq/commit/50d83b1e003d8d238485459a5c882f357e1c61fb))
80
+
81
+
82
+
83
+ # [0.4.0](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v0.4.0) (2025-06-27)
84
+
85
+
86
+
87
+ # 0.2.0 (2025-02-23)
88
+
5
89
  ## [0.4.0](https://github.com/homebridge-plugins/homebridge-smarthq/releases/tag/v0.4.0) (2025-06-26)
6
90
 
7
91
  ### What's Changes
package/README.md CHANGED
@@ -40,3 +40,18 @@ These are the events that are currently supported:
40
40
  - Filter Maintenance Change Alert
41
41
  - Descale Needed Alert
42
42
  - Add Water Alert
43
+
44
+ ## Contributing
45
+
46
+ This project uses a beta-first workflow for all contributions:
47
+
48
+ - 🎯 **All PRs must target beta branches first**, never the main `latest` branch
49
+ - 🏷️ **Required labels**: Set `patch`, `minor`, or `major` labels before assigning issues to Copilot
50
+ - 🌿 **Current beta branch**: `beta-0.5.0` (active development)
51
+
52
+ For detailed contribution guidelines, see [.github/copilot-instructions.md](.github/copilot-instructions.md).
53
+
54
+ Use the branch helper tool to determine the correct target branch:
55
+ ```bash
56
+ .github/scripts/branch-helper.sh
57
+ ```
@@ -1,5 +1,5 @@
1
+ import type { devicesConfig, SmartHqContext, SmartHQPlatform } from '../../../index.js';
1
2
  import type { PlatformAccessory, Service } from 'homebridge';
2
- import type { SmartHQPlatform, devicesConfig, SmartHqContext } from '../../../index.js';
3
3
  import { OpalDeviceBase } from '../OpalDeviceBase.js';
4
4
  export declare class OpalProgressSvcManager extends OpalDeviceBase {
5
5
  readonly platform: SmartHQPlatform;
@@ -1 +1 @@
1
- {"version":3,"file":"OpalProgressSvcManager.d.ts","sourceRoot":"","sources":["../../../../src/devices/OpalIceMaker/Managers/OpalProgressSvcManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO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EAAE,MAAM,EAAE,CAGvC;IAEM,WAAW,EAAE,MAAM,CAAkB;IACrC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAO;IACrC,OAAO,CAAC,cAAc,CAAiB;gBAG5B,QAAQ,EAAE,eAAe,EAC3B,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC,EAC1C,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,aAAa;IAgB3D,OAAO,CAAC,aAAa;IA8CrB,UAAU,IAAI,OAAO;IAIR,yBAAyB;YAuBxB,kBAAkB;CAqBjC"}
@@ -1,13 +1,13 @@
1
1
  import { Buffer } from 'node:buffer';
2
- import { ERD_TYPES } from '../../../index.js';
3
2
  import { OpalDeviceBase } from '../OpalDeviceBase.js';
3
+ import { ERD_TYPES } from '../../../index.js';
4
4
  export class OpalProgressSvcManager extends OpalDeviceBase {
5
5
  platform;
6
6
  accessory;
7
7
  device;
8
8
  advancedOptionQueryStrs = [
9
9
  'device=opal&label=Production_Duration_Minutes&indicator=opalProductionLimit&type=number&defaultValue=0&placeholder=Number._0_for_Infinite',
10
- 'device=opal&label=HKC_Progress_Complete_Notification_Path&indicator=oplHKCProgressCompleteNotificationPath'
10
+ 'device=opal&label=HKC_Progress_Complete_Notification_Path&indicator=oplHKCProgressCompleteNotificationPath',
11
11
  ];
12
12
  serviceName = 'Opal Progress';
13
13
  service = null;
@@ -45,7 +45,7 @@ export class OpalProgressSvcManager extends OpalDeviceBase {
45
45
  // Configure Active characteristic
46
46
  this.service.getCharacteristic(this.platform.Characteristic.Active)
47
47
  .setProps({
48
- perms: ["ev" /* Perms.EVENTS */, "pr" /* Perms.PAIRED_READ */],
48
+ perms: ['ev', 'pr'],
49
49
  });
50
50
  // Configure RotationSpeed characteristic
51
51
  this.service.getCharacteristic(this.platform.Characteristic.RotationSpeed)
@@ -55,7 +55,7 @@ export class OpalProgressSvcManager extends OpalDeviceBase {
55
55
  minStep: 1,
56
56
  minValue: 0,
57
57
  maxValue: 100,
58
- perms: ["ev" /* Perms.EVENTS */, "pr" /* Perms.PAIRED_READ */],
58
+ perms: ['ev', 'pr'],
59
59
  })
60
60
  .removeOnGet()
61
61
  .removeOnSet()
@@ -92,7 +92,11 @@ export class OpalProgressSvcManager extends OpalDeviceBase {
92
92
  const productionValueMinutes = Buffer.from(erdVal, 'hex').readUInt8(0);
93
93
  const completionistMsg = productionValueMinutes > 100 ? `, Completion: ${productionValueMinutes}` : '';
94
94
  this.platform.debugSuccessLog(`Production: ${productionValueMinutes}, Limit: ${this.platform.config.deviceOptions?.opal?.opalProductionLimit}${completionistMsg}`);
95
- const productionValueProgressBar = Math.floor((100 / this.platform.config.deviceOptions?.opal?.opalProductionLimit) * productionValueMinutes);
95
+ const opalProductionLimit = this.platform.config.deviceOptions?.opal?.opalProductionLimit;
96
+ let productionValueProgressBar = 0;
97
+ if (typeof opalProductionLimit === 'number' && opalProductionLimit > 0) {
98
+ productionValueProgressBar = Math.floor((100 / opalProductionLimit) * productionValueMinutes);
99
+ }
96
100
  return [productionValueProgressBar, productionValueMinutes];
97
101
  }
98
102
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"OpalProgressSvcManager.js","sourceRoot":"","sources":["../../../../src/devices/OpalIceMaker/Managers/OpalProgressSvcManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAIpC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IAU7C;IACF;IACE;IAXJ,uBAAuB,GAAa;QACzC,2IAA2I;QAC3I,4GAA4G;KAC7G,CAAA;IACM,WAAW,GAAW,eAAe,CAAA;IACrC,OAAO,GAAmB,IAAI,CAAA;IAC7B,cAAc,GAAG,cAAc,CAAA;IAEvC,YACW,QAAyB,EAC3B,SAA4C,EAC1C,MAAgD;QAEzD,KAAK,CAAC,QA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C,CAAA;YAC3D,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YAEtE,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,GAAG,CAAC,CAAC,CAAC,iBAAiB,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;YACtG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,eAAe,sBAAsB,YAAY,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,mBAAmB,GAAG,gBAAgB,EAAE,CAAC,CAAA;YAElK,MAAM,mBAAmB,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,mBAAmB,CAAA;YACzF,IAAI,0BAA0B,GAAG,CAAC,CAAA;YAClC,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,mBAAmB,GAAG,CAAC,EAAE,CAAC;gBACvE,0BAA0B,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,mBAAmB,CAAC,GAAG,sBAAsB,CAAC,CAAA;YAC/F,CAAC;YACD,OAAO,CAAC,0BAA0B,EAAE,sBAAsB,CAAC,CAAA;QAC7D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,QAAQ,GAAG,KAA4B,CAAA;YAC7C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,oCAAoC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;YAC9E,mCAAmC;YACnC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACf,CAAC;IACH,CAAC;CACF"}
@@ -46,6 +46,7 @@ export declare class SmartHQAirConditioner extends deviceBase {
46
46
  handleGetFilterChangeIndication(): Promise<CharacteristicValue>;
47
47
  handleGetOperationMode(mode: OperationMode): Promise<CharacteristicValue>;
48
48
  handleSetOperationMode(mode: OperationMode, value: CharacteristicValue): Promise<void>;
49
+ handleGetOperationModeName(mode: OperationMode): string;
49
50
  refreshState(): Promise<void>;
50
51
  private fahrenheitToCelsius;
51
52
  private celsiusToFahrenheit;