CONTROL


Commands that allow direct control of the device:



SWITCH OFF DEVICE


Turns off the device, which will remain powered until external power supplies are removed, after which each peripheral will be disconnected (including the on-board clock), power consumption is reduced to zero.

To restart the device connect the external power supply or press the button K


Command

AT#OFF

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

OUTPUT & MEMORY BITS


Although it is possible to control outputs and memory bits by modifying the parameters in the map file, a specific command allows setting the status and optional release time.


Command

<id>=<cmd>[,<time>]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED


Parameters

<id>

OUTPUT NAME AS DEFINED IN TAG Ox1

MEMORY BIT NAME AS DEFINED IN TAG Mx0


<cmd>

0 or off : RESET OUTPUT OR MEMORY BIT

1 or on : SET OUTPUT OR MEMORY BIT

T : TOGGLE CURRENT STATUS


<time> 1

0001 ... 3600 : SECONDS TO RELEASE, or

hhmmss : HOURS, MINUTES,SECONDS TO RELEASE, or

YYMMDDhhmm : RELEASE DATE 2

1


2

For the outputs and the memory bits 0 ... F it is possible to use TAGs as long as they contain admissible values


If the on-board clock has never been set, the device will only count hours and minutes, ignoring the date.


Both the default and the assigned name can be used as an identifier, for example the default name for output 1 is out1 and the name lamp may have been assigned then out1=1 or lamp=1 are equivalent.

<time> is optional and ignored for reset and toggle commands.

WIFI PLUGS


Although it is possible to control WiFi plugs by modifying the parameters in the map file, a specific command allows setting the status and optional release time.


Command

<id>=<cmd>[,<time>]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED


Parameters

<id>

OUTPUT NAME AS DEFINED IN TAG Ox1

MEMORY BIT NAME AS DEFINED IN TAG Mx0


<cmd>

0 or off : RESET PLUG

1 or on : SET PLUG (ONCE)

2 : SET & REFRESH OUTPUT EVERY MINUTE

T : TOGGLE CURRENT STATUS


<time>

0001 ... 3600 : SECONDS TO RELEASE, or

hhmmss : HOURS, MINUTES,SECONDS TO RELEASE, or

YYMMDDhhmm : RELEASE DATE

1

If the on-board clock has never been set, the device will only count hours and minutes, ignoring the date.


Both the default and the assigned name can be used as an identifier, for example the default name for plug A is plugA and the name lamp may have been assigned then plugA=1 or lamp=on are equivalent.


The command 1 (or on) turns on the plug only once and lets the plug be controllable by its local button or from another channel, if the plug loses the WiFi connection it remains in the current state.


The safe command 2 turns on the plug sending confirmation every 60 seconds, if the plug loses the connection it will automatically switch off  within 5 minutes.


<time> is optional and ignored for reset and toggle commands.

WAIT


Pauses the execution of commands.

Omitting the pause time, forces the end of any pause in progress and immediately resumes the execution of the commands.


Command

AT#WAIT[=<time>]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<time>

1...9 : SECONDS


Useful within rules or in executing concatenated commands:

out1=1 at#wait=5 out2=1

in this sequence output 2 is activated  5 seconds after output 1

INFRARED TRANSMISSION


Emits an infrared code from the transmitter located on the front of the device using the specified protocol.


Command

AT#IRTX=<protocol>,<address>,<code>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<protocol>

ENCODING PROTOCOL TO BE USED

RC5 RC6 NEC SONY SHARP PANASONIC


<address>

ADDRESS OF TARGET DEVICE

0...127


<code>

CODE TO BE TRANSMITTED

0...127


Each receiving device has its own set of codes and related functions, the code to be sent must be identified by consulting the documentation of the equipment to be controlled.

PLAY TONE


Plays the desired tone on the internal speaker of the device.


Command

AT#SPK=<tone>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<tone>

TONE TO BE PLAYED

1 : 700 Hz 4 seconds

2 : 800 Hz 4 seconds

3 : 900 Hz 4 seconds

4 : 1000 Hz 4 seconds

5 : 1100 Hz 4 seconds

6 : 1200 Hz 4 seconds

7 : 1300 Hz 4 seconds

8 : 1400 Hz 4 seconds

FORCE TIME SYNC


Force real time clock update, connecting to network service.


Command

AT#TIME

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

FORCE SMM CONNECTION


Force immediate connection to cloud account, ignoring current settings.

Pending information will be sent (if any) and pending commands will be downloaded (if any).

Command

AT#CON

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

FORCE BATTERY CHARGE


Force battery charge on / off, disregarding battery management.

It's a temporary condition: battery management will take control at least 60 seconds later.


Command

AT#CHRG=<status>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<status>

0 : TURN OFF CHARGE

1 : TURN ON CHARGE

REBOOT


Device application restart (software reset).


Command

AT#REBOOT

Response

...

DEVICE STARTUP INFORMATION


ERROR

COMMAND REJECTED


Note: No response if commands is sent by SMS, email or Telegram.