From cf20d86cfe847d87109be34856e9231b8a4124dc Mon Sep 17 00:00:00 2001 From: shbatm Date: Sat, 9 May 2020 08:50:33 -0500 Subject: [PATCH 1/3] Add config flow and restore_light_state to ISY994 --- source/_integrations/isy994.markdown | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/_integrations/isy994.markdown b/source/_integrations/isy994.markdown index bcdc06ffcc5f..e2ebddcfd0f5 100644 --- a/source/_integrations/isy994.markdown +++ b/source/_integrations/isy994.markdown @@ -32,7 +32,9 @@ There is currently support for the following device types within Home Assistant: Home Assistant is capable of communicating with any binary sensor, cover, fan, light, lock, sensor and switch that is configured on the controller. Using the programs on the controller, custom binary sensors, cover, fan, lock, and switches can also be created. -To integrate your ISY994 controller with Home Assistant, add the following section to your `configuration.yaml` file: +To integrate your ISY994 controller with Home Assistant, Go to the integrations page in your configuration and click on new integration -> Universal Devices ISY994. + +You may also configure the integration manually by adding the following section to your `configuration.yaml` file: ```yaml # Example configuration.yaml entry @@ -69,6 +71,10 @@ tls: description: This entry should reflect the version of TLS that the ISY controller is using for HTTPS encryption. This value can be either 1.1 or 1.2. If this value is not set, it is assumed to be version 1.1. This is the default for most users. ISY994 Pro users may likely be using 1.2. When using HTTPS in the host entry, it is best practice to set this value. required: false type: string +restore_light_state: + description: If disabled (default behavior), lights turned ON from Home Assistant without a `brightness` parameter set, will turn on to the `on_level` set within the physical device. For example, on Insteon devices this would be the same brightness as if the switch/device was turned ON. If this setting is enabled, lights that are turned on from Home Assistant will go to the last known brightness value. Both the `on_level` and `last_brightness` values are available as attributes if needed for device-specific customization. + required: false + type: boolean {% endconfiguration %} Once the ISY controller is configured, it will automatically import any binary sensors, covers, fans, lights, locks, sensors and switches it can locate. @@ -119,7 +125,7 @@ All `isy994_control` events will have an `entity_id` and `control` parameter in All Insteon scenes configured in the ISY994 will show up as a `switch` in Home Assistant, as they do not support dimming or setting specific brightness settings as Home Assisstant's `light` component. -Insteon Secondary Keypad buttons and Remote buttons are added to Home Assistant to allow support for using Control Events in Automations; however, these devices cannot be directly controlled (turned on/off) and may report incorrect states. Secondary Keypad buttons may be controlled using ISY Scenes (refer to ISY Documentation for more details). +Insteon Secondary Keypad buttons and Remote buttons are added to Home Assistant to allow support for using Control Events in Automations. These devices are added as `sensors` since they cannot be directly controlled (turned on/off); their state is the last ON level command they sent, in a range from `0` (Off) to `255` (On 100%). Note: these devices may report incorrect states before being used after a reboot of the ISY. Secondary Keypad buttons may be turned on or off using ISY Scenes (refer to ISY Documentation for more details). ### Creating Custom Devices using ISY Programs From e668f43b72102d4f5614a76d55971b18d427da56 Mon Sep 17 00:00:00 2001 From: shbatm Date: Sat, 9 May 2020 08:58:19 -0500 Subject: [PATCH 2/3] Add default value. --- source/_integrations/isy994.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_integrations/isy994.markdown b/source/_integrations/isy994.markdown index e2ebddcfd0f5..edfb388d6ff0 100644 --- a/source/_integrations/isy994.markdown +++ b/source/_integrations/isy994.markdown @@ -75,6 +75,7 @@ restore_light_state: description: If disabled (default behavior), lights turned ON from Home Assistant without a `brightness` parameter set, will turn on to the `on_level` set within the physical device. For example, on Insteon devices this would be the same brightness as if the switch/device was turned ON. If this setting is enabled, lights that are turned on from Home Assistant will go to the last known brightness value. Both the `on_level` and `last_brightness` values are available as attributes if needed for device-specific customization. required: false type: boolean + default: false {% endconfiguration %} Once the ISY controller is configured, it will automatically import any binary sensors, covers, fans, lights, locks, sensors and switches it can locate. From 419db45a1c236a641a21417917d9b81762fbda50 Mon Sep 17 00:00:00 2001 From: shbatm Date: Sat, 9 May 2020 18:55:51 -0500 Subject: [PATCH 3/3] Changes per reviews --- source/_integrations/isy994.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/isy994.markdown b/source/_integrations/isy994.markdown index edfb388d6ff0..d87018343c42 100644 --- a/source/_integrations/isy994.markdown +++ b/source/_integrations/isy994.markdown @@ -13,6 +13,7 @@ ha_category: ha_release: 0.28 ha_iot_class: Local Push ha_domain: isy994 +ha_config_flow: true --- The ISY994 is a home automation controller that is capable of controlling Insteon and X10 devices. Some models of the ISY994 can even control Z-Wave devices. @@ -32,7 +33,7 @@ There is currently support for the following device types within Home Assistant: Home Assistant is capable of communicating with any binary sensor, cover, fan, light, lock, sensor and switch that is configured on the controller. Using the programs on the controller, custom binary sensors, cover, fan, lock, and switches can also be created. -To integrate your ISY994 controller with Home Assistant, Go to the integrations page in your configuration and click on new integration -> Universal Devices ISY994. +To integrate your ISY994 controller with Home Assistant, Go to the **integrations page** in your configuration and click on new **integration** -> **Universal Devices ISY994**. You may also configure the integration manually by adding the following section to your `configuration.yaml` file: