Integrate a controller LED Wi-Fi "Magic Home" on Home Assistant

5 minutes of reading
Guide purposes:
  • Integrate one (or more) LED controller Wi-Fi Flux Led / Magic Light series "Magic Home”To the configuration Home Assistant in order to control these lights via the interface and, above all, to introduce automatisms (effects, play of lights, planned switching on / off etc.) linked to the rest of the domotics
  • Difficulty level: medium low
Concepts dealt with:
  • Software configuration
  • Definition of scenarios lumino Yes
  • Automation
Software components used:
Prerequisites:
  • Home Assistant configured and working
  • Controller LED already configured at theapp mobile “Magic Home" (for Android e iOS)
Physical devices used:
GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi modifica all'impianto elettrico dev'essere progettata ed effettuata da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.

Abstract

L'illumination based on LEDs has made known in recent years strides. It is not a mystery how, in the face of almost irrelevant expenses, it is possible to have systems of thelumination very efficient both in terms of consumption and in terms of of flexibility of use. The old "light bulb from 100w”Is giving way to multi-colored systems, capable of delivering different light temperatures, intensity, with just a few watts of consumption lumivariable nose and much more.

LED Strip sceneryEvolution in evolution, entry of the support Wi-Fi to this type of components, which allows you to control them, it goes without saying, via smartphone, tablet, computer, smart speaker.

One of the systems more apprezzati, economic and functional available today is that of LED controller Wi-Fi RGB (W) of the Flux Led / Magic series Light, system that allows the use of LED strips luminose able of thelumito create indoor and outdoor environments (thus resistant to humidity), lending themselves to many different scenarios.

By itself these systems offer great versatility; integrated with a personale HUB like Home Assistant, they give literally the best, all with a very limited investment. Integration with Home Assistant, described in this guide, It allows:

  • register one or more LED controllers at the profirst personal home automation;
  • control them via interface Home Assistant;
  • manage their behavior through automation;
  • use it as a visual notification system ("set a flashing red in case of opening opening detection");
  • automate the choice of light temperature (white) based on time and circadian rhythms

and more. The limit is fantasy.

This guide allows you to integrate i LED controller Wi-Fi of the line "Magic Home", which are available on the market under many different names:

  • ASMTLED
  • LitaElek
  • DoCooler
  • Magic Light/ Home
  • SODIAL
  • Helight
  • LEDMOMO
  • XZante

and others. On card prolearned it's explained how to recognize them.

It starts

First configuration

Before approStart the integration of the LED controller with Home Assistant the component must be correctly configured on the relative app mobile “Magic Home" (for Android e iOS). Doing it is very simple: just open theapp, power the LED controller and run the procedura of "addition again device" through Wi-Fi. In case of difficulty, a video is available here which explains how to do the prostep by step cedura.

Once configured, the controller (s) will be / know listed at the dashboard dell 'app same:

Magic Home - Dashboard

At this point it will be possible (but not mandatory, as we will see later) to attribute to the profirst home router a static IP to the LED controller (s) appena surveyed.

Integration

At this point it is possible to configure the integration with Home Assistant.
the configuration basis, which uses the platform Home Assistant "Flux Led / Magic Light", It's pretty simple.

It will be sufficient to insert an entry of this type:

light:
  - platform: flux_led
    automatic_add: True

The use of the attribute "automatic_add"Indicates a Home Assistant to automatically search for one or more controllers on the local network.
Prosee now at reboot di Home Assistant.

In case Home Assistant if you don't find any controller by yourself, you will need to indicate the assigned IP addresses on time via static assignment:

light:
  - platform: flux_led
    devices:
      192.168.1.10:
        name: LED 1
        mode: "rgbw"
  - platform: flux_led
    devices:
      192.168.1.11:
        name: LED 2
        mode: "rgb"

This configuration example - as long as the two IPs are reachable from Home Assistant - will generate two entity light type, "light.led_1" and "light.led_2“, The first of RGBW type, the second of RGB type.

The following example has the characteristics of an entity ("light.led") RGBW, which has a fourth channel dedicated to white light:

Home Assistant - Flux Led Magic Light Component

Default values

Each light type entity has the possibility to be personalized so as to assume a certain state (color, intensity) luminosa and other) to the probefore ignition.

The thing is feasible through two techniques: the use of ad hoc automation or the use of a file containing i prodefault wires from applicare to every light (or to all the lights, like grouping). How to implement a default settings file is explained in detail on the page dedicated to components Home Assistant "Light”.

For the approto automation, profollow in reading.

Automation

achieved the first goal - or register the LED controller at Home Assistant - is now possible to define automations and scenarios useful for the management of this entity.

The platform Home Assistant "Flux Led / Magic Light“In fact, it allows a series of customizations, for example the use of effects luminoses and plays of light. Such effects and games can be implemented automatically at power up ("turn_on", Component service"Light"To which the integration platform refers).

An example of automation is the following:

automation:
  alias: imposta un colore casuale
  trigger:
    platform: time
    seconds: '/45'
  action:
    service: light.turn_on
    data:
      entity_id: light.led
      effect: random

This automation, if active, changes the 45 seconds the color to the entity "light.led"Using the effect"random"
The complete list of effects is available on the page dedicated to the platform “Flux Led / Magic Light"

Light and circadian rhythms

Light and organism

A really interesting feature manageable via an integrated LED controller profirst home automation Home Assistant is to let it adjust automatically the temperature of white light based on the time of day.

It is indeed provated as warmer temperatures in the early morning and especially in the evening, and temperatures cooler and stronger than lumiof brilliance during the day they help the body to obtain a better psychophysical balance. This is because i circadian rhythms tend to align with sunlight, which has probefore the characteristics listed above.

To implement this simple but powerful feature the platform meets us "Flow Light Adjustment"Which allows us to create a virtual switch which, if activated, causes the lights connected to it - when switched on - prothey aim to deliver the right light temperature based on the time of day (or in specific hourly intervals decided by the user).

the configuration basis of this platform at the file configuration.yaml it's pretty simple.
It is sufficient to insert an entry of this type:

switch:
  - platform: flux
    lights:
      - light.led_1
      - light.led_2

Nb Notice how with the above configuration you go to create a new one "Switch“, Not to be confused with the configuration relating to the integration of the controller (s), which appanointed creates a type entity "and "light", too"

It goes without saying that the lights involved by this feature (activated via switch) they must already be integrated presso Home Assistant as explained in the section "integration”Of this guide.

Obviously this platform does not only work with the entity created through integration of LED controller "Magic Home" explained in this guide, but also with any other that supports the dynamic management of light temperature.

The platform "Flow Light Adjustment”Offers many configuration customizations, such as choice of light temperature range, setting times, update intervalsnamento and other. For more approspecific linings, refer to to the relevant tab to that platform.

Here is an example of a more complete configuration:

switch:
  - platform: flux
    lights:
      - light.led_1
      - light.led_2
    name: Fluxer
    start_time: '7:00'
    stop_time: '23:00'
    start_colortemp: 4000
    sunset_colortemp: 3000
    stop_colortemp: 1900
    brightness: 200
    disable_brightness_adjust: True
    mode: xy
    transition: 30
    interval: 60


Home Assistant Official LogoATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Home Assistant, for any doubt, question, information on the specific merit of these components.


telegram

Stay up to date through ours Telegram channel!