Dimming + on/off on two buttons/inputs

475 views
Skip to first unread message

Jesper Lauridsen

unread,
Sep 21, 2017, 2:21:23 PM9/21/17
to Loxone English
Hi everybody

This is my first post in this group. I hope you guys can help me out.

I will soon order Loxone equipment for a new extension to my house. I have several rooms where I want the same behavior.
I am trying to set up two buttons to control dimming and switch on / off. The button look like this (Danish "FUGA"):
Billede indsat i tekst 1
By default the "Lighting Controller" function block toggles on/off and dims on the same button. That is NOT what I want.
So far I have used a "Push-button (+_-)" function block to make dimming work with two buttons, but I cannot get it all done.

What I want is:
  • Use one Input (I1) for On and dim+.
    • Short press on I1 will turn on at 100%.
    • Long press on I1 will dim+.
  • Use another Input (I2) for Off and dim-.
    • Short press on I2 will turn off.
    • Long press on I2 will dim-.
  • If output is already on (>= 1%) and short press on I1 again should set output to 100%.
  • If output is off and short press on I2 again should not do anything.

I hope this can be done. Probably I need a lot of logic functions.
I have already asked Loxone support directly about this, but they were not able to give me an adequate answer.
Looking forward to hear from you guys :-)

Kind regards,
Jesper

vampiris

unread,
Sep 21, 2017, 2:52:29 PM9/21/17
to loxone-...@googlegroups.com
Do you want to do all the above by using the "Lighting controller" block? Because i don't think that can been done in that way. There is also the "Dimmer" block which has an Input Plus and an Input Minus and with a double click you can set the output to maximum value, if the output is >=1%. Now, if you want to trigger some scenarios, there is the "P" input, which sets the output to input value on "P", but accordingly on how complicate the scenes are you will need a lot of programming and many feedback from and to other blocks.

Jesper Lauridsen

unread,
Sep 21, 2017, 3:33:17 PM9/21/17
to Loxone English
My intention wasn't to specifically use the lighting controller block. Yes, I have tried to use the dimmer block, but don't know exactly how to separate the short press and the long press?

vampiris

unread,
Sep 22, 2017, 12:11:48 AM9/22/17
to loxone-...@googlegroups.com
I don't know if there is something that i can't understand on what you are asking, but the "Dimmer" block does exactly what you want. Just use the "input Plus", short press will turn on the output and long press will dim up the lights. The opposite with "input Minus". If you double press the "input Plus" or the "input Minus", the output will turn on to full brightness. Just give it a try with the simulation on the configuration software.

Rob_in

unread,
Sep 22, 2017, 1:35:13 AM9/22/17
to Loxone English
Hi,

I'm pretty sure you can get this working but there's a couple of gotchas with long press detection.

I have something similar working and can look up the exact details and post if you like, but basically you need to set the delay on the long press block to 1/4 of your requirement. Take the last output only as the real long press trigger and all the rest as the simple press.

If you don't do this then you must long press for exactly your delay or anything longer triggers one of the outputs that won't be connected.

If it helps I also have multiple press detection working. I use this in conjunction with long press. Ie. if I press or long press one switch something or other is triggered. If I press two switches that are side by side together (I press them simultaneously) use that to turn everything in the room off. There's a thread about this here if you search.

HTH,

Robin

Rob_in

unread,
Sep 22, 2017, 1:40:47 AM9/22/17
to Loxone English
P.S. I would use the lighting block with your logic in front.

You can use logic to compare the output level of the block to decide to either send an input trigger to a dimming control or to set a specific scene (eg. like scene 9 which is all on).

Jesper Lauridsen

unread,
Sep 22, 2017, 2:54:21 AM9/22/17
to Loxone English
Yeah, it is almost working as I want.
It does require a double press to turn on to 100% instead of short press, and I don't want it to go full brightness when double pressing the "input Minus". Just as I don't want to turn off when short pressing "Input plus" (and output is >= 1%)

Jesper Lauridsen

unread,
Sep 22, 2017, 3:08:55 AM9/22/17
to Loxone English
Hi Robin

Thanks for your reply.
Yes, the long press vs the short press is the most complicated part I think. If I can distinguish between this, I believe I can make some logic for the rest.
I would really like to see how you implemented it.

/Jesper

Rob_in

unread,
Sep 22, 2017, 10:34:09 AM9/22/17
to Loxone English
There's a picture of the 'long press' thing on this post (the 'mode' picture)...

Jesper Lauridsen

unread,
Sep 24, 2017, 8:53:36 AM9/24/17
to loxone-...@googlegroups.com
Thanks Robin. I used your logic with the "Long click" together with the "Flipflop" to generate the long press.

I got the rest working by using the "Push-button (+/-)" block.

I also have a Motion sensor attached that should turn off the lights after x minutes - For that I have added a "delayed pulse" that resets the output.
It would have been easier to do if the "Lighting controller" block had a "P" input as well - and I would have the additional features like Scenes and Alarm. So if anyone can come up with a solution using the "Lighting controller" please let me know.

I have attached pictures if anyone should be interested :-)

/Jesper
Switches.PNG
Lighting.PNG
Reply all
Reply to author
Forward
0 new messages