Application notes provide a better understanding of products NETIO use in your applications.


cancel filters
AN17 (Text) scheduler for many actions based on text file - Lua script NETIO

AN17 shows a Lua script that can, at the given day and time, set the outputs of the NETIO device to the desired states or perform other actions with them (short on / short off).



Lua SNMP – Reading UPS battery charge state and switching electrical sockets off when the battery is low (Lua Active client)

AN16 presents a script that runs in the NETIO smart sockets device, actively reads a value from an external device over SNMP and reacts to it. The smart sockets read the state of another device (at a different IP address) over the LAN using SNMP. In particular, AN16 shows how to detect the low battery state of a UPS in order to help a datacenter run longer on back-up power. When the battery is less than 50% charged, the smart socket device switches off a part of the cooling system. By querying different SNMP OIDs, it is possible to react to other UPS parameters (e.g. detect the absence of input voltage). The NETIO smart socket device and the UPS communicate directly, without an intermediate server or application.


AN15 One switch to turn off 20 power outputs (monitors) over LAN

The AN06 example shows how to quickly turn on or off dozens of electrical power outputs (sockets) over LAN by flipping a single central switch. The central switch is connected to the serial port (PowerPDU 4C). The URL API protocol is used for control.


AN14 Reading the digital inputs of a STE2 device

The NETIO AN14 Application Note shows how to connect NETIO 4x smart sockets and the STE2 online wifi thermometer by HW group. This Lua script turns individual sockets at the NETIO device on or off according to the states of STE2 digital inputs. The devices communicate over a LAN; values are transferred in a .xml file. The script can be modified for other devices and xml data. 

STE2 thermometer (HW group) switches NETIO sockets based on temperature

STE2 by HW group is a LAN/WiFi thermometer/humidity meter. The NETIO AN13 Application Note presents a Lua script that connects NETIO 4x smart sockets with the STE2 thermometer. 230V electrical sockets are switched on or off according to the temperature (or humidity) measured by STE2. The devices communicate over a LAN, values are transferred in a .xml file. The script can be modified for other devices and xml data

AN12 MQTT control of NETIO smart sockets using the HiveMQ broker

NETIO 4x power sockets (4x 230V, LAN and WiFi) can be controlled over the Web and with various M2M protocols. Supported protocols include MQTT. Application Note AN12 describes the use of the MQTT protocol in the “Generic” mode with the HiveMQ public MQTT broker. This public broker is intended for testing; for live use, we recommend to use your own installation of this or another MQTT broker.


SNMP management of 110/230V power outlets from the command line in Windows and Linux

NETIO devices allow reading of outputs states and values of electrical measurements via SNMPv3 (SNMP get) and controlof PDU outputs (SNMP set). AN11 describes how to implement reading and writing using SNMP v1, v2c in MS Windows and Linux.

AN10 Telnet control of electrical power sockets (M2M API – KSHELL)

NETIO 4x electrical sockets (NETIO 4 / 4All / 4C) can be controlled over a LAN using the Telnet M2M API protocol and KSHELL commands. The NETIO AN10 Application Note demonstrates how to use Telnet to control individual sockets, gives a brief description of the KSHELL protocol and shows examples how to test the communication in Windows using several utilities. 

Lua script that detects a connection to the Internet and automatically restarts, for example, a microwave connection

AN09 demonstrates a Lua script that detects a dropped Internet connection and automatically restarts e.g. a microwave link. The script periodically sends PING (icmp) requests to the 1 or 2 configured IP addresses. When none of these two addresses respond for e.g. 60 seconds, one of the 230V sockets is turned off for 20 seconds (short off – restart).

Cyclic traffic lights in Lua according to a defined table

AN08 demonstrates the use of a Lua script to switch 230V sockets on/off according to a table. The example table contains 8 states. Each state has a defined duration (1s minimum). This example can be used as cyclic “traffic lights”

AN07 Periodical scheduler for many actions based on text file - Lua script

The AN07 Application Note shows a Lua script that turns individual 110/230VAC sockets on and off at specific times according to a predefined schedule. The state table can contain dozens of rows with actions to be performed at specified hours or days of week.


NETIO AN06 Daily report by e-mail (Lua)

AN06 is a pair of Lua scripts that send, once per day, an e-mail report showing how many times was each output switched, and how much energy the respective appliance consumed in terms of kWh and price (€ / $ / CZK ...). Receive a report every day about the electricity consumed in a day and in a week at each output (electrical socket). 

PowerUp email alert (Lua)

AN05 is a simple Lua script that sends an e-mail every time the NETIO device is restarted. This Application Note AN05 shows how to send e-mail using Lua.

Remote power socket control by URL (http GET handled in Lua script)

The NETIO 4 smart sockets device is connected to a LAN or a WiFi network. Individual sockets can be easily switched on and off by accessing a URL in a browser or from the command line. This control method is very easy to use. This NETIO AN04 describes a Lua script that reacts to parameters contained in the http get request (URL). Unlike the standard M2M API based on http GET, the custom Lua script can make the sockets react to parameters with custom names. 

NETIO AN03 Switching OFF a 230V power socket when current exceeds limit, email alerts

This Application Note demonstrates how to create a Lua script to monitor the current flowing through individual sockets of a NETIO 4All smart power strip. When the current at a particular socket exceeds the limit for longer than the specified time period, the script turns the socket off and sends an email

Ask for a price or technical parameters

For device testing use name/password demo/demo