public double DeviceValueByNameEx(string name) { HomeseerDevice device = GetHomeseerDeviceByName(name); if (device == null) { return(0.0); } return(device.DeviceValue); }
public int GetDeviceRefByName(string name) { HomeseerDevice device = GetHomeseerDeviceByName(name); if (device == null) { return(-1); } return(device.DeviceId); }
public void AddHomeseerDevice(HomeseerDevice device) { HomeseerDevices.Add(device); }