Settings and listner

Please don't forget to set up the server access, your key, pin, don't forget to copy the .lua file to your project folder, and don't forget to add the actual api file require (ex.: lbr2api = require("lbr2api") ) and function lbapilistner() to your mail.lua file. Answer types: lbapianswer="dns" - when we get the ip address of the box, and lbapianswer="boxanswer" - when we get the values from the box. If you use several boxes, don't forget to clarify the new id, the pin and the port before start a new request. For each type of the Boxes we use another .lua api file - to make easyer your life. We continously improove the api commands, if you don't find something, please come back a bit later.



LEViBox DNS

lbapidns()

With this command you receive back the actual ip address of the Box.


LEViBox PIR

lbpirapidns()

With this command you receive back the actual ip address of the Box.

lbpirapicheck()

With this command you check the status of the Box - armed or disarmed, and is there any motion.

lbpirarm()

With this command you switch on the motion detection function in the Box, will in Armed status.

lbpirdisarm()

With this command you switch off the motion detection function in the Box, will in Disarmed status.


LEViBox T1

lbt1apidns()

With this command you receive back the actual ip address of the Box.

lbt1apicheck()

With this command you call the Box, and will get the value of the thermometer in Api answer.


LEViBox R2 - R8

lbr2apidns()

With this command you receive back the actual ip address of the Box.

lbr2apis1on()

With this command you switch on the relay1 in the Box.

lbr2apis1off()

With this command you switch off the relay1 in the Box.

lbr2apis2on()

With this command you switch on the relay2 in the Box.

lbr2apis2off()

With this command you switch off the relay2 in the Box.

lbr2apicheck()

With this command you check the relay1 and relay2 status in the Box.