Power Failure Alarm

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
kchest
Posts: 5
Joined: Friday 17 July 2015 14:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Germany
Contact:

Power Failure Alarm

Post 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.
Domoticz v3.8153
Raspberry Pi 2B
Aeotec Gen5 Zwave Stick
Mysensors USB Gateway
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Power Failure Alarm

Post 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@...')
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest