Example: KNX/EIB bus control and event notifications via SMS over 3G modem

Installing USB GSM adapter in the Logic Machine 2

Command syntax

Write to bus:

Read from bus:

ALIAS can be:

Note!

Examples

Binary write (send the following SMS to switch kitchen lights on):

Scaling write (send the following SMS to set value 67% for red LED):

Temperature (floating point) write (send the following SMS to make setpoint in the living room to 22.5 degrees):

Read (send the following SMS to read the security panel value:

Send SMS to numbers 23335555 and 2333556 after group-read or group-write is triggered for address 1/1/1

Source code    
  1. require('socket')
  2.  
  3. client = socket.udp()
  4.  
  5. -- in the message field the number where SMS has to be send should be specified at the beginning
  6. local msg = '23335555 1/1/1 changes its value to: ' .. tonumber(event.datahex)
  7. client:sendto(msg, '127.0.0.1', 12535)
  8.  
  9. msg = '23335556 1/1/1 changes its value to: ' .. tonumber(event.datahex)
  10. client:sendto(msg, '127.0.0.1', 12535)
  • The resident script will run each second and check for new messages and send them