Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Fixes for HomeSeer MNS Insteon HS4 plugin using different different control values from status values. #77

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion custom_components/homeseer/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
8 changes: 4 additions & 4 deletions custom_components/homeseer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion custom_components/homeseer/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/homeseer/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion custom_components/homeseer/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down