ZigbeeApp/Shared/Common/DeviceUI.cs
@@ -312,5 +312,28 @@ } #endregion #region ◆ 通过id获取场景区域_____________ /// <summary> /// GetZone /// </summary> /// <returns></returns> public string GetZone() { var room = Room.CurrentRoom.GetRoomByDevice(CommonDevice); if (room == null) { return null; } var floorName = Shared.Common.Config.Instance.Home.GetFloorNameById(room.FloorId); if (floorName == null) { return room.Name; } return $"{floorName},{room.Name}"; } #endregion } }