Page 1 of 1

Power Failure Alarm

Posted: Thursday 15 June 2017 22:41
by kchest
Hello All,
I customized the example script "Check for dead devices" and renamed it "Power Failure Alarm". We are having trouble with a circuit tripping randomly, mostly in the middle of the night. Unfortunately its the circuit with the deep freezers :shock:

Its all working fine but it brought up a question. When sending an email in DzVents, is it possible to have more than one recipient on the same line?
(domoticz.email(Subject, Message, Email;Email) for example? I've tried a couple of things but they didn't work, so I just three separate lines of code.

Re: Power Failure Alarm

Posted: Friday 16 June 2017 16:14
by dannybloe
Eh... I don't think at once (in one command) but have you tried sending multiple commands?

Code: Select all

local sub = 'My subject'
local msg = 'My msg'
domoticz.email(sub, msg, 'recipient1@...')
domoticz.email(sub, msg, 'recipient2@...')
domoticz.email(sub, msg, 'recipient3@...')