From 5bafbf8662da1c699daac14c6978e455c77591cd Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Wed, 23 Oct 2024 22:10:32 -0500 Subject: [PATCH] appSelect --- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/workflows/beta-release.yml | 30 +++++++---- .github/workflows/release.yml | 23 ++++---- CHANGELOG.md | 78 +++++++++++++-------------- README.md | 2 +- config.schema.json | 2 +- docs/functions/default.html | 2 +- docs/index.html | 2 +- src/homebridge-ui/public/index.html | 20 +++---- src/homebridge-ui/server.ts | 82 +++++++++++++++-------------- src/settings.ts | 36 ++++++------- 11 files changed, 145 insertions(+), 134 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 931593de..beece8ad 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://discord.gg/8fpZA4S about: Please ask and answer questions here. - name: Homebridge-Resideo - Pull Requests - url: https://github.com/donavanbecker/homebridge-resideo/pulls + url: https://github.com/homebridge-plugins/homebridge-resideo/pulls about: Please report security vulnerabilities here. diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index ec1b76d8..5071b9e6 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -3,8 +3,6 @@ name: Node-CI Beta on: push: branches: [beta-*.*.*, beta] - release: - types: [prereleased] workflow_dispatch: jobs: @@ -21,7 +19,7 @@ jobs: publish: needs: lint - if: ${{ github.repository == 'donavanbecker/homebridge-resideo' }} + if: ${{ github.repository == 'homebridge-plugins/homebridge-resideo' }} uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest with: @@ -32,14 +30,26 @@ jobs: secrets: npm_auth_token: ${{ secrets.npm_token }} - github-releases-to-discord: + pre-release: needs: publish + if: ${{ github.repository == 'homebridge-plugins/homebridge-resideo' }} + uses: donavanbecker/.github/.github/workflows/pre-release.yml@latest + with: + npm_version: ${{ needs.publish.outputs.NPM_VERSION }} + body: | + **Beta Release** + **Version**: v${{ needs.publish.outputs.NPM_VERSION }} + [How To Test Beta Releases](https://github.com/homebridge-plugins/homebridge-resideo/wiki/Beta-Version) - if: ${{ github.repository == 'donavanbecker/homebridge-resideo' && github.event.release.prerelease == true }} - - uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest + github-releases-to-discord: + name: Discord Webhooks + needs: [build_and_test,publish] + if: ${{ github.repository == 'homebridge-plugins/homebridge-resideo' }} + uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest with: - footer_title: "Resideo" + title: "Resideo Beta Release" + description: | + Version `v${{ needs.publish.outputs.NPM_VERSION }}` + url: "https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}" secrets: - DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} - DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }} + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d814d526..3327fee4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,8 @@ name: Node Release on: - push: - tags: - - 'v*.*.*' - workflow_dispatch: + release: + types: [published] jobs: build_and_test: @@ -17,20 +15,21 @@ jobs: publish: needs: build_and_test - if: ${{ github.repository == 'donavanbecker/homebridge-resideo' }} + if: ${{ github.repository == 'homebridge-plugins/homebridge-resideo' }} uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest secrets: npm_auth_token: ${{ secrets.npm_token }} github-releases-to-discord: - needs: publish - - if: ${{ github.repository == 'donavanbecker/homebridge-august' }} - + name: Discord Webhooks + needs: [build_and_test,publish] + if: ${{ github.repository == 'homebridge-plugins/homebridge-resideo' }} uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest with: - footer_title: "Resideo" + title: "Resideo Release" + description: | + Version `v${{ needs.publish.outputs.NPM_VERSION }}` + url: "https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}" secrets: - DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} - DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }} + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5422693f..44c1ef8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,144 +2,144 @@ All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/) -## [2.1.5](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.5) (2024-09-25) +## [2.1.5](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.5) (2024-09-25) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.1.4...v2.1.5 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.1.4...v2.1.5 -## [2.1.4](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.4) (2024-07-16) +## [2.1.4](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.4) (2024-07-16) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.1.3...v2.1.4 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.1.3...v2.1.4 -## [2.1.3](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.3) (2024-07-06) +## [2.1.3](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.3) (2024-07-06) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.1.2...v2.1.3 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.1.2...v2.1.3 -## [2.1.2](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.2) (2024-05-30) +## [2.1.2](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.2) (2024-05-30) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.1.1...v2.1.2 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.1.1...v2.1.2 -## [2.1.1](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.1) (2024-05-29) +## [2.1.1](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.1) (2024-05-29) ### What's Changes - Fix for UI linking issues and refresh issues. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.1.0...v2.1.1 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.1.0...v2.1.1 -## [2.1.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.0) (2024-05-26) +## [2.1.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.1.0) (2024-05-26) ### What's Changes - Major refactoring of resideo `device` files. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.0.1...v2.1.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.0.1...v2.1.0 -## [2.0.1](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.0.1) (2024-04-27) +## [2.0.1](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.0.1) (2024-04-27) ### What's Changes -- Attempt to fix UI [#822](https://github.com/donavanbecker/homebridge-resideo/pull/822), Thanks [@bwp91](https://github.com/bwp91) +- Attempt to fix UI [#822](https://github.com/homebridge-plugins/homebridge-resideo/pull/822), Thanks [@bwp91](https://github.com/bwp91) -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.0.0...v2.0.1 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v2.0.0...v2.0.1 -## [2.0.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.0.0) (2024-01-31) +## [2.0.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v2.0.0) (2024-01-31) ### What's Changes - Moved from CommonJS to ES Module - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.6...v2.0.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.6...v2.0.0 -## [1.4.6](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.6) (2024-01-16) +## [1.4.6](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.6) (2024-01-16) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.5...v1.4.6 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.5...v1.4.6 -## [1.4.5](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.5) (2023-12-15) +## [1.4.5](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.5) (2023-12-15) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.4...v1.4.5 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.4...v1.4.5 -## [1.4.4](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.4) (2023-11-26) +## [1.4.4](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.4) (2023-11-26) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.3...v1.4.4 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.3...v1.4.4 -## [1.4.3](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.3) (2023-10-31) +## [1.4.3](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.3) (2023-10-31) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.2...v1.4.3 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.2...v1.4.3 -## [1.4.2](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.2) (2023-08-27) +## [1.4.2](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.2) (2023-08-27) ### What's Changes - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.1...v1.4.2 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.1...v1.4.2 -## [1.4.1](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.1) (2023-08-19) +## [1.4.1](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.1) (2023-08-19) ### What's Changes - Fixed LeakSensor Inital status not pulling on restart. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.4.0...v1.4.1 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.4.0...v1.4.1 -## [1.4.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.4.0) (2023-08-19) +## [1.4.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.4.0) (2023-08-19) ### What's Changes - Added Support for reading status of L5 Water Shutoff. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.3.0...v1.4.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.3.0...v1.4.0 -## [1.3.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.3.0) (2023-04-08) +## [1.3.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.3.0) (2023-04-08) ### What's Changes - Added Config that allows `Auto` mode to be enabled for Thermostats even if API doesn't have `Auto` enabled. - Housekeeping and updated dependencies. - This release will end support for Node v14. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.2.0...v1.3.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.2.0...v1.3.0 -## [1.2.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.2.0) (2022-12-08) +## [1.2.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.2.0) (2022-12-08) ### What's Changes - Added Config that allows device(s) to be published as an external accessory. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.1.0...v1.2.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.1.0...v1.2.0 -## [1.1.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.1.0) (2022-10-18) +## [1.1.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.1.0) (2022-10-18) ### What's Changes - Added Config to allow manually setting firmware version. - Housekeeping and updated dependencies. -**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v1.0.0...v1.1.0 +**Full Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/compare/v1.0.0...v1.1.0 -## [1.0.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v1.0.0) (2022-09-23) +## [1.0.0](https://github.com/homebridge-plugins/homebridge-resideo/releases/tag/v1.0.0) (2022-09-23) ### What's Changes - Move from `homebridge-honeywell-home` to `homebridge-resideo` -**homebridge-honeywell-home Changelog**: https://github.com/donavanbecker/homebridge-resideo/blob/latest/honeywell/homebridge-honeywell-home-changelog.md \ No newline at end of file +**homebridge-honeywell-home Changelog**: https://github.com/homebridge-plugins/homebridge-resideo/blob/latest/honeywell/homebridge-honeywell-home-changelog.md \ No newline at end of file diff --git a/README.md b/README.md index 06e76bc2..72bb5e48 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -homebridge-verified +homebridge-verified # Homebridge Resideo diff --git a/config.schema.json b/config.schema.json index deb6f9c4..d14c3a7f 100644 --- a/config.schema.json +++ b/config.schema.json @@ -5,7 +5,7 @@ "customUi": true, "customUiPath": "./dist/homebridge-ui", "headerDisplay": "

