public ToggleAutomationRule(string id, IToggleDevice toggleDevice, IToggleAutomationCondition condition) { Id = id; ToggleDevice = toggleDevice; Condition = condition; State = Condition.State; Condition.OnStateChanged += Condition_OnStateChanged; }
public ToggleAutomationConditionStateChangedHandler(IToggleAutomationCondition condition, bool newState) { Condition = condition; NewState = newState; }