iRidium software package enables control of smart homes from any mobile devices, smart phones and tablets based on iOS, Android, Windows and OS X. Smart phones and tablets, as a rule, travel with their owners, no matter where they go to work in the office or to rest abroad. And owners of smart homes want to know what is going on in their houses when they are away. And here we come across a reasonable question,
iRidium offers 2 ways of remote control:
In both cases (direct connection and via iRidium Gate) control panels that are in the Internet connect to the system using its external address and ТСР/IP connection. When a control panel is in the same IP-net with the controlled equipment, it uses the local IP address.
To realize switching between the local and the external connection interfaces, iRidium offers a simple and easily- scalable method. This method includes creating buttons to switch connection modes with the equipment. It doesn’t take long to make them, and they may look, the way your customer wants it.
We’ll show how to set up switching between the local and external interfaces using as an example KNX IP BAOS router.
Let’s start with basics: iRidium has a special script function responsible for changes in connection settings – SetParameters. It is set in the Script Editor, but no knowledge of programming is required for this. It is set this way:
1. Open Java Script Editor in iRidium GUI Editor. iRidium has a built-in programming language, based on Java Script.
2. Open sample module with the SetParameters function:
Press Add Script from File and download a ready script for KNP IP BAOS.
You can find scripts for other automation systems in iRidium Wiki.
3. Setup the Set Parameters function (it can be copied as many times as required):
A project must have at least 2 functions SetParameters: one – to call local connection settings, the other – to call external connection settings. It’s impotant for each function to have a unique name (Internal, External, …). A ready function looks like this:
function External()
{
IR.GetDevice("KNX BAOS 771/772").SetParameters({Host: "215.215.10.10", Port: "12004", UpdateTime: "0"});
}
A ready function is called with a button of a graphical interface by means of a command Script Call. To do that a command has to be added to the Press or Release event of the button. Go to Object Properties > Programming > Press Event and add Script Call to the button. Remember to choose the name of the function that is called by pressing a button:
It’s done! Now the project has a page with buttons, by pressing which the connection mode to the KNX bus changes: from the Internet to the local net.
Now let’s prepare the net equipment for transmitting data from the Internet to KNX router. To do that set Port Forwarding Service on the router with Internet access.
iRidium technical support is repeatedly asked the following question, “How to secure the customer? As most automation systems, including KNX, don’t support protected connection”.
And, in fact, automation equipment can be easily accessed and tempered with due to its open ports. Thus, an unauthorized user may have access to all systems of smart home or building. So, when setting remote control of Smart home remember the simple and reliable way of connection protection – VPN technology. A system administrator can easily set it, and your customer will never come across a security issue. And as a pleasant bonus, VPN is supported by iOS, as well as Android.