\n\nThe **Homebridge Resideo** plugin allows you to control Resideo thermostats and also view your Leak and Room Sensors from HomeKit. \n\nTo get started link your Resideo account using the button below.", - "footerDisplay": "Your Resideo account has been linked. Please raise any issues on our [project page](https://github.com/donavanbecker/homebridge-resideo/issues).\n\nIf you would like to have other Resideo Devices besides Thermostat, Leak Sensors, or Room Sensors added to this plugin fill out [Feature Request Form](https://github.com/donavanbecker/homebridge-resideo/issues/new?assignees=&labels=&template=feature_request.md).", + "footerDisplay": "Your Resideo account has been linked. Please raise any issues on our [project page](https://github.com/homebridge-plugins/homebridge-resideo/issues).\n\nIf you would like to have other Resideo Devices besides Thermostat, Leak Sensors, or Room Sensors added to this plugin fill out [Feature Request Form](https://github.com/homebridge-plugins/homebridge-resideo/issues/new?assignees=&labels=&template=feature_request.md).", "schema": { "type": "object", "properties": { diff --git a/docs/functions/default.html b/docs/functions/default.html index 408b61c4..80c5e373 100644 --- a/docs/functions/default.html +++ b/docs/functions/default.html @@ -1 +1 @@ -default | homebridge-resideo
  • Parameters

    • api: API

    Returns void

+default | homebridge-resideo
  • Parameters

    • api: API

    Returns void

diff --git a/docs/index.html b/docs/index.html index ad24392b..a6e593a1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,5 +1,5 @@ homebridge-resideo

homebridge-resideo

-

homebridge-verified

+

homebridge-verified

Homebridge Resideo

diff --git a/src/homebridge-ui/public/index.html b/src/homebridge-ui/public/index.html index d94b3030..76424f5d 100644 --- a/src/homebridge-ui/public/index.html +++ b/src/homebridge-ui/public/index.html @@ -1,6 +1,6 @@

homebridge-resideo logo