From 33bce6d285be683d79e3b10b969d778a0ff6c267 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 2 Jul 2022 20:34:38 -0400 Subject: [PATCH 01/14] Update switch.py Update is_on to use the device value. This is needed for plugins (Example HS4 MNS Insteon) that use differnt status and control values in homeseer. The new Insteon plugin uses 101 as on and 102 as off for control but status uses value of 0 as off and 100 as on. Since they don't match need to look at the value if 0 then off if 1 to 100 then on. --- custom_components/homeseer/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/switch.py b/custom_components/homeseer/switch.py index d2cb29e..cad2902 100644 --- a/custom_components/homeseer/switch.py +++ b/custom_components/homeseer/switch.py @@ -32,7 +32,7 @@ class HomeSeerSwitch(HomeSeerEntity, SwitchEntity): @property def is_on(self): """Return true if device is on.""" - return self._device.is_on + return self._device.value > 0 and self._device.value <= 100 async def async_turn_on(self, **kwargs): await self._device.on() From dfe2e9d00e3f97ab68d19ac8024e4b47c80ab67e Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 2 Jul 2022 20:36:35 -0400 Subject: [PATCH 02/14] Update light.py Update is_on to use the device value. This is needed for plugins (Example HS4 MNS Insteon) that use different status and control values in homeseer. The new Insteon plugin uses 101 as on and 102 as off for control but status uses value of 0 as off and 100 as on. Since they don't match need to look at the value if 0 then off if 1 to 100 then on. --- custom_components/homeseer/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/light.py b/custom_components/homeseer/light.py index 0f575ff..e65a720 100644 --- a/custom_components/homeseer/light.py +++ b/custom_components/homeseer/light.py @@ -49,7 +49,7 @@ def brightness(self): @property def is_on(self): """Return true if device is on.""" - return self._device.is_on + return self._device.value > 0 and self._device.value <= 100 async def async_turn_on(self, **kwargs): """Turn the light on.""" From fe29df7e127804323bd21b5df2154dd27c00782b Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 2 Jul 2022 20:38:28 -0400 Subject: [PATCH 03/14] Update manifest.json Update Version for changes --- custom_components/homeseer/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/manifest.json b/custom_components/homeseer/manifest.json index 92ff4f6..f02e29c 100644 --- a/custom_components/homeseer/manifest.json +++ b/custom_components/homeseer/manifest.json @@ -6,5 +6,5 @@ "issue_tracker": "https://github.com/marthoc/homeseer/issues", "codeowners": ["@marthoc"], "requirements": ["libhomeseer==1.2.2"], - "version": "1.0.0" + "version": "1.0.2" } From 354efff0cf282dfa06c5ac4d6c54f03035312a81 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 2 Jul 2022 21:28:03 -0400 Subject: [PATCH 04/14] Update manifest.json --- custom_components/homeseer/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/manifest.json b/custom_components/homeseer/manifest.json index f02e29c..174e86a 100644 --- a/custom_components/homeseer/manifest.json +++ b/custom_components/homeseer/manifest.json @@ -6,5 +6,5 @@ "issue_tracker": "https://github.com/marthoc/homeseer/issues", "codeowners": ["@marthoc"], "requirements": ["libhomeseer==1.2.2"], - "version": "1.0.2" + "version": "1.1.2" } From 93ab01e1ae9ea9717700afc390fbfa4571d6cdcf Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:24:22 -0500 Subject: [PATCH 05/14] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2d6ae1..dcbc723 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# HomeSeer Custom Integration for Home Assistant +# HomeSeer Custom Integration for Home Assistant Forked from https://github.com/marthoc/homeseer -[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs) [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WBGSD2WU6944G) +[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs) [Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). @@ -23,7 +23,7 @@ _The recommended installation method is via [HACS](https://hacs.xyz)._ ### HACS -1. Add https://github.com/marthoc/homeseer as a custom repository in HACS. +1. Add https://github.com/Airey001/homeseer as a custom repository in HACS. 2. Search for "HomeSeer" under "Integrations" in HACS. 3. Click "Install". 4. Proceed with Configuration (see below). From fb05e0192c1ee5e7a5b922413d4be5e878f96ebf Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:26:19 -0500 Subject: [PATCH 06/14] Update manifest.json --- custom_components/homeseer/manifest.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/homeseer/manifest.json b/custom_components/homeseer/manifest.json index 174e86a..dea74a5 100644 --- a/custom_components/homeseer/manifest.json +++ b/custom_components/homeseer/manifest.json @@ -2,9 +2,9 @@ "domain": "homeseer", "name": "HomeSeer", "config_flow": true, - "documentation": "https://github.com/marthoc/homeseer", - "issue_tracker": "https://github.com/marthoc/homeseer/issues", - "codeowners": ["@marthoc"], + "documentation": "https://github.com/Airey001/homeseer", + "issue_tracker": "https://github.com/Airey001/homeseer/issues", + "codeowners": ["@Airey001"], "requirements": ["libhomeseer==1.2.2"], "version": "1.1.2" } From d644bfa2521661cd59515607bd2bbc5497d8630f Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:27:35 -0500 Subject: [PATCH 07/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dcbc723..ed65f23 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs) -[Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). +[Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). Modified by Airey001 due to changes in the Insteon Plugin and how it handles on / off values. This integration will create Home Assistant entities for the following types of devices in HomeSeer by default: From a940b60ba7b7082a0c50ad3ed2a7a1456b1b3ef1 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:29:03 -0500 Subject: [PATCH 08/14] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed65f23..8ad74a5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,10 @@ [![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs) -[Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). Modified by Airey001 due to changes in the Insteon Plugin and how it handles on / off values. +[Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). + +Changes since Forked: +1.1.2 - Fixes for HomeSeer MNS Insteon HS4 plugin using different different control values from status values. This integration will create Home Assistant entities for the following types of devices in HomeSeer by default: From cbceab563a49ac1db3d6dabfb87e94cbfa3408f6 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:29:36 -0500 Subject: [PATCH 09/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8ad74a5..d84a828 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). Changes since Forked: + 1.1.2 - Fixes for HomeSeer MNS Insteon HS4 plugin using different different control values from status values. This integration will create Home Assistant entities for the following types of devices in HomeSeer by default: From f867c6dd0d47f8c890799e1689b07a9786bd5c93 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:30:35 -0500 Subject: [PATCH 10/14] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d84a828..7d81112 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,11 @@ [Home Assistant](https://home-assistant.io/) custom integration supporting [HomeSeer](www.homeseer.com) Smart Home Software (HS3 and HS4). -Changes since Forked: +## Changes since Forked: 1.1.2 - Fixes for HomeSeer MNS Insteon HS4 plugin using different different control values from status values. +## About This integration will create Home Assistant entities for the following types of devices in HomeSeer by default: - "Switchable" devices (i.e. devices with On/Off controls) as a Home Assistant switch entity From f577d0b9b7e975a8829568d9526b9feae248a95c Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:36:15 -0500 Subject: [PATCH 11/14] Update en.json --- custom_components/homeseer/translations/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/translations/en.json b/custom_components/homeseer/translations/en.json index ca00e34..f93b382 100644 --- a/custom_components/homeseer/translations/en.json +++ b/custom_components/homeseer/translations/en.json @@ -4,7 +4,7 @@ "step": { "user": { "title": "HomeSeer", - "description": "See https://github.com/marthoc/homeseer for more information on configuring this integration.", + "description": "See https://github.com/Airey001/homeseer for more information on configuring this integration.", "data": { "host": "IP Address", "username": "Username", From 0f5aeafd6eef3f86c4e7d05bed537559e0e4d7d2 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Sat, 17 Dec 2022 15:22:24 -0500 Subject: [PATCH 12/14] Update strings.json --- custom_components/homeseer/strings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/strings.json b/custom_components/homeseer/strings.json index ca00e34..f93b382 100644 --- a/custom_components/homeseer/strings.json +++ b/custom_components/homeseer/strings.json @@ -4,7 +4,7 @@ "step": { "user": { "title": "HomeSeer", - "description": "See https://github.com/marthoc/homeseer for more information on configuring this integration.", + "description": "See https://github.com/Airey001/homeseer for more information on configuring this integration.", "data": { "host": "IP Address", "username": "Username", From ce131a07c505c5ef725e126f604eba88766eb140 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Wed, 28 May 2025 08:16:09 -0400 Subject: [PATCH 13/14] Update __init__.py Calling config_entries.async_forward_entry_setup is deprecated as of 2025.6 https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/ --- custom_components/homeseer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/__init__.py b/custom_components/homeseer/__init__.py index fc78eca..cf8e634 100644 --- a/custom_components/homeseer/__init__.py +++ b/custom_components/homeseer/__init__.py @@ -110,7 +110,7 @@ async def async_setup_entry(hass, config_entry): for platform in HOMESEER_PLATFORMS: hass.async_create_task( - hass.config_entries.async_forward_entry_setup(config_entry, platform) + hass.config_entries.async_forward_entry_setups(config_entry, platform) ) hass.bus.async_listen_once("homeassistant_stop", bridge.stop) From c1c209b1fcef4fae0dccb08550b24d39738e6556 Mon Sep 17 00:00:00 2001 From: Airey001 <32739694+Airey001@users.noreply.github.com> Date: Fri, 30 May 2025 16:45:53 -0400 Subject: [PATCH 14/14] Update __init__.py Rollback --- custom_components/homeseer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/homeseer/__init__.py b/custom_components/homeseer/__init__.py index cf8e634..fc78eca 100644 --- a/custom_components/homeseer/__init__.py +++ b/custom_components/homeseer/__init__.py @@ -110,7 +110,7 @@ async def async_setup_entry(hass, config_entry): for platform in HOMESEER_PLATFORMS: hass.async_create_task( - hass.config_entries.async_forward_entry_setups(config_entry, platform) + hass.config_entries.async_forward_entry_setup(config_entry, platform) ) hass.bus.async_listen_once("homeassistant_stop", bridge.stop)