コード例 #1
0
        public double DeviceValueByNameEx(string name)
        {
            HomeseerDevice device = GetHomeseerDeviceByName(name);

            if (device == null)
            {
                return(0.0);
            }
            return(device.DeviceValue);
        }
コード例 #2
0
        public int GetDeviceRefByName(string name)
        {
            HomeseerDevice device = GetHomeseerDeviceByName(name);

            if (device == null)
            {
                return(-1);
            }
            return(device.DeviceId);
        }
コード例 #3
0
 public void AddHomeseerDevice(HomeseerDevice device)
 {
     HomeseerDevices.Add(device);
 }