BasVerkooijen / cluster-lights-home-assistant

Cluster Lights custom component for Home Assistant
7 stars 0 forks source link

Cluster Lights component for Home Assistant

This custom component and driver for Home Assistant implements support for Cluster Lights as sold by Action and some other stores. The Cluster Lights are supported by the Lights App.

What is working

Limitations

Only support for Warm White variant currently.

Requirements for Home Assistant instance

Python dependencies

sudo pip3 install bluepy voluptuous

Adding the component to Home Assistant

  1. Checkout repository

    git clone https://github.com/BasVerkooijen/cluster-lights-home-assistant.git

  2. Copy the folder clusterlights to your custom_components folder in Home Assistant installation directory

    ❓: Create the custom_components folder in your Home Assistant configuration directory if you don't have custom components yet:

    mkdir <path to your config dir>/custom_components

    cp -r <path to git repo>/clusterlights <path to your config dir>/custom_components

  3. Add a configuration for your cluster lights to configuration.yaml

    # configuration.yaml
    light:
     - platform: clusterlights
       devices:
         "AA:BB:CC:DD:EE:FF":
           name: Christmas Tree
    • devices

      (list)(Required)

      The list of cluster lights devices.

      • mac_address

      (list)(Required)

      The MAC address of the cluster lights.

      • name

        (string)(Optional)

        A name for the entity to create in the front-end.

  4. Restart Home Assistant instance

    Example for Python virtual env installation:

    sudo systemctl restart home-assistant@homeassistant

  5. The clusterlights integration will create a light entity with the provided name. You can add this entity to your lovelace dashboard with the light card.

    ⚠️: When no entity is created, the integration failed to initialize the cluster lights. You can inspect the Home Assistant log to see what is going wrong.