17.03.2017, 12:40
Hello, I need to change setpoint value via direct button. my idea is up or down 1ºC every time that I push the button, it is possible directly from LM using aditional classes or scripts? THX.
Josep.
Josep.
Setpoint direct modification
|
17.03.2017, 12:40
Hello, I need to change setpoint value via direct button. my idea is up or down 1ºC every time that I push the button, it is possible directly from LM using aditional classes or scripts? THX.
Josep.
17.03.2017, 12:54
(17.03.2017, 12:40)josep Wrote: Hello, I need to change setpoint value via direct button. my idea is up or down 1ºC every time that I push the button, it is possible directly from LM using aditional classes or scripts? THX. Put this in a event for the button. Change + with - for decreasing set point. Fill in top two with corresponding group address. Code: 123456 value = grp.getvalue('x/x/x') -- Current value
send = 'x/x/x' -- Setpoint input
newvalue = value + 1
grp.write(send, newvalue)
17.03.2017, 14:33
Or if you map it to a binary object, you can do +/- with a single script and 2 buttons in send fixed value mode.
Code: 123 offset = event.getvalue() and 1 or -1
setpoint = grp.getvalue('1/1/1')
grp.write('1/1/1', setpoint + offset)
17.03.2017, 15:22
|
« Next Oldest | Next Newest »
|