0% found this document useful (0 votes)
240 views

inteliLIGHT - API Docs

This document provides an overview of the inteliLIGHT network manager API, including examples of using the WebSocket and MQTT protocols to integrate with the API. It describes authentication requirements, push parameters and payloads sent by modules, and supported API commands that can be used to retrieve information and send commands. Interactive documentation is provided to allow testing API commands on virtual devices in a safe, pre-configured environment.

Uploaded by

Alen Kuharić
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
240 views

inteliLIGHT - API Docs

This document provides an overview of the inteliLIGHT network manager API, including examples of using the WebSocket and MQTT protocols to integrate with the API. It describes authentication requirements, push parameters and payloads sent by modules, and supported API commands that can be used to retrieve information and send commands. Interactive documentation is provided to allow testing API commands on virtual devices in a safe, pre-configured environment.

Uploaded by

Alen Kuharić
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

11/11/21, 3:03 PM inteliLIGHT | API Docs

# Introduction
This technical documentation for inteliLIGHT network manager API, will allow you to integrate it into your own software.

To make it easy, we have created an interactive manual in a pre-Configured environment which will allow you to test the API commands on virtual
devices.

The screen is divided into three parts:

1. On the left side of the screen, you have the table of contents.
2. In the middle of the screen you have the documentation, where you will be able to try out the commands in a safe, pre-configured
environment.
3. On the top right side, you have the WebSocket panel, which can be toggled and contains the information sent or received from the network
manager via a WebSocket.

NOTICE: Currently the callback method is not available, the WebSocket or MQTT can be used to automatically get data without polling by
following the steps below.

# Websocket example
Below you have a very simple example that uses Javascript, taken and adapted from www.websocket.org, which will show you how to write your own
script that will open a websocket connection to our network manager and allow you to send and receive messages.

On page load, the script will open a websocket to wss://fc1.intelilight.eu:[PROVIDED BY FLASHNET]/JSON and will send a JSON containing the login
information: {"op": "login", "user": "[PROVIDED BY FLASHNET]", "pass": "[PROVIDED BY FLASHNET]"}.

On successful login, the socket will remain open and wait for further commands.

The list of supported commands will be described in the following sections.

Websocket example

https://apidocs.flashnet.ro/home#gateways_info 1/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

<!DOCTYPE html>

<head>

<meta charset="utf-8" />

<title>WebSocket Test</title>

<script language="javascript" type="text/javascript">

var wsUri = "wss://fc1.intelilight.eu:[PROVIDED BY FLASHNET]/JSON";

var output;

