From 06f30736f192f553f402f492c995d31b3bedf249 Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Sat, 29 Jun 2024 23:28:24 +0000 Subject: [PATCH 1/2] Adding a unique id to the fan so it can be configured in the UI. --- custom_components/airscape/const.py | 1 + custom_components/airscape/fan.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/custom_components/airscape/const.py b/custom_components/airscape/const.py index ea475c5..11f99ee 100644 --- a/custom_components/airscape/const.py +++ b/custom_components/airscape/const.py @@ -10,4 +10,5 @@ "interlock1": "interlock1", "interlock2": "interlock2", "timeremaining": "shutoff_timer", + "macaddr": "macaddr", } diff --git a/custom_components/airscape/fan.py b/custom_components/airscape/fan.py index 38b262f..4e9f145 100644 --- a/custom_components/airscape/fan.py +++ b/custom_components/airscape/fan.py @@ -100,6 +100,11 @@ def __init__(self, device, name, minimum): self._minimum_speed = minimum self._attr = {} + @property + def unique_id(self): + """Return a unique id based on the MAC address.""" + return self._attr['macaddr'] + @property def name(self): """Return the display name of this fan.""" From 77fbf7a734b8d9501a1dcfaf37f783ef41af518f Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Tue, 2 Jul 2024 17:49:34 +0000 Subject: [PATCH 2/2] Bumping the version and adding an update message. --- custom_components/airscape/manifest.json | 2 +- info.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/custom_components/airscape/manifest.json b/custom_components/airscape/manifest.json index 2a8b18e..17d9a41 100644 --- a/custom_components/airscape/manifest.json +++ b/custom_components/airscape/manifest.json @@ -3,7 +3,7 @@ "name": "Airscape Whole House Fan", "documentation": "https://www.home-assistant.io/components/fan.airscape", "issue_tracker": "https://github.com/quielb/hass-airscape/issues", - "version": "0.1.9.5.1", + "version": "0.1.9.5.5", "requirements": [ "airscape==0.1.9.4.1" ], diff --git a/info.md b/info.md index 09020ba..a100be5 100644 --- a/info.md +++ b/info.md @@ -17,6 +17,11 @@ A Home Assistant custom component to control Airscape Whole House Fans with Gen2 {% endif %} ### Changes +{% if version_installed.replace("v", "").replace(".","") | int < 1955 %} + +- Adding unique ids to all fan entities which will allow them to be configured via the UI. + {% endif %} + {% if version_installed.replace("v", "").replace(".","") | int < 1951 %}