-
Notifications
You must be signed in to change notification settings - Fork 4
Functions
Switches a switch on or of.
$name = name of the device, or array of devices
$action = 'On', 'Off'. Of none provided toggle is used.
$info = extra text to sent to the logfile
sw('lighthall','Off');
sw(array('lighthall','lightupstairs'),'Off');
Sets the level of a dimmer
sl('dimmerdining',0)
sl('dimmerdining',50)
sl('dimmerdinging',100)
Updates the nvalue and svalue of a device
Executes 2 times the sw function with a little pause.
I've had sometimes issues with Fibaro wallplugs that don't update their status when sending a single command
double('computerdesk','On');
Sends a telegram message. If second or thirth option isn't specified it's sent without notification sound and only the chatid1.
telegram('This is a silent test message')
telegram('This is a message with sound',false)
telegram('This is a message with sound sent to 2 different chatids',false,2)
Logs $msg to a logfile
LUA Pass2PHP for Domoticz
Created by Guy Verschuere