„Programme & Zentralverknüpfungen“
„Neu“
var myAssembly = dom.GetObject("Verschluss");
string itemID;
string text = "";
integer counter = 0;
foreach(itemID, myAssembly.EnumUsedIDs())
{
var item = dom.GetObject(itemID);
var device = dom.GetObject(item.Device());
var interface = dom.GetObject(item.Interface());
string interface_name = interface.Name();
string device_address = device.Address();
device_address = device_address.StrValueByIndex(":", 0);
string channel_name = interface_name # "." # device_address # ":0.STATE";
var channel = dom.GetObject(channel_name);
text = text # "- " # item.Name() # ": " # item.State() # "\r\n";
}
string stdout;
string stderr;
system.Exec("/etc/config/addons/email/email 02 '" # text # "'", &stdout, &stderr);
CCU-Zusatzsoftware (Email)