4 min read

Smart LED strips: control of brightness, colours and effects

An RGBW strip controller joins Home Assistant as a light: you change brightness and colour from the app, from a button and from an automation. For animated effects we also look at WLED.

Level
Intermediate
Active time
45–120 minutes
Home Assistant required
Yes

An LED strip behind the TV or under a cabinet is lovely until you switch it on with a little remote that is always getting lost. A controller that talks to Home Assistant turns it into an ordinary light: with brightness, colour, a scene and a button on the wall.

What you will get

  • One RGBW strip controlled by Home Assistant: on and off, brightness, colour and white light.
  • Favourite settings as scenes: “evening”, “cinema”, “night light”.
  • A button on the wall for switching on and off.
  • Clarity on when the controller is enough and when animated effects are needed.

We don’t include the strip and the power supply: we don’t sell them. Buy them so that they match the controller.

What you need

  • Shelly Plus RGBW PM 12/24 V controller: you need 1 per strip. It is for 12 or 24 V strips and is a Wi-Fi device.
  • An RGBW strip with the same voltage as the power supply and the controller. A 12 V strip is not powered from 24 V.
  • A power supply with enough power. Work out the strip’s power per metre over its length and leave a margin; the data is on the packaging.
  • Home Assistant with the Shelly integration.

Connecting takes about half an hour.

How it works

The controller has four channels: red, green, blue and white. Home Assistant sees it as a light entity with brightness and colour. The controller also measures power (PM in the name), so you see how much the strip draws.

A scene in Home Assistant is a saved set of states. When you switch it on, the strip gets its brightness and colour.

How it is at our place

Marto has two devices of the Shelly Plus RGBW PM type and four additional WLED controllers. The difference is useful: the Shelly controller gives brightness and colour; WLED adds built-in animations with speed and intensity settings (in Home Assistant they are number entities). If you want only colour and brightness, you need the Shelly controller. If you want flowing effects, look at WLED.

In his automations the switch in the bedroom toggles the strip with a single press, and on a long press it smoothly starts a wave of brightness until you release. This uses our own, not a public, development; for the same behaviour start with a plain switch-on.

Steps

  1. Switch off the power before connecting wires. Connect the controller’s outputs to the strip and the power supply following the diagram in the manufacturer’s documentation. Don’t mix up the polarity.
  2. Switch the power on. In the Shelly app or in Home Assistant add the device to your Wi-Fi. Expect it to appear in Settings → Devices & services.
  3. In Home Assistant open the light entity of the controller and try brightness and colour.
  4. Set a colour and brightness you like. Save them as a scene: Settings → Automations & scenes → Scenes → Create scene.
  5. An example automation: the strip switches on at sunset with a dim warm light. The values and names are examples:
alias: Strip - evening light
triggers:
  - trigger: sun
    event: sunset
actions:
  - action: light.turn_on
    target:
      entity_id: light.lenta_hol
    data:
      brightness_pct: 30
      color_temp_kelvin: 2700
mode: single

You paste it into a new automation through Edit in YAML. If the strip doesn’t support a white colour temperature, replace the line with rgb_color, e.g. [255, 140, 40].

Checking the result

  • Switch the strip on from Home Assistant at 10%, 50% and 100% and compare with the power supply: nothing should flicker or heat up strangely.
  • Cut the power and restore it. The strip returns to the state you chose on the controller; check it.
  • Watch the power: at full brightness it is highest. Compare it with the strip’s data.

If it doesn’t work

  • The colours are swapped: swap the controller’s channels or change the order of the strip’s wires.
  • The strip flickers or is dark at the end: the power supply is too small or the wire is too thin. Look at the power supply and the length of the strip.
  • The controller isn’t added: check that it is on the same Wi-Fi and that Home Assistant sees it in Settings → Devices & services.
  • The effects are missing: the built-in controller doesn’t provide them. Look at WLED.

Limitations

The controller is not for a strip with another chip type (addressable): then you need WLED. The strip is not part of the product. If the Wi-Fi drops, the controller stays in its last state, but it can’t be controlled from Home Assistant.

Sources and verification status

At home

Marto

Marto's Home Assistant has two Shelly Plus RGBW PM controllers and four WLED devices for strips. The switch by the bed toggles the strip, and on a long press it smoothly changes its brightness. The WLED strips have separate numeric settings for the speed and intensity of the effect.

Need a hand?

We can set up and install everything in this project. In some regions we install it ourselves — ask us.

Contact us

Related projects

LED strip controller Shelly Plus RGBW PM 12/24V (WiFi)

32,90 €
View parts

What you need

Added to cart

Real Home Automations

Sign in to your account

With a code sent to your email

Continue with Google
or

By continuing, you accept the Terms and Conditions and the Privacy Policy.