Example: Trigger KNX object on specific analog sensor input

Task

Monitor KNX group address 1/1/1 (analog wind sensor), if the value is greater than 5, switch on objects on group addresses 1/1/2 and 1/1/3 (shutters).

Add Event-based program

Source code    
  1. value = event.getvalue()
  2.  
  3. if value > 5 then
  4. grp.write('1/1/2', true)
  5. grp.write('1/1/3', true)
  6. end