Exemple #1
0
        protected override async Task InitDevices()
        {
            _livingRoomLight = await _hub.GetDeviceByMappedName <DimmerSwitchRelay>("Switch.LivingRoom");

            _frontDoorLock = await _hub.GetDeviceByMappedName <LockDevice>("Lock.FrontDoorDeadbolt");

            _alexaLivingRoom = await _hub.GetDeviceByMappedName <Speaker>("Speaker.Alexa-LivingRoom");

            _weather = await _hub.GetDeviceByMappedName <Weather>("Misc.Weather");
        }
Exemple #2
0
 protected override async Task InitDevices()
 {
     _bedroomLights =
         await _hub.GetDeviceByMappedName <DimmerSwitchRelay>("Switch.Bedroom");
 }