# Control dimmer using push button

**URL:** <https://community.homey.app/t/control-dimmer-using-push-button/47014>\
**Category:** Flows\
**Tags:** z-wave\
**Created:** [May 3, 2021, 2:51pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014 "2021-05-03T14:51:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Vermeulen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_vermeulen/32/33942_2.png) [@Rob\_Vermeulen](https://community.homey.app/u/Rob_Vermeulen)\
**Post date:** [May 3, 2021, 2:51pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/1 "2021-05-03T14:51:27Z")

</div>

Hi everyone, newbie here! Got my Homey Pro working with a bunch of switches, made a few simple flows that actually work and make me feel happy.

Now I’m experimenting with a Robb smarrt 4 button wall unit. Works fine for switching things on and off. But I now want one pair of buttons to control a dimmable light, using an Everspring AD147 dimmer plug (and later maybe a Fibaro dimmer for another light).

For each of the buttons In the wall unit’s ‘Scene activated’ card I can choose between

- ‘pressed once’-
- ‘pressed longer’
- ‘released’.

I want to dim, so I go for ‘pressed longer’. But what to do next? In the ‘Then…’ section the dimmer gives me five cards to choose from:

- Dim to…
- Relative dimming level…
- Switch on
- Switch off
- Switch on/off

Should be the first or second, I presume. But in both I have to enter a number. And what I want is the value to step up or down until the button is released. Can’t think of a way to get that done…

Help very much appreciated!

(All options mentioned I have translated from Dutch; don’t know the English versions. Let me know if you want to help me and need screenshots.)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 3, 2021, 4:13pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/2 "2021-05-03T16:13:26Z")

</div>

Have a look here:

> [@Easiest flow for button held dim](https://community.homey.app/t/easiest-flow-for-button-held-dim/10727/9):
>
> I have actually been working on this for a bit of late, so maybe what I have done can be of use for you. I am using a Xiaomi button that has the long-press function and an IKEA Tradfri bulb, I am also using the transitions app that @viix suggested. On long-press, I check what the DimUP boolean is saying (true = dim UP), if it is true I start a transition from the current dimlevel of the bulb to 1 in 5 seconds with 0.5s steps. If it is false, I go to 0. At the same time I tell the bulb to star…

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 3, 2021, 4:18pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/3 "2021-05-03T16:18:04Z")

</div>

Er is ook een Nederlands deel op dit forum: [🇳🇱 Nederlands (Dutch) - Homey Community Forum](https://community.homey.app/c/nederlands/75/l/latest) voor alleen Nederlands, maar dan mis je alle niet Nederlandse commentaren.

---

<div class="post-metadata">

**Author:** ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)\
**Post date:** [May 3, 2021, 4:28pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/4 "2021-05-03T16:28:04Z")

</div>

Short version without extra apps:

Create a variable “DimmingStatus” with YES/NO.

> Flow 1:  
> **IF**  
> pressed longer  
> **THEN**  
> Start Flow2

> Flow 2:  
> **IF**  
> Flow is started  
> **AND**  
> DimmingStatus = NO  
> **THEN**  
> Set relative dimming level -5% (or -10% if you want to dim faster)  
> Start Flow2 (so the same flow) after 1 second  
> **ELSE**  
> Set relative dimming level +5% (or +10% if you want to dim faster)  
> Start Flow2 (so the same flow) after 1 second

> Flow 3:  
> **IF**  
> Released  
> **THEN**  
> Stop/Disable Flow 2  
> Toggle variable DimmingStatus YES \<\> NO  
> Enable Flow 2 after 2 seconds

---

<div class="post-metadata">

**Author:** ![Rob\_Vermeulen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_vermeulen/32/33942_2.png) [@Rob\_Vermeulen](https://community.homey.app/u/Rob_Vermeulen)\
**Post date:** [May 4, 2021, 9:26am UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/5 "2021-05-04T09:26:16Z")

</div>

Thank you! So this brings me to the next level: multiple interacting flows…

I’ll certainly try this as soon as I get the chance, will post results.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [May 4, 2021, 10:38am UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/6 "2021-05-04T10:38:04Z")

</div>

> [@Rob\_Vermeulen](#):
>
> So this brings me to the next level: multiple interacting flows…

This next level can become complexe. Some time ago I shared [how I structure my flows](https://community.homey.app/t/how-to-structure-your-flows/25109) in such a way that you be able to keep an overview even with interacting flows.  
Hope it helps…

---

<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:** [May 4, 2021, 9:03pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/7 "2021-05-04T21:03:30Z")

</div>

another thread:

> [@Dim with 1 button switch](https://community.homey.app/t/dim-with-1-button-switch/35830):
>
> 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:** ![Rob\_Vermeulen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_vermeulen/32/33942_2.png) [@Rob\_Vermeulen](https://community.homey.app/u/Rob_Vermeulen)\
**Post date:** [May 21, 2021, 1:30pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/8 "2021-05-21T13:30:39Z")

</div>

Well, I tried but the results are not ideal. After a few steps the dimming stops. Then for a while the dimmer (Fibaro) quits responding at all, cannot even switch it off, and Homey starts throwing error messages. Looks like it cannot keep up with all these commands.

For now I’ll keep using my phone to change the dimming level. Don’t need to do that very often so it’s not a real problem.

---

<div class="post-metadata">

**Author:** ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)\
**Post date:** [May 21, 2021, 1:38pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/9 "2021-05-21T13:38:09Z")

</div>

It’s true that you have to give it some time so switch it’s variable. So it’s not the same like when the button is directly connected the dimmer in which case you can push the button and release and push it immediately again. Maybe share your flows here so we can have a look at it?  
I’m not sure if the Robb smart button and your dimmer are both Z-wave? Because then you could also use associations (I think). But let’s start of with sharing them flows 🙂

---

<div class="post-metadata">

**Author:** ![Rob\_Vermeulen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_vermeulen/32/33942_2.png) [@Rob\_Vermeulen](https://community.homey.app/u/Rob_Vermeulen)\
**Post date:** [May 21, 2021, 2:07pm UTC](https://community.homey.app/t/control-dimmer-using-push-button/47014/10 "2021-05-21T14:07:22Z")

</div>

Hi Didier, thanks for reacting so quickly (faster than Homey…)! Sharing the flows will take a little time since I have deleted them – the dimmer kept giving trouble and I suspected the flow(s) just wouldn’t quit anymore. I’ll post them when I got the time to make them again!

In the meantime I can assure you the button unit and the dimmer are both Z-wave. Here’s the descriptions from the shop where I got them:

> **[Wandzender 8V Z-wave | ROBB Smarrt](https://www.robbshop.nl/wandzender-8v-z-wave-robb-smarrt)**
>
> Wil je een schakelaar maken op een plaats waar geen inbouwdoos zit, of ben je vergeten draden te trekken? Geen probleem. Met deze wandzender bedien j…

> **[FIBARO Dimmer 2 | De slimste inbouwdimmer](https://www.robbshop.nl/fibaro-dimmer-2-module-250w)**
>
> De beste slimme led dimmer ✔️ Dim je verlichting met een app ✔️ op werkdagen voor 12:00 besteld, vanavond nog in huis!
