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