function init() {

output = document.getElementById("output");

testWebSocket();

function testWebSocket() {

websocket = new WebSocket(wsUri);

websocket.onopen = function(evt) { onOpen(evt) };

websocket.onclose = function(evt) { onClose(evt) };

websocket.onmessage = function(evt) { onMessage(evt) };

websocket.onerror = function(evt) { onError(evt) };

function onOpen(evt) {

writeToScreen("CONNECTED");

doSend('{"op": "login", "user": "[PROVIDED BY FLASHNET]", "pass": "[PROVIDED BY FLASHNET]"}');

function onClose(evt) {

writeToScreen("DISCONNECTED");

function onMessage(evt) {

writeToScreen('RESPONSE: ' + evt.data);

function onError(evt) {

writeToScreen('ERROR: ' + evt.data);

function doSend(message) {

writeToScreen("SENT: " + message);

websocket.send(message);

https://apidocs.flashnet.ro/home#gateways_info 2/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

function writeToScreen(message) {

var pre = document.createElement("p");

pre.style.wordWrap = "break-word";

pre.innerHTML = message;

output.appendChild(pre);

window.addEventListener("load", init, false);

</script>

</head>

<body>

<h2>WebSocket Test</h2>

<button type="button" onclick='doSend("{\"op\": \"mod_list\"}");'>Mod list</button>

<button type="button" onclick='doSend("{\"op\": \"mod_send\", \"deveui\": \"70b3d5bf100003fd\", \"port\": 1, \"payload\


<div id="output"></div>

</body>

</html>

# MQTT example
The MQTT client should be configured with the same port and address as the web interface and use the same user and password.

To receive the uplink messages and the command responses it should subscribe to "api/res/#" topic

The following subtopics are used:

api/res/var - variable value push(var_push)


api/res/status - module/base-station/error update(push_error, join, mod_status_change, gateway_status_change)
api/res/raw - raw, undecoded payload push(push)
api/res/multivar - multiple variables in a single table push(var_push_list)
api/res/cmd - response to api commands

The command should be published to "api/cmd" topic.

https://apidocs.flashnet.ro/home#gateways_info 3/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Mosquitto MQTT client send a command example:

$ mosquitto_pub -d -h fc1.intelilight.eu -p [PROVIDED BY FLASHNET] -u [PROVIDED BY FLASHNET] -P [PROVIDED BY FLASHNET] -t "


Client mosqpub|7824-ip-172-31- sending CONNECT

Client mosqpub|7824-ip-172-31- received CONNACK

Client mosqpub|7824-ip-172-31- sending PUBLISH (d0, q0, r0, m1, 'api/cmd', ... (69 bytes))

Client mosqpub|7824-ip-172-31- sending DISCONNECT

Mosquitto MQTT client receive uplink data example:

host="fc1.intelilight.eu";

port=[PROVIDED BY FLASHNET];

user="[PROVIDED BY FLASHNET]";

password="[PROVIDED BY FLASHNET]";

subscribe_topic="api/res/#";

mosquitto_sub -d -h ${host} -p ${port} -u ${user} -P ${password} -t ${subscribe_topic} -V mqttv311

And some sample result:

Client mosqsub|7781-ip-172-31- sending CONNECT

Client mosqsub|7781-ip-172-31- received CONNACK

Client mosqsub|7781-ip-172-31- sending SUBSCRIBE (Mid: 1, Topic: api/res/#, QoS: 0)

Client mosqsub|7781-ip-172-31- received SUBACK

Subscribed (mid: 1): 0

Client mosqsub|7781-ip-172-31- received PUBLISH (d0, q0, r0, m0, 'api/res/raw', ... (264 bytes))

{"op": "push", "deveui": "70b3d5bf100003fd", "port": 1, "count": 18, "payload": "03d57b55f0eff100000b0003002323addf7a165e27


Client mosqsub|7781-ip-172-31- received PUBLISH (d0, q0, r0, m0, 'api/res/var', ... (178 bytes))

https://apidocs.flashnet.ro/home#gateways_info 4/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

{"op": "var_push", "deveui": "70b3d5bf100003fd", "layout_id": 85, "var": "nvoVoltAvg", "index": 8, "value": "240", "units":
Client mosqsub|7781-ip-172-31- received PUBLISH (d0, q0, r0, m0, 'api/res/var', ... (178 bytes)){"op": "var_push", "deveui"
Client mosqsub|7781-ip-172-31- received PUBLISH (d0, q0, r0, m0, 'api/res/multivar', ... (1809 bytes)){"op": "var_push_list

# Authentication
In order to be able to send and receive packages of information one must be authenticated using the credentials provided by support or generated in
the Web user interface. The following types of authentification are available:
Password authentication: it is done by using the login command on HTTP/WebSocket connection or CONNECT on MQTT. Following the
authentication on a HTTP/WebSocket connection, a session identified by a HTTP cookie is created. The generated cookie can be used for
authentication of the new HTTP/WebSocket connections. There is a limit of 50 session cookies per user. A session cookie is automatically
deleted after 30 minutes after last time it was used or after the logout command.
Session cookie: sent by the client in the Cookie HTTP header of a new HTTP connection. It is received in the Set-Cookie HTTP response header
following a login command sent by HTTP POST
Bearer token: sent by the client in the Authorization HTTP header of a new HTTP connection (e.g. Authorization: Bearer
N4yxNC8n2oOd1LYaNYfnkqqNddYbff82j5x4F6pFsEtsZPSux7hhxV3b8ZAnE). It is the preffered way of accessing the API through
HTTP/WebSocket. The token can be generated in the Web user interface in the API Config -> Tokens page.

# Push parameters and Payloads sent by module


cpPush0 setup

In this variable, you can specify a list of variables (for ex. Voltage, Current, Flags, Status etc.) which will be sent at specific intervals by the controller. In
order to be able to decode the payload a Q identifier is added to the payload.

cpPush0: 0x013c5508090a0c0e101214171819040d070b13

Where: (please keep in mind that these are hexadecimal values)

01 = number of samples

3c = send interval (0x3c = 60s = 1 minute in this case, the next value 0x3d means 120s, not 61s - for this we may need to supply the algorithm we use.)

55 = message identifier (0x55 = 85)

08090a0c0e101214171819040d070b13 = list of network parameters, where:

https://apidocs.flashnet.ro/home#gateways_info 5/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Value Name Description

08 nvoVoltAvg This variable indicates the value of the last read average RMS Voltage parameter.

09 nvoVoltMin This variable indicates the minimal RMS Voltage parameter's value, registered by the controller.

0a nvoVoltMax This variable indicates the maximal RMS Voltage parameter's value, registered by the controller.

0c nvoCurrentAvg This variable indicates the value of the average RMS Voltage parameter.

0e nvoPowerActAvg This variable indicates the value of the average Active Power parameter.

10 nvoPowerReactAvg This variable indicates the value of the average Reactive Power parameter.

12 nvoPowerAppAvg This variable indicates the value of the average Apparent Power parameter.

14 nvoPfAvg This variable indicates the value of the average Power Factor parameter.

17 nvoEnergyAct This variable indicates the value of the last read Active Energy parameter.

18 nvoEnergyReact This variable indicates the value of the last read Reactive Energy parameter.

19 nvoEnergyApp This variable indicates the value of the last read Apparent Energy parameter.

04 nvoLampStatus This variable contains information regarding the luminaire's status and the source of the last given command.

0d nvoPowerAct This variable indicates the value of the last read Active Power parameter.

07 nvoVolt This variable indicates the value of the last read RMS Voltage parameter.

0b nvoCurrent This variable indicates the value of the last read RMS Current parameter.

13 nvoPf This variable indicates the value of the last read Power Factor parameter.

https://apidocs.flashnet.ro/home#gateways_info 6/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

NOTE: cpPush1 and cpPush2 can be set up the same way.

# Information received after Push parameters are set.


Push messages are automated messages sent by controllers. They contain a list of network parameter values (Voltage, Current, Power factor etc.), and
are being sent by the controller at regular time intervals.

The message is composed based on the cpPush0 (or cpPush1, cpPush2, cpPush3) variable.

cpPush0 payload

The payload sent by the controller for ex.: 038ff855ececec02005e0053008b433f4d222662d43c1e03005fec0243, can be decoded as follows (please keep
in mind that all values are hexadecimal):

Value Name Description

03 message type

8ff8 modified timestamp this is a shorter version of a timestamp

55 message identifier this is also known as the Q identifier

ec nvoVoltAvg

ec nvoVoltMin

ec nvoVoltMax

02 nvoCurrentAvg

005e nvoPowerActAvg

0053 nvoPowerReactAvg

https://apidocs.flashnet.ro/home#gateways_info 7/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Value Name Description

008b nvoPowerAppAvg

43 nvoPfAvg

3f4d nvoEnergyAct

2226 nvoEnergyReact

62d4 nvoEnergyApp

3c1e03 nvoLampStatus

005f nvoPowerAct

ec nvoVolt

02 nvoCurrent

43 nvoPf

NOTE: these parameters are defined in the table above.

It is important to know the length of each variable, this can be seen here: http://fc1.intelilight.eu:50056/mods/70b3d5bf100003a8/vars

ex. nvoVolt out/7/0x3ff8/1, where the "1" at the end means the length, which is 1 Byte.

# Commands
Under this section you will be able to try out the commands and see the responses with the WebSocket by toggling and then trying out the command.

https://apidocs.flashnet.ro/home#gateways_info 8/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

The WebSocket or MQTT interface is asynchronous. More than one command can be made. To identify the corresponding response to a given
command the "priv" field cand be used.
Beside the responses from commands, the server sends the unsolicited data received from the devices (based on cpPush setup setup). The data is
sent asynchronously using the follwing "op" values:
"op":"push" - the raw payload data sent by a device
"op":"var_push" - variable value has been automatically updated by a device
"op":"var_push_list" - a list of variables values have been automatically updated by a device
"op":"push_error" - the error/status flags have been automatically updated by a device
"op":"join" - a device has booted and published its configuration
"op":"mod_status_change" - the device status is up or down
"op":"gateway_status_change" - the LoRa basestion is up or down

login

This command will log you in to the network manager. The user and password will be provided by the technical support team.

Request {"op": "login", "user": "demo", "pass": "demo123"}

Response success {"priv": "", "op": "login", "ok": 1}

Response failure {"priv": "", "op": "login", "error": "invalid user/password"}

Try it!
Toggle websocket

var_set

This command defines that the next operation will be one of setting a variable with a specified value

Request { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "nviLampLevel", "value": "0"}

https://apidocs.flashnet.ro/home#gateways_info 9/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "op": "var_set", "ok": 1}

Try it!
Toggle websocket

var_get

This command will return the value of a chosen variable from a selected controller.

Request { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nviLampLevel"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nviLampLevel", "ok": 1, "value":
"0", "units": "", "hex_value": "00", "last_set_ts": 1487855474, "last_poll_ts": 0, "last_hb_ts": 0,
"prio": 255, "who": "93.119.184.6-84/ws"}

Try it!
Toggle websocket

mod_add

This command allows the user to add a controller to the network manager by specifying the parameters as specified below.
Parameters:

Parameter Description

deveui controller's device European Unique Identifier

devaddr LoRaWAN's address; do not worry if it is reversed, we will fix it

https://apidocs.flashnet.ro/home#gateways_info 10/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

subtype Type of the controller: 1 = FlashNet Protocol, 2 = Watteco temperature, humidity and lux sensor, 3 =
LoRa Mote, 4 = Watteco SmartPlug, 6 = RAW, 7 = Adeunis Mote

lid a friendly name in order to identify your controller easily

class LoRaWAN class (A or C)

Request {"op": "mod_add", "deveui": "70b3d5bf100003fd", "devaddr": "100003fd"}

Response success {"priv": "", "op": "mod_add", "ok": 1}

Response failure {"priv": "", "op": "mod_add", "error": "cannot add module: id 70b3d5bf100003fd already exists"}

mod_del

This command will delete a controller from the network manager.

Request {"op": "mod_del", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_del", "ok": 1}

Response failure {"priv": "", "op": "mod_del", "error": "mod not found"}

mod_update

This command will update a controller with the specified parameters.


Parameters:

https://apidocs.flashnet.ro/home#gateways_info 11/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Parameter Description

deveui controller's European Unique Identifier

devaddr LoRaWAN's address; do not worry if it is reversed, we will fix it

subtype Type of the controller: 1 = FlashNet Protocol, 2 = Watteco temperature, humidity and lux sensor, 3 =
LoRa Mote, 4 = Watteco SmartPlug, 6 = RAW, 7 = Adeunis Mote

lid a friendly name in order to identify your controller easily

class LoRaWAN class (A or C)

Request {"op": "mod_update", "deveui": "70b3d5bf100003fd", "devaddr": 100003fd}

Response success {"priv": "", "op": "mod_update", "ok": 1}

Response failure {"priv": "", "op": "mod_update", "error": "timeout"}

mod_get_adr

This command returns ADR (adaptive data rate) information about a controller. The parameters including ack count, channels mask details, TX
power level of the signal, and data rating ranging from SF12/125kHz to SF7/250kHz.

Request {"op": "mod_get_adr", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_get_adr", "ok": 1, "adr": {"enabled": 1, "pending_ack": 0, "ack count": 0,
"channels_mask": "0x0007", "channels_mask_pending": "0x0007", "tx_power": "14dBm", "tx_power_pending":
"14dBm", "data_rate": "SF12/125kHz", "data_rate_pending": "SF12/125kHz", "samples": 0}}

https://apidocs.flashnet.ro/home#gateways_info 12/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response failure {"priv": "", "op": "mod_del", "error": "mod not found"}

Try it!
Toggle websocket

mod_get_event

This command will return a scheduler event from a controller from the specified position (0-15). The scheduler will repeat each day until the it is
removed or changed.

Request {"op": "mod_get_event", "deveui": "70b3d5bf100003fd", "pos": 0}

Response success {"priv": "", "op": "mod_get_event", "deveui": "70b3d5bf100003fd", "ok": 1, "pos": 0, "prio": 0, "oid":
0, "name": "Turn ON", "dow": 127, "time": "ss+00:00", "var": "nviLampLevel", "index": 0, "value":
"64"}

Response failure {"priv": "", "op": "mod_get_event", "error": "timeout"}

Try it!
Toggle websocket

mod_get_local_info

This command will return the local time and sunset/sunrise information of the controller

Request {"op": "mod_get_local_info", "deveui": "70b3d5bf100003fd", "pos": 0}

Response success {"priv": "", "op": "mod_get_local_info", "deveui": "70b3d5bf100003fd", "ok": 1, "date": 2019-05=30,
"time": 16:56:58, "sunrise": 5:30, "sunset": 20:56}

https://apidocs.flashnet.ro/home#gateways_info 13/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response failure {"priv": "", "op": "mod_get_local_info", "error": "timeout"}

Try it!
Toggle websocket

mod_get_ts

This command will return the Unix Timestamp of a controller.

Request {"op": "mod_get_ts", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_get_ts", "deveui": "70b3d5bf100003fd", "ok": 1, "ts": 1488356006}

Response failure {"priv": "", "op": "mod_get_ts", "error": "mod not found"}

Try it!
Toggle websocket

mod_get_tz

This command will return the time zone that the controller was assigned to.

Request {"op": "mod_get_tz", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_get_tz", "deveui": "70b3d5bf100003fd", "ok": 1, "tz": "2/3", "dst":
"M3.5.0/3,M10.5.0/4"}

Response failure {"priv": "", "op": "mod_get_tz", "error": "mod not found"}

Try it!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 14/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

mod_group_add

This command will add a controller into one or more groups.

Request {"op": "mod_group_add", "deveui": "70b3d5bf100003fd", "groups": "10,11,12"}

Response success {"priv": "", "op": "mod_group_add", "ok": 1}

Response failure {"priv": "", "op": "mod_group_add", "error": "timeout"}

Try it!
Toggle websocket

mod_group_del

This command will remove a controller from one or more groups.

Request {"op": "mod_group_del", "deveui": "70b3d5bf100003fd", "groups": "10,11,12"}

Response success {"priv": "", "op": "mod_group_del", "ok": 1}

Response failure {"priv": "", "op": "mod_group_del", "error": "timeout"}

Try it!
Toggle websocket

mod_group_list

This command list all the groups that a controller belongs to.

https://apidocs.flashnet.ro/home#gateways_info 15/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Request {"op": "mod_group_list", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_group_list", "ok": 1}

Response failure {"priv": "", "op": "mod_group_list", "error": "timeout"}

Try it!
Toggle websocket

mod_info

This command will return all of the controller's deployment information.

Request {"op": "mod_info", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_info", "ok": 1, "attributes": [{"subtype": 1, "fw": "FRE100g", "lid":
"hala15", "itime": 1467292110, "lat": "45.67566150393248", "lon": "25.64874651624594", "pkts_in": 0,
"pkts_out": 8, "bytes_in": 0, "bytes_out": 146, "errs_in": 0, "errs_out": 8, "rtt": 0, "rtt_max": 0,
"conf_still_pending": "no", "last_recv": 1488222901, "last_reboot": 1484044644, "status": "down",
"last_status_change": 1488357228, "lossy": 80, "flaps": 0, "ghost_timeout": 0, 100003fd: "1000021d",
"class": "C", "adr": 1, "small_count": 0, "strict_counters": 0, "use_dead": 1, "rx2_dr": "SF12",
"rx1_delay": 1000, "rx2_delay": 2000, "tx_power": "14dBm", "data_rate": "SF12/125kHz", "prod_id": 23,
"hw_ver": 3, "down_soft_ver": 2221, "up_soft_ver": 17}]}

Response failure {"priv": "", "op": "mod_info", "error": "timeout"}

Try it!
Toggle websocket

mod_list

https://apidocs.flashnet.ro/home#gateways_info 16/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

This command will return the list all the controllers that belong to the authenticated user.

Request { "op": "mod_list"}

Response success {"priv": "", "op": "mod_list", "ok": 1, "mods": [{"deveui": "70b3d5bf100003fd"},{"deveui":
"70b3d5bf100003fe"}]}

Response failure {"priv": "", "op": "mod_list", "error": "invalid operation"}

Try it!
Toggle websocket

mod_list_full

This command will return the extended list of controllers belonging to the authenticated user.

Request { "op": "mod_list_full"}

https://apidocs.flashnet.ro/home#gateways_info 17/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "op": "mod_list_full", "ok": 1, "mods": [{"deveui": "70b3d5bf100003fd", "attributes":
[{"subtype": 1, "fw": "FRE100g", "lid": "hala17", "itime": 1467293598, "lat": "45.67565400748822",
"lon": "25.64963700963939", "pkts_in": 41, "pkts_out": 2, "bytes_in": 1141, "bytes_out": 37,
"errs_in": 0, "errs_out": 0, "rtt": 367, "rtt_max": 3675, "conf_still_pending": "no", "last_recv":
1488359627, "last_reboot": 1484921608, "status": "up", "last_status_change": 1488357231, "lossy": 0,
"flaps": 1, "ghost_timeout": 0, "devaddr": "10000212", "class": "C", "adr": 1, "small_count": 0,
"strict_counters": 0, "use_dead": 1, "rx2_dr": "SF12", "rx1_delay": 1000, "rx2_delay": 2000,
"tx_power": "8dBm", "data_rate": "SF7/125kHz", "prod_id": 23, "hw_ver": 3, "down_soft_ver": 2221,
"up_soft_ver": 17}]},{"deveui": "70b3d5bf100003fd", "attributes": [{"subtype": 1, "fw": "FRE100g",
"lid": "hala15", "itime": 1467292110, "lat": "45.67566150393248", "lon": "25.64874651624594",
"pkts_in": 0, "pkts_out": 8, "bytes_in": 0, "bytes_out": 146, "errs_in": 0, "errs_out": 8, "rtt": 0,
"rtt_max": 0, "conf_still_pending": "no", "last_recv": 1488222901, "last_reboot": 1484044644,
"status": "down", "last_status_change": 1488357228, "lossy": 80, "flaps": 0, "ghost_timeout": 0,
"devaddr": "1000021d", "class": "C", "adr": 1, "small_count": 0, "strict_counters": 0, "use_dead": 1,
"rx2_dr": "SF12", "rx1_delay": 1000, "rx2_delay": 2000, "tx_power": "14dBm", "data_rate":
"SF12/125kHz", "prod_id": 23, "hw_ver": 3, "down_soft_ver": 2221, "up_soft_ver": 17}]}]}

Response failure {"priv": "", "op": "mod_list", "error": "invalid operation"}

Try it!
Toggle websocket

mod_log

This command will return the log of sent and/or received packets, over a period, for a controller according to the parameters selected from below.

Parameters:

Parameter Description

deveui controller's European Unique Identifier

https://apidocs.flashnet.ro/home#gateways_info 18/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

way 'up' - only upstream packets, 'down' - only downstream packets, 'both' - all packets

from starting with a specified timestamp

dups 1 if you want also duplicate packets, else 0

Request { "op": "mod_log", "deveui": "70b3d5bf100003fd", "way": "up", "from": 1468220293, "dups": 0}

Response success {"priv": "", "op": "mod_log", "ok": 1, "deveui": "70b3d5bf100003fd", "packets": [{"source": "bs",
"gw": "000000000806033b", "time": "2017-03-01 09:08:29 +0000", "ts": "1488359309.051725 (28m54s)",
"radio": "freq=869525000 bw=125 cr=4/5 SF12 crc=0 cost=1155ms power=27 IQ1 tmst=0us", "mac":
"type=unconf_data_down major=LoRaWanR1 Ctrl=[adr opts_len=1] Opts=[DevStatusReq] Cnt=26216(26216)
Port=1", "payload": "4f0c", "decoded": "st=req LIST_GROUP", "who": "93.119.184.6-137/ws",
"count_invalid": 0, "mic_invalid": 0, "dup": 0},{"source": "bs", "gw": "00000000080604fc", "time":
"2017-03-01 09:08:13 +0000", "ts": "1488359293.883784 (29m10s)", "radio": "freq=869525000 bw=125
cr=4/5 SF12 crc=0 cost=1155ms power=27 IQ1 tmst=0us", "mac": "type=unconf_data_down major=LoRaWanR1
Ctrl=[adr opts_len=1] Opts=[DevStatusReq] Cnt=26215(26215) Port=1", "payload": "4f0c", "decoded":
"st=req LIST_GROUP", "who": "93.119.184.6-137/ws", "count_invalid": 0, "mic_invalid": 0, "dup": 0},
{"source": "bs", "gw": "00000000080604fc", "time": "2017-03-01 09:05:27 +0000", "ts":
"1488359127.616404 (31m56s)", "radio": "freq=869525000 bw=125 cr=4/5 SF12 crc=0 cost=1319ms power=27
IQ1 tmst=0us", "mac": "type=unconf_data_down major=LoRaWanR1 Ctrl=[adr opts_len=1] Opts=[DevStatusReq]
Cnt=26214(26214) Port=1", "payload": "4f0a0a0b0c", "decoded": "st=req ADD_GROUP list=0a,0b,0c", "who":
"93.119.184.6-129/ws", "count_invalid": 0, "mic_invalid": 0, "dup": 0}]}

Response failure {"priv": "", "op": "mod_log", "error": "mod not found"}

Try it!
Toggle websocket

mod_q_rm

https://apidocs.flashnet.ro/home#gateways_info 19/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

This command will remove a packet from the 'out' queue, meaning that this command removes other user queued commands.
Parameters:

Parameter Description

deveui controller's European Unique Identifier

qid the queue id of the packet; qid = 0xFFFFFFFF = remove all

Request { "op": "mod_q_rm", "deveui": "70b3d5bf100003fd", "qid": "1"}

Response success //to be added

Response failure {"priv": "", "op": "mod_q_rm", "error": "error on delete: no queue entries found"}

Try it!
Toggle websocket

mod_sched_resync

This command will force the re-synchronization of the scheduler. Only available if the Flashnet protocol is selected.

Request { "op": "mod_sched_resync", "deveui": "70b3d5bf100003fd"}

Response success {"priv": "", "op": "mod_sched_resync", "ok": 1}

Response failure {"priv": "", "op": "mod_sched_resync", "error": "mod not found"}

Try it!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 20/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

mod_send

This command will send a payload to the controller in order to test its responsiveness.

Parameters:

Parameter Description

deveui controller's European Unique Identifier

port LoRaWAN port

payload the payload which will be sent

Request { "op": "mod_send", "deveui": "70b3d5bf100003fd", "port": 1, "payload": "aabbcc"}

Response success {"priv": "", "op": "mod_send", "ok": 1}

Response failure {"priv": "", "op": "mod_send", "error": "mod not found"}

Try it!
Toggle websocket

mod_set_event

This command will add a scheduler event to a controller.


Parameters:

Parameter Description

deveui controller's European Unique Identifier

name specify a name for the event

https://apidocs.flashnet.ro/home#gateways_info 21/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

pos each controller supports up to 128 scheduler entries, choose a value between 0 and 127

dow day-of-week; bit0 = Monday, ..., bit6 is Sunday, bit7 unused (set to 0)

month / day specify the month and day when the event must trigger; usage incompatible with 'dow'

time local time represented as hours:minutes when an event should trigger(e.g 17:48). Can be prefixed by
'ss' or 'sr' (sunset or sunrise) and a sign ('+' / '-') to specify a time with an offset relative to
the sun position(e.g. ss+00:15)

var name of variable which will be set

value the value of the variable which will be set; hexa encoded, only one byte allowed

Request { "op": "mod_set_event", "deveui": "70b3d5bf100003fd", "pos": 0, "name": "turn on", "dow": 127,
"time": "05:30", "var": "nviLampLevel", "value": "64"}

Response success {"priv": "", "op": "mod_set_event", "ok": 1}

Response failure {"priv": "", "op": "mod_set_event", "error": "timeout"}

Try it!
Toggle websocket

mod_set_loc

This command will set the geographic coordinates of a controller by completing the parameters shown below

Parameters:

Parameter Description

deveui controller's European Unique Identifier

https://apidocs.flashnet.ro/home#gateways_info 22/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

lat latitude

lon longitude

Request { "op": "mod_set_loc", "deveui": "70b3d5bf100003fd", "lat": 45.433443, "lon": -20.434321}

Response success { "op": "mod_set_loc", "deveui": "70b3d5bf100003fd", "lat": 45.433443, "lon": -20.434321}

Response failure {"priv": "", "op": "mod_set_loc", "error": "timeout"}

Try it!
Toggle websocket

mod_set_tz

This command will set the time zone for a controller, conditioned by the parameters entered as shown below.
Parameters:

Parameter Description

deveui controller's European Unique Identifier

tz time zone offsets; positives means right of meridian 0

dst encoding of Daylight Saving Time; check here (http://wiki.openwrt.org/doc/uci/system#time_zones) for


more info

Request { "op": "mod_set_tz", "deveui": "70b3d5bf100003fd", "tz": "2/3", "dst": "M3.5.0/3,M10.5.0/4"}

Response success {"priv": "", "op": "mod_set_tz", "ok": 1}

Response failure {"priv": "", "op": "mod_set_tz", "error": "timeout"}

https://apidocs.flashnet.ro/home#gateways_info 23/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Try it!
Toggle websocket

ping

This command will check if the connection to the network manager is up or down.
Parameters:

Request { "op": "ping"}

Response success {"priv": "", "op": "ping", "ok": 1}

Response failure //to be added

Try it!
Toggle websocket

# Variables
The following section lists the network variables of the inteliLIGHT FRE controllers. There are three kinds of variables, beginning with the "nvi", "nvo"
or "cp" prefix:

nvi - input variables: used for setting the values of controller end points. These variables can be set by external sources using the var_set command,
but can also be requested via the var_get command.

nvo - output variables: used for getting values of controller end points. These are one-way variables which support only var_get operations.

cp - configuration properties: used to store configuration settings. These variables can be set by external sources using the var_set command, but can
also be requested via the var_get command.

nviLampLevel

https://apidocs.flashnet.ro/home#gateways_info 24/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

This variable is used for setting or getting the value of the controller's luminaire level, usually with a value between 0x0 and 0x64, where 0 means
turned off, 0x64 = 100 means turned on and any value inbetween will result in luminaire dimming.

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "nviLampLevel", "value": "0"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nviLampLevel"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nviLampLevel", "ok": 1, "value":
"0", "units": "", "hex_value": "00", "last_set_ts": 1487855474, "last_poll_ts": 0, "last_hb_ts": 0,
"prio": 255, "who": "93.119.184.6-84/ws"}

Try Set!
Try Get!
Toggle websocket

nviReset

This variable is used for performing specific reset operations on the controller. These operations will be executed by the controller according to the
value received in the variable.

Possible values:

148 - reset controller

151 - reset scheduler

to get the updated list, please contact our technical support team.

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "nviReset", "value": "200"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nviReset"}

https://apidocs.flashnet.ro/home#gateways_info 25/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nviReset", "ok": 1, "value":
"200", "units": "", "hex_value": "c8", "last_set_ts": 1488289138, "last_poll_ts": 0, "last_hb_ts": 0,
"prio": 255, "who": "93.119.184.6-338/ws"}

Try Set!
Try Get!
Toggle websocket

nvoID

This variable contains information regarding the hardware and software version of the controller.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoID"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoID", "ok": 1, "value":
"prod=FRE100 hw_ver=3 sw_ver1=2012 sw_ver2=3", "units": "", "hex_value": "0017000307dc00030000",
"last_set_ts": 0, "last_poll_ts": 1488289569, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoLampStatus

This variable contains information regarding the luminaire's status and the command source of the last given command.
Command source:

00 no command was given

01 manual command given from the user

02 the photocell has actioned the command

https://apidocs.flashnet.ro/home#gateways_info 26/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

03 scheduler that was added to the controller

04 scheduler with photocell with the priority set in cpConfig0 (onprio property) this command is very rare

05 Start State - this is a feature that turns on the lamp at power-up when there is no scheduler defined and active, (it can be on or off, defined
by the user)

06 COMAND-1 which is a command entered in nviLampControl which will overwrite every command until the timeframe specified will pass

07 Triggered by Motion Sensors

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoLampStatus"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoLampStatus", "ok": 1, "value":
"off llfb=0 cmd_source=1", "units": "", "hex_value": "0a0001", "last_set_ts": 0, "last_poll_ts":
1488289740, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoNodeStatus

This variable contains debugging information regarding the last reset cause and the number of the last block written in the internal memory.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoNodeStatus"}

Response success {"op": "push", "deveui": "70b3d5bf100003fd", "port": 1, "count": 17, "payload": "039e2702c2dcf021",
"ts": 1559564621, "radio": "freq=868100000 bw=125 cr=4/5 SF7 crc=1 cost=57ms power=2 snr=9.00 rssi=-63
tmst=109370731us"}

Try Get!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 27/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

nvoFlags

This variable contains the list of active notifications and errors on the controller.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoFlags"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoFlags", "ok": 1, "value": "
gpnom_done", "units": "", "hex_value": "00020000", "last_set_ts": 0, "last_poll_ts": 1559528880,
"last_hb_ts": 0, "prio": 255, "who": "", "index": "6", "len": "4"}

Try Get!
Toggle websocket

nvoVolt

This variable indicates the value of the last read Root Mean Square Voltage parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoVolt"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoVolt", "ok": 1, "value": "242",
"units": "Vrms", "hex_value": "f2", "last_set_ts": 0, "last_poll_ts": 1559564700, "last_hb_ts": 0,
"prio": 255, "who": "", "index": "7", "len": "1"}

Try Get!
Toggle websocket

nvoVoltAvg

This variable indicates the value of the last read average Root Mean Square Voltage parameter.

https://apidocs.flashnet.ro/home#gateways_info 28/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoVoltAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoVoltAvg", "ok": 1, "value":
"240", "units": "Vrms", "hex_value": "f0", "last_set_ts": 0, "last_poll_ts": 1488359100, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoVoltMin

This variable indicates the minimal Root Mean Square Voltage parameter's value, registered by the controller.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoVoltMin"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoVoltMin", "ok": 1, "value":
"239", "units": "Vrms", "hex_value": "ef", "last_set_ts": 0, "last_poll_ts": 1488370500, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoVoltMax

This variable indicates the maximal Root Mean Square Voltage parameter's value, registered by the controller.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoVoltMax"}

https://apidocs.flashnet.ro/home#gateways_info 29/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoVoltMax", "ok": 1, "value":
"242", "units": "Vrms", "hex_value": "f2", "last_set_ts": 0, "last_poll_ts": 1488359400, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoCurrent

This variable indicates the value of the last read Root Mean Square Current parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCurrent"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCurrent", "ok": 1, "value":
"0.00", "units": "A", "hex_value": "00", "last_set_ts": 0, "last_poll_ts": 1488359400, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoCurrentAvg

This variable indicates the value of the average Root Mean Square Voltage parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCurrentAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCurrentAvg", "ok": 1, "value":
"0.00", "units": "A", "hex_value": "00", "last_set_ts": 0, "last_poll_ts": 1488359400, "last_hb_ts":
0, "prio": 255, "who": ""}

https://apidocs.flashnet.ro/home#gateways_info 30/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Try Get!
Toggle websocket

nvoPowerAct

This variable indicates the value of the last read Active Power parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerAct"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerAct", "ok": 1, "value":
"1.3", "units": "W", "hex_value": "000d", "last_set_ts": 0, "last_poll_ts": 1488359700, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoPowerActAvg

This variable indicates the value of the average Active Power parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerActAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerActAvg", "ok": 1, "value":
"1.2", "units": "W", "hex_value": "000c", "last_set_ts": 0, "last_poll_ts": 1488359700, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 31/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

nvoPowerReact

This variable indicates the value of the last read Reactive Power parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerReact"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerReact", "ok": 1, "value":
"0.4", "units": "VAR", "hex_value": "0004", "last_set_ts": 0, "last_poll_ts": 1488360057,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoPowerReactAvg

This variable indicates the value of the average Reactive Power parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerReactAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerReactAvg", "ok": 1,
"value": "0.4", "units": "VAR", "hex_value": "0004", "last_set_ts": 0, "last_poll_ts": 1488359700,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoPowerApp

This variable indicates the value of the last read Apparent Power parameter.

https://apidocs.flashnet.ro/home#gateways_info 32/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerApp"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerApp", "ok": 1, "value":
"3.7", "units": "VA", "hex_value": "0025", "last_set_ts": 0, "last_poll_ts": 1488360155, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoPowerAppAvg

This variable indicates the value of the average Apparent Power parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPowerAppAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPowerAppAvg", "ok": 1, "value":
"3.6", "units": "VA", "hex_value": "0024", "last_set_ts": 0, "last_poll_ts": 1488360300, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoPf

This variable indicates the value of the last read Power Factor parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPf"}

https://apidocs.flashnet.ro/home#gateways_info 33/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPf", "ok": 1, "value": "35",
"units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488360300, "last_hb_ts": 0, "prio":
255, "who": ""}

Try Get!
Toggle websocket

nvoPfAvg

This variable indicates the value of the average Power Factor parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoPfAvg"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoPfAvg", "ok": 1, "value": "35",
"units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488360300, "last_hb_ts": 0, "prio":
255, "who": ""}

Try Get!
Toggle websocket

nvoOnHours

This variable shows the sum in hours, which the luminaire spent in an ON or dimmed state.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoOnHours"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoOnHours", "ok": 1, "value":
"1075", "units": "h", "hex_value": "0433", "last_set_ts": 0, "last_poll_ts": 1488360733, "last_hb_ts":
0, "prio": 255, "who": ""}

https://apidocs.flashnet.ro/home#gateways_info 34/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Try Get!
Toggle websocket

nvoCycles

This variable shows the number of on-off cycles of the controlled luminaire.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCycles"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCycles", "ok": 1, "value":
"3697", "units": "", "hex_value": "0e71", "last_set_ts": 0, "last_poll_ts": 1488360706, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoEnergyAct

This variable indicates the value of the last read Active Energy parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoEnergyAct"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoEnergyAct", "ok": 1, "value":
"29383", "units": "Wh", "hex_value": "72c7", "last_set_ts": 0, "last_poll_ts": 1488362100,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 35/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

nvoEnergyReact

This variable indicates the value of the last read Reactive Energy parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoEnergyReact"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoEnergyReact", "ok": 1, "value":
"9700", "units": "VARh", "hex_value": "25e4", "last_set_ts": 0, "last_poll_ts": 1488362100,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoEnergyApp

This variable indicates the value of the last read Apparent Energy parameter.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoEnergyApp"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoEnergyApp", "ok": 1, "value":
"34733", "units": "VAh", "hex_value": "87ad", "last_set_ts": 0, "last_poll_ts": 1488362100,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoLightSense

This variable shows a value that indicates the amount of light detected by the light sensor this applies to modules that have photo cells.

https://apidocs.flashnet.ro/home#gateways_info 36/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoLightSense"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoLightSense", "ok": 1, "value":
"1\t74", "units": "", "hex_value": "0174", "last_set_ts": 0, "last_poll_ts": 1488360717, "last_hb_ts":
0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoCSevents

This variable contains a checksum based on the scheduler events of the controller and it can be used for syncing the controllers with the network
manager or a Content Management System software.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCSevents"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCSevents", "ok": 1, "value":
"35", "units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488362100, "last_hb_ts": 0,
"prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoCStimezone

This variable contains a checksum based on the time zone setting of the controller and it can be used for syncing the controllers with the network
manager or a Content Management System software.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCStimezone"}

https://apidocs.flashnet.ro/home#gateways_info 37/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCStimezone", "ok": 1, "value":
"35", "units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488362100, "last_hb_ts": 0,
"prio": 255, "who": ""}

Try Get!
Toggle websocket

nvoCSconfig

This variable is a Configuration Checksum which can be used for syncing the controllers with the network manager or a Content Management
System software.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCSconfig"}

Response success //(unused for now)//

Try Get!
Toggle websocket

nvoCSlocation

This variable contains a checksum based on the controller's geographic coordinates which can be used for syncing the controllers with the network
manager or a Content Management System software.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCSlocation"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCSlocation", "ok": 1, "value":
"35", "units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488362100, "last_hb_ts": 0,
"prio": 255, "who": ""}

https://apidocs.flashnet.ro/home#gateways_info 38/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Try Get!
Toggle websocket

nvoCSgroups

This variable contains a checksum based on the groups the controller belongs to and it can be used for syncing the controllers with the network
manager or a Content Management System software.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "nvoCSgroups"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "nvoCSgroups", "ok": 1, "value":
"35", "units": "", "hex_value": "23", "last_set_ts": 0, "last_poll_ts": 1488362100, "last_hb_ts": 0,
"prio": 255, "who": ""}

