Logic Machine Forum
dimming command - 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 command (/showthread.php?tid=4495)



dimming command - benanderson_475 - 13.01.2023

hi, 

Is possible to achieve dimming command from a script 
eg. event script to trigger a dim + or dim - with a stop command
grp.write happens instantly so i want to smooth out the step etc

i want to achieve a script command (event from binary obj) to control dimming like the knx input button dose dim(+/-) then stop when release etc.


RE: dimming command - Daniel - 13.01.2023

Dimming object works same as any other, you can write values to it. Different value is converted by dimmer to different step. Log this object and play with it to see which value you need for which step. Stop is 0


RE: dimming command - admin - 13.01.2023

Up 100% is 9, down 100% is 1. Stop can be 8 (up) or 0 (down).

Dim up event script:
Code:
value = event.getvalue()
grp.write('1/1/2', value and 9 or 8)

Dim down event script:
Code:
value = event.getvalue()
grp.write('1/1/2', value and 1 or 0)

It is also possible to do alternate up/down by checking the state of the 4-bit object.


RE: dimming command - benanderson_475 - 18.01.2023

Many Thanks