diff --git a/assets/icons/refresh_status_icon.svg b/assets/icons/refresh_status_icon.svg
new file mode 100644
index 0000000..eb375bd
--- /dev/null
+++ b/assets/icons/refresh_status_icon.svg
@@ -0,0 +1,12 @@
+
diff --git a/lib/features/devices/bloc/device_manager_bloc/device_manager_bloc.dart b/lib/features/devices/bloc/device_manager_bloc/device_manager_bloc.dart
index 20b936e..9d6b95e 100644
--- a/lib/features/devices/bloc/device_manager_bloc/device_manager_bloc.dart
+++ b/lib/features/devices/bloc/device_manager_bloc/device_manager_bloc.dart
@@ -178,7 +178,8 @@ class DeviceManagerBloc extends Bloc {
DeviceType.CeilingSensor,
DeviceType.ThreeGang,
DeviceType.OneGang,
- DeviceType.TwoGang
+ DeviceType.TwoGang,
+ DeviceType.WH
};
return devices
diff --git a/lib/features/scene/bloc/create_scene/create_scene_bloc.dart b/lib/features/scene/bloc/create_scene/create_scene_bloc.dart
index 17a5b51..a96c7ce 100644
--- a/lib/features/scene/bloc/create_scene/create_scene_bloc.dart
+++ b/lib/features/scene/bloc/create_scene/create_scene_bloc.dart
@@ -159,6 +159,7 @@ class CreateSceneBloc extends Bloc
// Add new element if it doesn't exist in either list
if (!updated) {
var newElement = SceneStaticFunction(
+ deviceType: event.deviceType,
operationName: event.operation,
deviceName: event.deviceName,
icon: event.icon,
@@ -192,6 +193,7 @@ class CreateSceneBloc extends Bloc
if (element.code == event.deviceControlModel.code) {
// Update the existing function with new values
var updatedElement = element.copyWith(
+ deviceType: element.deviceType,
operationName: event.operation,
deviceName: event.deviceName,
icon: event.icon,
@@ -217,6 +219,7 @@ class CreateSceneBloc extends Bloc
}
if (!updated) {
var newElement = SceneStaticFunction(
+ deviceType: event.deviceType,
operationName: event.operation,
deviceName: event.deviceName,
icon: event.icon,
diff --git a/lib/features/scene/bloc/create_scene/create_scene_event.dart b/lib/features/scene/bloc/create_scene/create_scene_event.dart
index 2b79f6d..fbaaa39 100644
--- a/lib/features/scene/bloc/create_scene/create_scene_event.dart
+++ b/lib/features/scene/bloc/create_scene/create_scene_event.dart
@@ -24,6 +24,7 @@ class TempHoldSceneTasksEvent extends CreateSceneEvent {
final String uniqueId;
final bool? isAutomation;
final OperationDialogType operationType;
+ final String deviceType;
const TempHoldSceneTasksEvent({
required this.deviceControlModel,
@@ -34,6 +35,7 @@ class TempHoldSceneTasksEvent extends CreateSceneEvent {
required this.uniqueId,
this.isAutomation,
required this.operationType,
+ required this.deviceType,
});
@override
@@ -46,6 +48,7 @@ class TempHoldSceneTasksEvent extends CreateSceneEvent {
uniqueId,
deviceName,
icon,
+ deviceType
];
}
@@ -149,7 +152,8 @@ class FetchSceneTasksEvent extends CreateSceneEvent {
final String sceneId;
final bool isAutomation;
- const FetchSceneTasksEvent({this.isAutomation = false, required this.sceneId});
+ const FetchSceneTasksEvent(
+ {this.isAutomation = false, required this.sceneId});
@override
List