Try Get!
Toggle websocket

cpPonTH

This variable is a setting for the ON Threshold limit for the controller's lamp (it should be set lower than the lamp's specification, but not 20% less
than the lamp's actual consumption)

Standard set value: 20W

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPonTH", "value": "200"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPonTH"}

https://apidocs.flashnet.ro/home#gateways_info 39/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPonTH", "ok": 1, "value": "200",
"units": "", "hex_value": "c8", "last_set_ts": 1488289138, "last_poll_ts": 0, "last_hb_ts": 0, "prio":
255, "who": "93.119.184.6-338/ws"}

Try Set!
Try Get!
Toggle websocket

cpPoffTH

This variable is a setting for the OFF Threshold limit for the controller's luminaire (it should be set at least 10% higher than the power consumption
of the luminaire when it is turned off

Standard set value: 3.5 W

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPoffTH", "value": "35"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPoffTH"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPoffTH", "ok": 1, "value": "35",
"units": "", "hex_value": "c8", "last_set_ts": 1488289138, "last_poll_ts": 0, "last_hb_ts": 0, "prio":
255, "who": "93.119.184.6-338/ws"}

Try Set!
Try Get!
Toggle websocket

cpUCal

This variable shows the calibration factor for the controller's Voltage setting and it is used only on the calibration stage.

