# Dimming different after sunset

**URL:** <https://forum.velbus.eu/t/dimming-different-after-sunset/18090>\
**Category:** English\
**Created:** [February 25, 2026, 9:41pm UTC](https://forum.velbus.eu/t/dimming-different-after-sunset/18090 "2026-02-25T21:41:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jellep](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@Jellep](https://forum.velbus.eu/u/Jellep)\
**Post date:** [February 25, 2026, 9:41pm UTC](https://forum.velbus.eu/t/dimming-different-after-sunset/18090/1 "2026-02-25T21:41:15Z")

</div>

Hi

I have one pushbutton where I control some lights with.  
I have 2 scenarios:

- During daylight:
  - short press → light goes on 100%
  - long press → dimming

- After daylight:
  - short press → light goes on 50%
  - long press → dimming

Whenever the light is on, when you press short, the light has to go off.  
How do I this efficient as possible (with as few virtual relais as possible).

Thanks

---

<div class="post-metadata">

**Author:** ![MDAR](https://forum.velbus.eu/user_avatar/forum.velbus.eu/mdar/32/4215_2.png) [@MDAR](https://forum.velbus.eu/u/MDAR)\
**Post date:** [February 25, 2026, 10:16pm UTC](https://forum.velbus.eu/t/dimming-different-after-sunset/18090/2 "2026-02-25T22:16:51Z")

</div>

There’s a simple solution, if you have a mini computer with either

- NodeRed
- Home Assistant
- openHAB

Just run a rule that monitors the dim level Vs time of day

Between xPM & xAM, if the dim level goes over 50%, drop it back down.

Then your button action need be nothing more than  
Toggle at short press, Dim at long press.
