4 min read

A kitchen LED strip that turns on by itself when you walk in

A strip under the kitchen cabinets that turns on when you walk in and turns off after a pause. A presence sensor, a controller for the strip and one automation in Home Assistant.

Level
Beginner
Active time
30–45 minutes
Home Assistant required
Yes

You walk into the kitchen with both hands full of dishes and don’t want to look for a switch. A strip under the cabinets, connected to a presence sensor, turns on as soon as you walk in and turns off a few minutes after you leave.

What you will get

  • Soft light on the countertop that comes on only when someone is in the kitchen.
  • Automatic switch-off after a pause that you choose yourself.
  • The wall switch stays for the main light.

What you need

Presence or motion sensor (one of them):

You need a Zigbee hub, or Home Assistant with a Zigbee adapter.

How we set it up at home

In Marto’s kitchen the strip is single-colour white and is connected to a Shelly Plus RGBW PM controller in white, single-channel strip mode. In Home Assistant it is the light “Kitchen LED strip”, brightness only. The sensor is the wired (USB) Zigbee presence sensor Sonoff SNZB-06P (binary_sensor.kitchen_presence, occupancy class).

The automation “Kitchen presence sensor lights” is built from Blackshome’s Sensor Light blueprint: when the sensor detects presence, it turns the strip on, and it turns it off after 5 minutes without presence. The blueprint is set up without colour control.

The wall switch in the kitchen is wireless, over MQTT. A single click works like this: if the strip or the main lamp is on, it turns both off. If everything is off, it turns on only the main one. The strip comes on by itself from presence.

How it works

Presence (occupancy) says “there is a person”, not “there is motion”. That is why the strip doesn’t go off while you cook standing still at the stove: with a motion sensor it would. In the article The lamp goes off while you sit on the sofa we explain the difference.

The delay (5 minutes in our setup) keeps the strip from flickering during short exits, for example to the fridge in the next room.

Steps

  1. Connect the strip to the outputs of the Shelly Plus RGBW PM and to its power supply. Add the controller to Home Assistant through the Shelly integration.
  2. Set the controller to white, single-channel strip mode (in the web interface or the Shelly app), as we did. The strip becomes a single light with brightness only.
  3. Pair the sensor with the Zigbee adapter (ZHA or Zigbee2MQTT) and give it a name, for example “Kitchen presence”.
  4. Create an automation: either with a ready-made sensor-light blueprint, or with the YAML below.
  5. Assign the strip and the sensor to the “Kitchen” area so you can see them together on the dashboard.

Result after step 4: you walk into the kitchen and the strip turns on; you leave and after 5 minutes it turns off.

YAML example. The entity IDs are examples, and so are the 60 % brightness and the 5 minutes:

alias: Kitchen – presence strip (example)
triggers:
  - trigger: state
    entity_id: binary_sensor.kitchen_presence
    to: "on"
    id: present
  - trigger: state
    entity_id: binary_sensor.kitchen_presence
    to: "off"
    for: "00:05:00"
    id: gone
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: present
        sequence:
          - action: light.turn_on
            target:
              entity_id: light.kitchen_led_strip
            data:
              brightness_pct: 60
              transition: 1
      - conditions:
          - condition: trigger
            id: gone
        sequence:
          - action: light.turn_off
            target:
              entity_id: light.kitchen_led_strip
            data:
              transition: 3
mode: restart

Check the result

  • Walk into the kitchen: the strip should turn on within a second or two.
  • Stay still for a few minutes: the strip should not turn off.
  • Leave and wait for the set time: the strip turns off.
  • Restart Home Assistant: the automation should keep working.

If it doesn’t work

  • The strip doesn’t turn on → the sensor is not in the “on” state → check its history in Home Assistant.
  • The strip turns off while you stand there → a motion sensor instead of a presence sensor → extend the delay or change the sensor.
  • The strip is on during the day too → the automation has no time or light condition → add a sun or time condition.

Limitations

  • Without a time or sun condition, the strip also turns on during the day.
  • With the YAML example, a strip turned off by hand stays off until presence goes through “none” and “present” again.

More about strips: Smart LED strips: control of brightness, colours and effects.

Sources and verification status

Checked on 23.11.2026. The “How we set it up at home” section is from reading Marto’s Home Assistant.

At home

Marto

In Marto's kitchen the single-colour white strip runs on a Shelly Plus RGBW PM, and presence comes from the wired Sonoff SNZB-06P sensor. The strip turns off after 5 minutes without presence.

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

Project kit

Original price was: 47,80 €.Current price is: 45,42 €.
View parts

What you need

Kitchen LED Strip Kit – Shelly + Sonoff (controller + presence sensor)

Requires a Zigbee hub or Home Assistant with a Zigbee adapter.

Original price was: 47,80 €.Current price is: 45,42 €.

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.