https://apidocs.flashnet.ro/home#gateways_info 40/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpUCal"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpUCal", "ok": 1, "value":
"40\t41\td2", "units": "", "hex_value": "4041d2", "last_set_ts": 0, "last_poll_ts": 1488364964,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

cpICal

This variable shows the calibration factor for the controller's Current setting and it's used only on the calibration stage.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpICal"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpICal", "ok": 1, "value":
"41\t52\tfa", "units": "", "hex_value": "4152fa", "last_set_ts": 0, "last_poll_ts": 1488364980,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

cpPCal

This variable shows calibration factor for the controller's Active Power setting and it's used only on the calibration stage.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPCal"}

https://apidocs.flashnet.ro/home#gateways_info 41/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPCal", "ok": 1, "value":
"3d\t37\ta6", "units": "", "hex_value": "3d37a6", "last_set_ts": 0, "last_poll_ts": 1488367298,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

cpQCal

This variable shows the calibration factor for the controller's Reactive Power setting and it's used only on the calibration stage.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpQCal"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpQCal", "ok": 1, "value":
"3d\t68\t2a", "units": "", "hex_value": "3d682a", "last_set_ts": 0, "last_poll_ts": 1488364951,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Get!
Toggle websocket

cpSCal

This variable shows the calibration factor for the controller's Apparent Power setting and it's used only on the calibration stage.

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpSCal"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpSCal", "ok": 1, "value":
"3d\t37\t26", "units": "", "hex_value": "3d3726", "last_set_ts": 0, "last_poll_ts": 1488364968,
"last_hb_ts": 0, "prio": 255, "who": ""}

