diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..b4986f6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,78 @@ +name: Report an issue with Econet300 home assistant integration +description: Report an issue with Econet300 home assistant integration. +title: "[Bug]: " +labels: ["bug", "triage"] +assignees: + - jontofront +body: + - type: markdown + attributes: + value: | + This issue form is for reporting bugs only! + + If you have a feature or enhancement request, please use the feature request issue type. + + [feature request]: https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/issues/new/choose + + - type: textarea + validations: + required: true + attributes: + label: The problem + description: >- + Describe the issue you are experiencing here, to communicate to the + maintainers. Tell us what you were trying to do and what happened. + + Provide a clear and concise description of what the problem is. + - type: markdown + attributes: + value: | + ## Environment + - type: input + id: tech_version + validations: + required: true + attributes: + label: What version of Tech Controllers integration has the issue? + - type: input + id: ha_version + validations: + required: true + attributes: + label: What version of Home Assistant Core has the issue? + placeholder: core- + description: > + Can be found in: [Settings ⇒ System ⇒ Repairs ⇒ Three Dots in Upper Right ⇒ System information](https://my.home-assistant.io/redirect/system_health/). + + [![Open your Home Assistant instance and show the system information.](https://my.home-assistant.io/badges/system_health.svg)](https://my.home-assistant.io/redirect/system_health/) + - type: input + attributes: + label: What was the last working version of Tech Controller integration? + description: > + If known, otherwise leave blank. + + - type: markdown + attributes: + value: | + # Details + - type: textarea + attributes: + label: Diagnostics information + placeholder: "drag-and-drop the diagnostics data file here (do not copy-and-paste the content)" + description: >- + Follow HA guide to [download diagnostic data](https://www.home-assistant.io/docs/configuration/troubleshooting/#debug-logs-and-diagnostics). + + **It would really help if you could download the diagnostics data for the device you are having issues with, + and drag-and-drop that file into the textbox below.** + + It generally allows pinpointing defects and thus resolving issues faster. + - type: textarea + attributes: + label: Anything in the logs that might be useful for us? + description: For example, error message, or stack traces. + render: text + - type: textarea + attributes: + label: Additional information + description: > + If you have any additional information for us, use the field below. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..2eebf00 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,30 @@ +name: Request a feature from Econet300 home assistant integration +description: Request a feature from Econet300 home assistant integration. +title: "[Feat]: " +labels: ["feature", "triage"] +assignees: + - jontofront +body: + - type: markdown + attributes: + value: | + This issue form is for requesting new features only! + + If you have a bug report, please use the [bug report] issue type. + + [bug report]: https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/issues/new/choose + - type: textarea + validations: + required: true + attributes: + label: The request + description: >- + Describe the feature you are requesting here, to communicate to the + maintainers. + + A clear and concise description of what you want to happen. + - type: textarea + attributes: + label: Additional information + description: > + If you have any additional information, context, screenshots for us, use the field below. \ No newline at end of file diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml index 8369e39..95119ae 100644 --- a/.github/workflows/hacs.yml +++ b/.github/workflows/hacs.yml @@ -8,7 +8,7 @@ on: jobs: hacs: - name: HACS Action + name: Validate hacs runs-on: "ubuntu-latest" steps: - name: HACS Action diff --git a/.gitignore b/.gitignore index affd2fe..ceeb3c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ draft .idea/ -.vscode/* \ No newline at end of file +.vscode/* +.ruff_cache \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b3cf9d..f7e96f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,5 +67,13 @@ Thank for @pblxptr add new code line from him - cleaned translation files and rename keys by requrements - Added: alarm constants for future +## [v1.0.0-beta-11] 2024-10-03 +- Added: `boiler_status` sensor +- Added: `boiler_status` binary_sensor +- Added: `boiler_status` sensor key `boiler_status` +- Added: `boiler_status` binary_sensor key `boiler_status` +- Added: `boiler_status` sensor key `boiler_status_text` +- Added: `boiler_status` binary_sensor key `boiler_status_text` + diff --git a/README.md b/README.md index 32f2502..b5b261c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,9 @@ Integration tested with ecoMAX controller ecoMAX810P-L TOUCH manufactured by [Pl * v0.3.3 - version is stable. Most of the work was done by @pblxpt, for which we're very thankful as the community. * v1.0.0_beta - is a new dev integration version that fetches more data from API, I don't know yet if it will be better or worse :). It's my first work. +## :arrow_up: Migration to version 2 (v1.0.0_beta) +❗ This is a "version reset" release ❗ Migrations are not supported from previous versions! Please remove the integration and start anew with this version. + ## Example Here is an example setup showing econet300 device entities: diff --git a/custom_components/econet300/manifest.json b/custom_components/econet300/manifest.json index 2e77e13..4a8f0cd 100644 --- a/custom_components/econet300/manifest.json +++ b/custom_components/econet300/manifest.json @@ -1,7 +1,10 @@ { "domain": "econet300", "name": "ecoNET300", - "codeowners": ["@pblxptr","@jontofront"], + "codeowners": [ + "@pblxptr", + "@jontofront" + ], "config_flow": true, "dependencies": [], "documentation": "https://github.com/pblxptr/ecoNET-300-Home-Assistant-Integration", @@ -10,6 +13,6 @@ "issue_tracker": "https://github.com/pblxptr/ecoNET-300-Home-Assistant-Integration/issues", "requirements": [], "ssdp": [], - "version": "1.0.0", + "version": "v1.0.0-beta-11", "zeroconf": [] -} +} \ No newline at end of file diff --git a/custom_components/econet300/number.py b/custom_components/econet300/number.py index f48449b..78f7c19 100644 --- a/custom_components/econet300/number.py +++ b/custom_components/econet300/number.py @@ -1,4 +1,5 @@ """Base entity number for Econet300.""" + from dataclasses import dataclass import logging @@ -62,7 +63,7 @@ def _sync_state(self, value): self._attr_native_min_value = ENTITY_MIN_VALUE.get(map_key) self._attr_native_max_value = ENTITY_MAX_VALUE.get(map_key) self.async_write_ha_state() - self.async_set_limits_values() + self.hass.async_create_task(self.async_set_limits_values()) async def async_set_limits_values(self): """async Sync number limits.""" diff --git a/requirements.txt b/requirements.txt index a6e9870..f9ecf1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -colorlog==6.7.0 -homeassistant>=2024.3.0 -ruff==0.4.3 +colorlog==6.8.2 +homeassistant>=2024.9.2 +ruff==0.6.5 codespell==2.3.0 \ No newline at end of file