# Dim lights with a namron switch

**URL:** <https://community.homey.app/t/dim-lights-with-a-namron-switch/139236>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [July 4, 2025, 3:40pm UTC](https://community.homey.app/t/dim-lights-with-a-namron-switch/139236 "2025-07-04T15:40:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [July 4, 2025, 5:09pm UTC](https://community.homey.app/t/dim-lights-with-a-namron-switch/139236/2 "2025-07-04T17:09:07Z")

</div>

I was able to help flipmoo with his blinds. He wanted to tap-and-hold and then release the button when the blinds reaches the desired position.

> [@Zonnescherm in en uit rollen d.m.v. Knop ingedrukt houden](https://community.homey.app/t/zonnescherm-in-en-uit-rollen-d-m-v-knop-ingedrukt-houden/127745/9):
>
> Wellicht kan het met een transition uit de chronograph app: (Ik heb geen zonnescherm dus ik dim als voorbeeld mijn keukenlamp. Ik heb ook maar één knop die vasthouden en loslaten ondersteunt. Waar ik ‘Dim niveau ‘ gebruik, moet jij de positie van het zonnescherm gebruiken) Stel het zonnescherm gaat in 25 seconden van 0 (%) naar 1(100%), dan duurt het vanaf 0,35 (35%) open naar 1 (100% ) dus (1-0,35)\*25 seconden. Er zijn dan ipv 100 stappen (1-0,35)\*…

(I don’t have a sunshade so I dim my kitchen lamp as an example. I also only have one button that supports holding and letting go. Where I use ‘Dim level’, you have to use the position of the sunshade)

Suppose the sunshade goes from 0 (%) to 1(100%) in 25 seconds, then it takes from 0.35 (35%) open to 1 (100% ) so (1-0.35)\*25 seconds. Instead of 100 steps (1-0.35)\*100 steps are needed. I put these values in variable ‘runtime’ and ‘steps’

Each time the transition reaches a step, the transition value is therefore 0.01 higher and the sunshade is opened 1% further.

---

_[View the full topic](https://community.homey.app/t/dim-lights-with-a-namron-switch/139236)._
