mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
push door lock automation functions
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:syncrow_app/features/devices/model/function_model.dart';
|
||||
import 'package:syncrow_app/features/scene/enum/ac_values.dart';
|
||||
import 'package:syncrow_app/features/scene/enum/operation_dialog_type.dart';
|
||||
import 'package:syncrow_app/features/scene/model/scene_details_model.dart';
|
||||
import 'package:syncrow_app/features/scene/model/scene_static_function.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
@ -128,6 +129,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Sensitivity',
|
||||
code: 'sensitivity',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -205,17 +207,207 @@ mixin SceneOperationsDataHelper {
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsIconsDoorLock,
|
||||
operationName: 'Set Door lock Normal Open',
|
||||
icon: Assets.assetsFingerprintUnlock,
|
||||
operationName: 'Fingerprint Unlock',
|
||||
functionValue: functionValue,
|
||||
code: 'normal_open_switch',
|
||||
code: 'unlock_fingerprint',
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsPasswordUnlock,
|
||||
operationName: 'Password Unlock',
|
||||
functionValue: functionValue,
|
||||
code: 'unlock_password',
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false),
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsCardUnlock,
|
||||
operationName: 'Card Unlock',
|
||||
functionValue: functionValue,
|
||||
code: 'unlock_card',
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsLockAlarm,
|
||||
operationName: 'Lock Alarm',
|
||||
functionValue: functionValue,
|
||||
code: 'alarm_lock',
|
||||
operationDialogType: OperationDialogType.none,
|
||||
operationalValues: [],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsRemoteUnlockReq,
|
||||
operationName: 'Remote Unlock Request',
|
||||
functionValue: functionValue,
|
||||
code: 'unlock_request',
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsResidualElectricity,
|
||||
operationName: 'Residual Electricity',
|
||||
functionValue: functionValue,
|
||||
code: 'residual_electricity',
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsDoubleLock,
|
||||
operationName: 'Double Lock',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
code: 'reverse_lock',
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
description: "ON",
|
||||
value: true,
|
||||
),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsRemoteUnlockViaApp,
|
||||
operationName: 'Remote Unlock Via App',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
code: 'unlock_app',
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsHijackAlarm,
|
||||
operationName: 'Hijack Alarm',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
code: 'hijack',
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
description: "ON",
|
||||
value: true,
|
||||
),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsDoorlockNormalOpen,
|
||||
operationName: 'Set Door Lock Normal Open',
|
||||
functionValue: functionValue,
|
||||
code: 'normal_open_switch',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
description: "ON",
|
||||
value: true,
|
||||
),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsDoorlockNormalOpen,
|
||||
operationName: 'Doorbell',
|
||||
functionValue: functionValue,
|
||||
code: 'doorbell',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
description: "ON",
|
||||
value: true,
|
||||
),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
SceneStaticFunction(
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
icon: Assets.assetsTempPasswordUnlock,
|
||||
operationName: 'Temporary Password Unlock',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.integerSteps,
|
||||
code: 'unlock_temporary',
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
description: "",
|
||||
value: 0,
|
||||
),
|
||||
],
|
||||
),
|
||||
];
|
||||
@ -228,6 +420,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Set Door lock Normal Open',
|
||||
functionValue: functionValue,
|
||||
code: 'normal_open_switch',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -253,6 +446,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Far Detection',
|
||||
code: 'far_detection',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsFarDetectionFunction,
|
||||
@ -311,6 +505,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motion Detection Sensitivity',
|
||||
code: 'motion_sensitivity_value',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -346,6 +541,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motionless Detection Sensitivity',
|
||||
code: 'motionless_sensitivity',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
iconValue: '1',
|
||||
@ -386,6 +582,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Indicator',
|
||||
code: 'indicator',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -400,6 +597,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Nobody Time',
|
||||
code: 'presence_time',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -431,6 +629,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Switch Alarm Sound',
|
||||
code: 'switch_alarm_sound',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -445,6 +644,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Master State',
|
||||
code: 'master_state',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -465,6 +665,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Factory Reset',
|
||||
code: 'factory_reset',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh, description: "ON", value: true),
|
||||
@ -490,6 +691,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 Switch',
|
||||
code: 'switch_1',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -504,6 +706,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 Switch',
|
||||
code: 'switch_2',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -518,6 +721,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 Switch',
|
||||
code: 'switch_3',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -532,6 +736,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 CountDown',
|
||||
code: 'countdown_1',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -543,6 +748,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 CountDown',
|
||||
code: 'countdown_2',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -554,6 +760,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 CountDown',
|
||||
code: 'countdown_3',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -577,6 +784,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Power',
|
||||
code: 'switch',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -597,6 +805,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Mode',
|
||||
code: 'mode',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcCooling,
|
||||
@ -622,6 +831,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Set Temperature',
|
||||
code: 'temp_set',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.temperature,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsCelsiusDegrees,
|
||||
@ -637,6 +847,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Fan Speed',
|
||||
code: 'level',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcFanLow,
|
||||
@ -667,6 +878,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Child Lock',
|
||||
code: 'child_lock',
|
||||
functionValue: functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneChildLock,
|
||||
@ -700,6 +912,7 @@ mixin SceneOperationsDataHelper {
|
||||
deviceIcon: Assets.delay,
|
||||
icon: Assets.delay,
|
||||
operationName: 'delay',
|
||||
operationDialogType: OperationDialogType.delay,
|
||||
functionValue: action.executorProperty.delaySeconds,
|
||||
code: '',
|
||||
operationalValues: [
|
||||
@ -725,6 +938,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Sensitivity',
|
||||
code: 'sensitivity',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -790,6 +1004,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Set Door lock Normal Open',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'normal_open_switch',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -812,6 +1027,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Far Detection',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'far_detection',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsFarDetectionFunction,
|
||||
@ -875,6 +1091,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motion Detection Sensitivity',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'motion_sensitivity_value',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -915,6 +1132,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motionless Detection Sensitivity',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'motion_sensitivity_value',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
iconValue: '1',
|
||||
@ -960,9 +1178,13 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Indicator',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'indicator',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
icon: Assets.assetsAcPower,
|
||||
description: "ON",
|
||||
value: true,
|
||||
),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
@ -982,6 +1204,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Nobody Time',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'presence_time',
|
||||
operationDialogType: OperationDialogType.temperature,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -998,6 +1221,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Switch Alarm Sound',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'switch_alarm_sound',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1022,6 +1246,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Master State',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'master_state',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1047,6 +1272,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Reset Factory',
|
||||
functionValue: executorProperty.functionValue,
|
||||
code: 'factory_reset',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh,
|
||||
@ -1070,6 +1296,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 Switch',
|
||||
code: 'switch_1',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1080,11 +1307,11 @@ mixin SceneOperationsDataHelper {
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh,
|
||||
description: "Reverse Switch",
|
||||
value: null,
|
||||
),
|
||||
// SceneOperationalValue(
|
||||
// icon: Assets.assetsSceneRefresh,
|
||||
// description: "Reverse Switch",
|
||||
// value: null,
|
||||
// ),
|
||||
],
|
||||
));
|
||||
break;
|
||||
@ -1097,6 +1324,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 Switch',
|
||||
code: 'switch_2',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1104,11 +1332,11 @@ mixin SceneOperationsDataHelper {
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh,
|
||||
description: "Reverse Switch",
|
||||
value: null,
|
||||
),
|
||||
// SceneOperationalValue(
|
||||
// icon: Assets.assetsSceneRefresh,
|
||||
// description: "Reverse Switch",
|
||||
// value: null,
|
||||
// ),
|
||||
],
|
||||
));
|
||||
break;
|
||||
@ -1121,6 +1349,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 Switch',
|
||||
code: 'switch_3',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1128,11 +1357,11 @@ mixin SceneOperationsDataHelper {
|
||||
icon: Assets.assetsAcPowerOFF,
|
||||
description: "OFF",
|
||||
value: false),
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh,
|
||||
description: "Reverse Switch",
|
||||
value: null,
|
||||
),
|
||||
// SceneOperationalValue(
|
||||
// icon: Assets.assetsSceneRefresh,
|
||||
// description: "Reverse Switch",
|
||||
// value: null,
|
||||
// ),
|
||||
],
|
||||
));
|
||||
break;
|
||||
@ -1145,6 +1374,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 CountDown',
|
||||
code: 'countdown_1',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1159,6 +1389,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 CountDown',
|
||||
code: 'countdown_2',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1173,6 +1404,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 CountDown',
|
||||
code: 'countdown_3',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1187,6 +1419,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Power',
|
||||
code: 'switch',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1210,6 +1443,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Set Temperature',
|
||||
code: 'temp_set',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.temperature,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsCelsiusDegrees,
|
||||
@ -1228,6 +1462,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Mode',
|
||||
code: 'mode',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcCooling,
|
||||
@ -1256,6 +1491,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Fan Speed',
|
||||
code: 'level',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcFanLow,
|
||||
@ -1289,6 +1525,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Child Lock',
|
||||
code: 'child_lock',
|
||||
functionValue: executorProperty.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneChildLock,
|
||||
@ -1330,6 +1567,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'delay',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: '',
|
||||
operationDialogType: OperationDialogType.delay,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: '',
|
||||
@ -1352,6 +1590,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Sensitivity',
|
||||
code: 'sensitivity',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -1417,6 +1656,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Set Door lock Normal Open',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'normal_open_switch',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1439,6 +1679,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Far Detection',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'far_detection',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsFarDetectionFunction,
|
||||
@ -1502,6 +1743,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motion Detection Sensitivity',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'motion_sensitivity_value',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSensitivityOperationIcon,
|
||||
@ -1542,6 +1784,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Motionless Detection Sensitivity',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'motion_sensitivity_value',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
iconValue: '1',
|
||||
@ -1587,6 +1830,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Indicator',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'indicator',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1609,6 +1853,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Nobody Time',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'presence_time',
|
||||
operationDialogType: OperationDialogType.temperature,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1625,6 +1870,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Switch Alarm Sound',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'switch_alarm_sound',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1649,6 +1895,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Master State',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'master_state',
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1674,6 +1921,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Reset Factory',
|
||||
functionValue: taskItem.functionValue,
|
||||
code: 'factory_reset',
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneRefresh,
|
||||
@ -1697,6 +1945,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 Switch',
|
||||
code: 'switch_1',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1719,6 +1968,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 Switch',
|
||||
code: 'switch_2',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1738,6 +1988,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 Switch',
|
||||
code: 'switch_3',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower, description: "ON", value: true),
|
||||
@ -1757,6 +2008,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 1 CountDown',
|
||||
code: 'countdown_1',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1771,6 +2023,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 2 CountDown',
|
||||
code: 'countdown_2',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1785,6 +2038,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Light 3 CountDown',
|
||||
code: 'countdown_3',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.countdown,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(icon: '', value: 0),
|
||||
],
|
||||
@ -1799,6 +2053,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Power',
|
||||
code: 'switch',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcPower,
|
||||
@ -1824,6 +2079,7 @@ mixin SceneOperationsDataHelper {
|
||||
functionValue: taskItem.functionValue != null
|
||||
? ((taskItem.functionValue / 10) as double).toInt()
|
||||
: null,
|
||||
operationDialogType: OperationDialogType.temperature,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsCelsiusDegrees,
|
||||
@ -1842,6 +2098,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Mode',
|
||||
code: 'mode',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcCooling,
|
||||
@ -1870,6 +2127,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Fan Speed',
|
||||
code: 'level',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.listOfOptions,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsAcFanLow,
|
||||
@ -1903,6 +2161,7 @@ mixin SceneOperationsDataHelper {
|
||||
operationName: 'Child Lock',
|
||||
code: 'child_lock',
|
||||
functionValue: taskItem.functionValue,
|
||||
operationDialogType: OperationDialogType.onOff,
|
||||
operationalValues: [
|
||||
SceneOperationalValue(
|
||||
icon: Assets.assetsSceneChildLock,
|
||||
|
Reference in New Issue
Block a user