I use this Code for a pressDuration.
But after updating i get an Error
When.ModuleParameterChanged( (module, parameter) =>
{
if (module.Is("Entry switch") && parameter.Is("Status.Level"))
{
var endTime = parameter.UpdateTime; // this is the timestamp of button release
var startTime = parameter.LastUpdateTime; // this is the timestamp of button press
var pressDuration = endTime - startTime;
if (pressDuration.TotalSeconds > 2)
ERROR
HomeGenie.Data.ModuleParameter' does not contain a definition for `LastUpdateTime' and no extension method `LastUpdateTime' of type `HomeGenie.Data.ModuleParameter' could be found. Are you missing an assembly reference?
THX for Help