Hi,
I tried something on an existing Sensor I had.. this seems to work
Program.Store("HomeAutomation.MyPVMonitor").Get("PVLoad").Value = "12";
var a = Program.Store("HomeAutomation.MyPVMonitor").Get("PVLoad").Value;
Program.Notify("test", a.ToString());
This at least displays the 12
The sensor and parameter used are defined in another program (C#):
Startup Code:
Program.AddVirtualModule("HomeAutomation.MyPVMonitor", "1", "Sensor", "homegenie/generic/mypvmonitor");
Program Code
var myPVMonitor = Modules.InDomain("HomeAutomation.MyPVMonitor").WithAddress("1").Get();
var pvLoad = myPVMonitor.Parameter("MyPVMonitor.PVLoad");
I hope this helps you in the right direction ...