https://apidocs.flashnet.ro/home#gateways_info 42/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Try Get!
Toggle websocket

cpMinMaxVoltage

This variable contains the min/max Voltage thresholds for the controller.

Values can be set between 0-255V (00-ff)

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpMinMaxVoltage", "value": "0x00ff"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpMinMaxVoltage"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpMinMaxVoltage", "ok": 1,
"value": "min=0V max=255V", "units": "", "hex_value": "00ff", "last_set_ts": 0, "last_poll_ts":
1488367675, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpMinMaxCurrent

This variable contains the min/max Current thresholds for the controller.

Values can be set between 0-5.97A (00-ff)

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpMinMaxCurrent", "value": "0x00ff"}

Response success {"priv": "", "op": "var_set", "ok": 1}

https://apidocs.flashnet.ro/home#gateways_info 43/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpMinMaxCurrent"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpMinMaxCurrent", "ok": 1,
"value": "min=0.00A max=5.97A", "units": "", "hex_value": "00ff", "last_set_ts": 0, "last_poll_ts":
1488367678, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpConfig0

This variable contains specific configuration elements for the controller. It is composed of all the elements described below and can only be set as
whole.
1. Mode - Module functioning type (DALI/0-10V - with or without dimming or power tracking)
2. on_prio - Priority between scheduler, light cell and manual commands. It is a byte value composed of the following bit fields:
bit 7-6: priority: 0 - disable, 1 - scheduler, 2 - photocell
bit 5 : not used
bit 3: START_STATE_ON_OFF - the lamp state at start: ON or OFF
bit 4: not used
bit 2: START_STATE_ENABLE - if the lamp state at start is enabled or not
bit 1: PC_ENABLE - if the photocell is enabled or not
bit 0: SCH_ENABLE - if the scheduler is enabled or not
3. dim_slope - Dimming slope speed
4. strike_retry_count – Number of retries to turn on the lamp
5. warm_up – Controlled lamp warm-up time in seconds
6. cool_down – controlled lamp cooldown time in seconds

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpConfig0", "value": "0x022d08040100"}

