I'm obviously doing something stupid..
I've extracted a snippet.. basically I want to get all modules, and then the status... I've tried:
{
var modules = Modules.OfDeviceType("Light,Dimmer,Switch").SelectedModules;
Program.Notify("",module.Address);
Program.Notify("",module.Parameter("Status.Level").Statistics.History[0].Value);
}
and
for(int i = 0; i < modules.Count; i++)
{
var module = modules[i];
Program.Notify("",module.Address);
Program.Notify("",module.Parameter("Status.Level").Statistics.History[0].Value);
}
Thanks