protected override async Task InitDevices() { if (await IsDark(30, -30)) { SwitchesToActivate.Add(await _hub.GetDeviceByMappedName <SwitchRelay>("Switch.PatioLight")); } }
protected override async Task InitDevices() { SwitchesToActivate.Add( await _hub.GetDeviceByMappedName <SwitchRelay>("Switch.GarageLights")); }