/ha-lifx-beta

Beta version of the built-in LIFX integration for Home Assistant aimed at making bulb detection more consistent.

Primary LanguagePythonMIT LicenseMIT

LIFX Beta for Home Assistant

hacs_badge

This is a pre-release/testing version of the core LIFX integration. This repo exists purely to make it easier to install the test version via HACS instead of having to do it manually.

Current version: 2023.4.4

Refactored device updates to remove duplicate/redundant polling. This should result in improved stability overall.

This was initially released as 2023.4.2 then re-released as 2023.4.4 so that anyone with the removed 2023.4.3 version would be prompted to upgrade.

This version requires at Home Assistant version 2023.4.0 or newer.

Previous version: 2023.4.1b0

This version implements the refactoring work done in home-assistant/core#90891 so it can be tested without switching to the Home Assistant Beta stream.

Previous version: 2023.2.3

This version implements the proposed fix from home-assistant/core#87736 so that it can be tested with the other refactoring done previously, i.e. removal of the locking mechanism and the sensor coordinator.

Includes a dependency bump for aiolifx to 0.8.9 which introduces support for the new LIFX Downlight.

Changes from 2032.2.1 b1

  • Change the reconnect log entries to only output if debug logging is enabled instead of being a warning.

Changes from 2023.2.0 b2

  • Port of the proposed Core PR to re-establish the connection to the LIFX device if an update times out: home-assistant/core#87736
  • Revers the dependency update as the update was broken.

Changes from 2023.2.0 b1

  • Dependency update to add product definitions for the new LIFX Downlight.

Changes from 2023.1.0 b6

  • reverted code back to the core integration, then removed the device-wide lock and sensor coordinator.

Changes from 2023.1.0.b4

  • log empty responses instead of raising exceptions

Changes from 2023.1.0b2

  • refactor the way connections are managed and recreate connections if the device stops responding.
  • limit the number of inflight messages per device.

As always, DEBUG logging is very, very noisy. Only enable it if you're having a particular problem and need to open an issue.

Changes from 2023.1.0b1

  • Minor fix to make the lifx.set_hev_cycle_state service work as expected.

Changes from 2022.12.1

This first (ish) new LIFX Beta version in 2023 drops almost everything I was testing in the previous beta and uses a new technique I'm hoping is as effective in your setups as it has been on mine. This version also increases the update rate for all sensors to every 10 seconds as the integration now updates everything all at once.

Additional changes

This release includes the latest LIFX themes from the updated LIFX smartphone app v4.13.0 and resolves a bug with the LIFX pulse service when run against LIFX white bulbs.

Suggested Area Support

This build will automatically suggest the LIFX group as the suggested area for a light during config flow. This should improve onboarding for large fleets of lights.

Installation

Add https://github.com/Djelibeybi/ha-lifx-beta to HACS as a new repository in the Integration category. After a few moments, it should appear as a "New Repository" to be installed.

Enable debug logging

Note: Only enable debug logging if you're experiencing a problem and need to log an issue.

To enable debug logging, adjust your logger settings in configuration.yaml and specify debug for custom_components.lifx:

logger:
  default: info
  logs:
    custom_components.lifx: debug

If you want to report an issue, please collect some debug logs first, then open a GitHub issue and attach the logs. Be sure to review them first so you don't publish anything secret.

Removal

Remove the integration using HACS but remember to click "ignore" to keep your current config so that the core integration continues to work. You will need to restart to re-enable the core integration after removal.

Further documentation

See the LIFX documentation on the Home Assistant website.