diff --git a/README.md b/README.md index d2d6ae1..7d81112 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ -# 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). +[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. + +## 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 @@ -23,7 +28,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). 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.""" diff --git a/custom_components/homeseer/manifest.json b/custom_components/homeseer/manifest.json index 92ff4f6..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.0.0" + "version": "1.1.2" } 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", 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() 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",