Logic Machine Forum
dimming two lights at once - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: dimming two lights at once (/showthread.php?tid=1827)



dimming two lights at once - managementboy - 11.01.2019

Hi!

I have several lights I would like to dimm at the same time with the same button. Each light has a KNX dimming object assigned to it (4/1/1 and 4/1/2). Can I create a new dimming object and script it in such a way as to dimm the "real" objects? Or am I misunderstanding something?

Cheers!


RE: dimming two lights at once - Daniel - 11.01.2019

Hi
Why don't you just create new knx group for all of them?
BR


RE: dimming two lights at once - managementboy - 11.01.2019

I guess that's where my brain is not helping me. I have a group (4/1/3) that should dimm both, but how do I tell the dali balast (dev 1 and 2), that are linked to 4/1/1 and 4/1/2 respectively that when 4/1/3 is dimming, they should, too?


RE: dimming two lights at once - Daniel - 11.01.2019

Do you use LM dali or external KNX/DALI ?


RE: dimming two lights at once - managementboy - 11.01.2019

LM Dali


RE: dimming two lights at once - Daniel - 11.01.2019

The easiest is to link dimming object to the same group then they will work together. Do you want to also control them separately?


RE: dimming two lights at once - managementboy - 11.01.2019

(11.01.2019, 10:21)Daniel. Wrote: The easiest is to link dimming object to the same group then they will work together. Do you want to also control them separately?

that's exactly what I want to do. Dimm them separately and together when needed.


RE: dimming two lights at once - Daniel - 11.01.2019

Then you have 2 options:
1. Technically correct way - Create DALI group and then control them via script. Unfortunately our tool still do not allow to create grouping and you would have to use an external one.
2. Link them over KNX via simple script like this

Code:
value = event.getvalue()
grp.update('Dali Internal - 1 4-bit dimming', value)
KNX is much faster than DALI so it should work flawlessly, specially that we just use IP command here.

BR


RE: dimming two lights at once - managementboy - 11.01.2019

(11.01.2019, 10:51)Daniel. Wrote:
Code:
value = event.getvalue()
grp.update('Dali Internal - 1 4-bit dimming', value)

thanks Daniel!

So I take the dimming object that to link both and I do this?
Code:
value = event.getvalue()
grp.update('4/1/1', value)
grp.update('4/1/2', value)

to update both?


RE: dimming two lights at once - Daniel - 11.01.2019

Yes you need new object let say 4/1/3 and create an event based script on it with your code.


RE: dimming two lights at once - managementboy - 11.01.2019

works like a charm, thanks!!