This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

dimming command
#1
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.
Reply
#2
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
------------------------------
Ctrl+F5
Reply
#3
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.
Reply
#4
Many Thanks
Reply


Forum Jump: