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
- Ready-made kit: Kitchen LED Strip Kit – Shelly + Sonoff (controller + presence sensor): the Shelly Plus RGBW PM controller and the Sonoff SNZB-06P presence sensor together.
- Main device: Shelly Plus RGBW PM 12/24 V, one controller for the strip. Wi-Fi and Bluetooth, up to four channels, with power measurement.
- A 12 or 24 V LED strip and a power supply with the matching voltage: these are separate from the controller.
- Home Assistant.
Presence or motion sensor (one of them):
- Sonoff SNZB-06P: Zigbee presence sensor.
- Sonoff SNZB-03PR2: Zigbee motion sensor.
- Aqara Presence Multi-Sensor FP300: presence sensor with mmWave and PIR.
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
- 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.
- 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.
- Pair the sensor with the Zigbee adapter (ZHA or Zigbee2MQTT) and give it a name, for example “Kitchen presence”.
- Create an automation: either with a ready-made sensor-light blueprint, or with the YAML below.
- 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



