If I understand you correctly, you have an internal PIR and want to read the value from two programs?
You're better off querying the PIR itself in my opinion.
But if you're trying to activate an event based on light level, you're better off 'catching' the value as it changes, here's a C# example:
Program code:
When.ModuleParameterChanged( (module, parameter) =>
{
if (module.Is("Attic Multisensor")){
if(parameter.Name == "Sensor.Luminance"){
// Do something
}
}
return true;
});
In HomeGenie you can hook into all Module change events when they occur, in this case whenever my multi sensor in the attic (Attic Multisensor) changes value, I want to do something when the light level changes (Sensor.Luminance) when that happens, then //Do something.
But I might be misunderstanding your question, if I am, please clarify.