# Dim with 1 button switch

**URL:** <https://community.homey.app/t/dim-with-1-button-switch/35830>\
**Category:** Flows\
**Created:** [October 11, 2020, 4:39pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830 "2020-10-11T16:39:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 11, 2020, 4:39pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/1 "2020-10-11T16:39:24Z")

</div>

Hello,

Does someone has a flow to dim with a 1 button switch? For example with the Xiaomi Button switch.

What I want is that when I hold the button it will dim up, if released and hold again within a few seconds; dim down.

Thanks

---

<div class="post-metadata">

**Author:** ![Wessel](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@Wessel](https://community.homey.app/u/Wessel)\
**Post date:** [October 11, 2020, 7:13pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/2 "2020-10-11T19:13:30Z")

</div>

Hi, I’ve Search for you on this forum:

> [@Easiest flow for button held dim](https://community.homey.app/t/easiest-flow-for-button-held-dim/10727/8):
>
> That’s actually how I have it now, as I could not figure the real dimming flow out for hold out. I just have two buttons instead, so it was really easy to do it that way, because I did not need conditions for what way it dims slight_smile

Does it helps you?

---

<div class="post-metadata">

**Author:** ![Joe1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joe1/32/18065_2.png) [@Joe1](https://community.homey.app/u/Joe1)\
**Post date:** [October 12, 2020, 2:55pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/3 "2020-10-12T14:55:28Z")

</div>

[https://homey.app/f/b0Ijtk](https://homey.app/f/b0Ijtk)

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 12, 2020, 4:55pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/4 "2020-10-12T16:55:58Z")

</div>

I tried that but wasn’t working like I want it to be…

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 12, 2020, 4:56pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/5 "2020-10-12T16:56:11Z")

</div>

This isn’t what I mean

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 13, 2020, 11:34am UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/7 "2020-10-13T11:34:25Z")

</div>

Then click and hold first up than down.

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 13, 2020, 11:35am UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/8 "2020-10-13T11:35:43Z")

</div>

I found out that when I use relative dim it doesn’t work when binding to the hold function. When I hold it nothing happens, then I release it and it will dim 1x relative. Anyone know what can be the case?

---

<div class="post-metadata">

**Author:** ![Wessel](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@Wessel](https://community.homey.app/u/Wessel)\
**Post date:** [October 13, 2020, 8:00pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/9 "2020-10-13T20:00:06Z")

</div>

@timvdhoorn with the information from the link iets possible to create the flow what you want have. I’m using the second input from a fibaro dimmer 2 for the dim loop by a hue bulb.  
Flow with the action “hold down”:  
[https://homey.app/f/Foayzk](https://homey.app/f/Foayzk)  
Flow to dim\_down:  
[https://homey.app/f/i-qyzk](https://homey.app/f/i-qyzk)  
Flow to dim\_up:  
[https://homey.app/f/cmHyzk](https://homey.app/f/cmHyzk)  
Flow to stop transition and change dim-up\<\>dim-down:  
[https://homey.app/f/\_f4zzk](https://homey.app/f/_f4zzk)

Tell me when you need some help!

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 15, 2020, 3:35pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/10 "2020-10-15T15:35:49Z")

</div>

I will try to duplicate it, thanks!

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [October 15, 2020, 8:12pm UTC](https://community.homey.app/t/dim-with-1-button-switch/35830/11 "2020-10-15T20:12:25Z")

</div>

I managed to create something to my likings by your tips, just sharing it here for others.
