20.12.2017, 19:26
(This post was last modified: 20.12.2017, 19:38 by Erwin van der Zwart.)
Hi,
You can't enable / disable schedulers by script, but you can create some logic and use a internal object for the scheduler and attach script below to it and create a internal object to set the en/disable state.
For scenes commands see http://openrb.com/docs/lua.htm#11
BR,
Erwin
You can't enable / disable schedulers by script, but you can create some logic and use a internal object for the scheduler and attach script below to it and create a internal object to set the en/disable state.
Code:
address_en_disable = '32/0/2'
address_output = '1/1/1'
if event.getvalue() == true and grp.getvalue(address_en_disable) == true then
grp.write(address_output, true)
else
grp.write(address_output, false)
end
For scenes commands see http://openrb.com/docs/lua.htm#11
BR,
Erwin