«
Rule languages supports generic trigger features
type | name |
---|---|
Switch | Switch1 |
rule 'Execute rule when item is updated to any value' do
trigger 'core.ItemStateUpdateTrigger', itemName: 'Switch1'
run { logger.info("Switch1 Updated") }
end
type | name |
---|---|
Number | InputItem |
Number | SetPointItem |
rule 'Execute rule when item is updated to any value' do
trigger 'pidcontroller.trigger',
input: InputItem.name,
setpoint: SetPointItem.name,
kp: 10,
ki: 10,
kd: 10,
kdTimeConstant: 1,
loopTime: 1000
run do |event|
logger.info("PID Command: #{event.command}")
end
end