Example: KNX/EIB bus control and event notifications via SMS
Installing USB GSM adapter in the Logic Machine 2
- We use Huawei E173 modem in our tests
- The modem has to be plugged into any of USB ports of LM2 and it starts operating immediately
- Specific functions should be added into user script library with PIN code setting and telephone number white-list which will be able to receive and send in SMS messages
Command syntax
Write to bus:
- W ALIAS VALUE
Read from bus:
- R ALIAS
- On read request, script will reply with SMS message containing current value of selected object
ALIAS can be:
- Group address (e.g. 1/1/1)
- Name (e.g. Obj1). If name contains spaces then it must be escaped using double quotes (e.g. “Room Temperature”)
Note!
- Object data type and name must be set in Logic Machine -> Objects tab. Otherwise script won’t be able to read and write to object
- Only ASCII symbols are accepted in the message
Examples
Binary write (send the following SMS to switch kitchen lights on):
- W 1/1/1 true
Scaling write (send the following SMS to set value 67% for red LED):
- W LED1Red 67
Temperature (floating point) write (send the following SMS to make setpoint in the living room to 22.5 degrees):
- W “Room Setpoint” 22.5
Read (send the following SMS to read the security panel value:
- R 2/1/1