Response success {"priv": "", "op": "var_set", "deveui":"70b3d5bf100003fd", "ok": 1}

https://apidocs.flashnet.ro/home#gateways_info 44/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpConfig"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpConfig0", "ok": 1, "value":
"mode=FPE_power_track on_prio=45 dimm_slope=8 strike_retry_count=4 warm_up=1s cool_down=0s", "units":
"", "hex_value": "022d08040100", "last_set_ts": 1559631942, "last_poll_ts": 0, "last_hb_ts": 0,
"prio": 255, "who": "93.119.184.6-104187/ws", "index": "41", "len": "6"}

Try Set!
Try Get!
Toggle websocket

cpConfig1

This variable contains specific configuration elements for the controller. It is composed of all the elements described below and can only be set as
whole.
1. ct_factor – set to 1 for FRE – reserved for products that use external Current transformer (do not modify)
2. sampling – Interval for saving measured data into memory and averaging values for nvoVoltAvg, nvoCurrentAvg etc. in seconds (changing
this value may affect device functionality)
3. light_level – Photocell Light level threshold; value setting used for specifying the light Level below/above the lamp should turn OFF/ON
4. light_threshold – Photocell Light level threshold; value setting used for specifying the light Level below/above the lamp should turn OFF/ON
5. unused – Configure how long the LED(RGB) will stay on in seconds
3 and 4 are the same command (but they have been separated into two 8 bits values.

Set {"op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpConfig1", "value": "0x013c00323c"}

Response success {"priv": "", "op": "var_set", "deveui":"70b3d5bf100003fd", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpConfig1"}

https://apidocs.flashnet.ro/home#gateways_info 45/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpConfig1", "ok": 1, "value": "
ct_factor=1 sampling=60s light_level=0 light_threshold=50 unused=60", "units": "", "hex_value":
"013c00323c", "last_set_ts": 1559632213, "last_poll_ts": 0, "last_hb_ts": 0, "prio": 255, "who":
"93.119.184.6-104187/ws", "index": "42", "len": "5"}

Try Set!
Try Get!
Toggle websocket

cpLocation

This variable contains location data of the controller, which is used for sunset and sunrise-based schedule calculation

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpLocation", "value": "0x41011c128000"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpLocation"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpLocation", "ok": 1, "value":
"lat=45.706173° lon=26.015625°", "units": "", "hex_value": "41011c128000", "last_set_ts": 0,
"last_poll_ts": 1488370038, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpErrCfg0

This variable contains the configuration for error message handling (enable/disable error and notification push.

(selects which errors and how they should be sent over the network)

https://apidocs.flashnet.ro/home#gateways_info 46/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpErrCfg0", "value": "0xffff0000001f"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpErrCfg0"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpErrCfg0", "ok": 1, "value":
"ff\tff\t0\t0\t0\t1f", "units": "", "hex_value": "ffff0000001f", "last_set_ts": 1488370241,
"last_poll_ts": 1488370250, "last_hb_ts": 0, "prio": 255, "who": "93.119.184.6-549/ws"}

Try Set!
Try Get!
Toggle websocket

cpErrCfg1

This variable contains the configuration for error message handling (enable/disable error and notification push.

(selects which errors and how they should be sent over the network)

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpErrCfg1", "value": "0xff1e000001e0"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpErrCfg1"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpErrCfg1", "ok": 1, "value":
"ff\t1e\t0\t0\t1\te0", "units": "", "hex_value": "ff1e000001e0", "last_set_ts": 0, "last_poll_ts":
1488369974, "last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

https://apidocs.flashnet.ro/home#gateways_info 47/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

cpPush0

This combined variable, specifies the list of variables (for ex. Voltage, Current, Flags, Status etc.) which will be sent at specific intervals by the
controller. The payload can be decoded based on the Q identifier.

1. Samples – number of sample’s that must be read from the device memory
2. Interval - intervals between the sending data packets

3. Q – push message identifier


4. Vars – list of variables included in transmission

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPush0", "value":


"0x01405508090a0c0e101214171819040d070b13"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPush0"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPush0", "ok": 1, "value":
"samples=1 interval=300s Q=85 vars=08,09,0a,0c,0e,10,12,14,17,18,19,04,0d,07,0b,13", "units": "",
"hex_value": "01405508090a0c0e101214171819040d070b13", "last_set_ts": 0, "last_poll_ts": 1488370879,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpPush1

This combined variable, specifies the list of variables (for ex. Voltage, Current, Flags, Status etc.) which will be sent at specific intervals by the
controller. The payload can be decoded based on the Q identifier.

1. Samples – number of sample’s that must be read from the device memory

https://apidocs.flashnet.ro/home#gateways_info 48/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

2. Interval - intervals between the sending data packets

3. Q – push message identifier


4. Vars – list of variables included in transmission

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPush1", "value":


"0x00ffffffffffffffffffffffffffffffffffff"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPush1"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPush1", "ok": 1, "value":
"samples=0 interval=0s Q=255 vars=ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff", "units": "",
"hex_value": "00ffffffffffffffffffffffffffffffffffff", "last_set_ts": 0, "last_poll_ts": 1488370905,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpPush2

This combined variable, specifies the list of variables (for ex. Voltage, Current, Flags, Status etc.) which will be sent at specific intervals by the
controller. The payload can be decoded based on the Q identifier.

1. Samples – number of sample’s that must be read from the device memory
2. Interval - intervals between the sending data packets

3. Q – push message identifier


4. Vars – list of variables included in transmission

https://apidocs.flashnet.ro/home#gateways_info 49/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPush2", "value":


"0x013c021b1c1e1fffffffffffffffffffffffff"}

Response success {"priv": "", "op": "var_set", "ok": 1}

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPush2"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPush2", "ok": 1, "value":
"samples=1 interval=60s Q=2 vars=1b,1c,1e,1f,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff", "units": "",
"hex_value": "013c021b1c1e1fffffffffffffffffffffffff", "last_set_ts": 0, "last_poll_ts": 1488370889,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

cpPush3

This combined variable, specifies the list of variables (for ex. Voltage, Current, Flags, Status etc.) which will be sent at specific intervals by the
controller. The payload can be decoded based on the Q identifier.

1. Samples – number of sample’s that must be read from the device memory
2. Interval - intervals between the sending data packets
3. Q – push message identifier
4. Vars – list of variables included in transmission

Set { "op": "var_set", "deveui": "70b3d5bf100003fd", "var": "cpPush3", "value":


"0x01030304070b0d1315ffffffffffffffffffff"}

Response success {"priv": "", "op": "var_set", "ok": 1}

https://apidocs.flashnet.ro/home#gateways_info 50/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Get { "op": "var_get", "deveui": "70b3d5bf100003fd", "var": "cpPush3"}

Response success {"priv": "", "deveui": "70b3d5bf100003fd", "op": "var_get", "var": "cpPush3", "ok": 1, "value":
"samples=1 interval=3s Q=3 vars=04,07,0b,0d,13,15,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff", "units": "",
"hex_value": "01030304070b0d1315ffffffffffffffffffff", "last_set_ts": 0, "last_poll_ts": 1488370875,
"last_hb_ts": 0, "prio": 255, "who": ""}

Try Set!
Try Get!
Toggle websocket

# Gateways
The following section shows the available API commands for gateways

gateway_add

This command is used for adding a new gateway.

Request {"op": "gateway_add", "name": "My first gateway", "id": "0102030405060708", "lat": "45.34343", "lon":
"25.34343", "uid": 1, "paused": 0}

Response success //to be added

Try it!
Toggle websocket

gateway_update

This command is used for updating existing gateways.


https://apidocs.flashnet.ro/home#gateways_info 51/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

Request {"op": "gateway_update", "id": "0102030405060708"}

Response success //to be added

Try it!
Toggle websocket

gateway_del

This command is used for deleting a gateway.

Request {"op": "gateway_del", "id": "0102030405060708"}

Response success //to be added

Try it!
Toggle websocket

gateway_log

This command is used for getting packet logs from a gateway.

Request {"op": "gateway_log", "id": "0102030405060708"}

Response success {"priv": "", "op": "gateway_log", "ok": 1}

Try it!
Toggle websocket

gateways_info
https://apidocs.flashnet.ro/home#gateways_info 52/53
11/11/21, 3:03 PM inteliLIGHT | API Docs

This command is used for getting information about one or all gateways. The "id" parameter is optional.

Request {"op": "gateways_info"}

Response success {"priv": "", "op": "gateways_info", "ok": 1, "gws": [ ]}

Try it!
Toggle websocket

gateways_svg

This command is used for getting a SVG file containing the status of the gateways for the last two minutes.

Request {"op": "gateways_svg"}

Response success {"priv": "", "op": "gateways_svg", "ok": 1, "pic": ""}

Try it!
Toggle websocket

Copyright © 2019 Flashnet (https://intelilight.eu/). All rights reserved. Version 1.0

https://apidocs.flashnet.ro/home#gateways_info 53/53

You might also like