mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
water heater and timer and schedule ui and api ,
Circulate ui and Inching ui
This commit is contained in:
@ -49,6 +49,7 @@ enum DeviceType {
|
||||
Gateway,
|
||||
CeilingSensor,
|
||||
WallSensor,
|
||||
WH,
|
||||
Other,
|
||||
}
|
||||
|
||||
@ -73,6 +74,7 @@ Map<String, DeviceType> devicesTypesMap = {
|
||||
"2G": DeviceType.TwoGang,
|
||||
"1G": DeviceType.OneGang,
|
||||
"CUR": DeviceType.Curtain,
|
||||
"WH": DeviceType.WH,
|
||||
};
|
||||
Map<DeviceType, List<FunctionModel>> devicesFunctionsMap = {
|
||||
DeviceType.AC: [
|
||||
@ -185,7 +187,6 @@ Map<DeviceType, List<FunctionModel>> devicesFunctionsMap = {
|
||||
values: ValueModel.fromJson({"unit": "s", "min": 0, "max": 43200, "scale": 0, "step": 1})
|
||||
),
|
||||
],
|
||||
|
||||
DeviceType.ThreeGang: [
|
||||
FunctionModel(
|
||||
code: 'switch_1', type: functionTypesMap['Boolean'], values: ValueModel.fromJson({})),
|
||||
@ -221,6 +222,43 @@ Map<DeviceType, List<FunctionModel>> devicesFunctionsMap = {
|
||||
{"unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1})
|
||||
),
|
||||
],
|
||||
DeviceType.WH: [
|
||||
FunctionModel(
|
||||
code: 'switch_1',
|
||||
type: functionTypesMap['Boolean'],
|
||||
values: ValueModel.fromJson({})
|
||||
),
|
||||
FunctionModel(
|
||||
code: 'countdown_1',
|
||||
type: functionTypesMap['Integer'],
|
||||
values: ValueModel.fromJson(
|
||||
{"unit": "s", "min": 0, "max": 43200, "scale": 0, "step": 1})
|
||||
),
|
||||
FunctionModel(
|
||||
code: 'relay_status',
|
||||
type: functionTypesMap['Enum'],
|
||||
values: ValueModel.fromJson(
|
||||
{"range": [ "off", "on"]})
|
||||
),
|
||||
FunctionModel(
|
||||
code: 'switch_backlight',
|
||||
type: functionTypesMap['Boolean'],
|
||||
values: ValueModel.fromJson(
|
||||
{})
|
||||
),
|
||||
FunctionModel(
|
||||
code: 'switch_inching',
|
||||
type: functionTypesMap['String'],
|
||||
values: ValueModel.fromJson(
|
||||
{"maxlen": 255,})
|
||||
),
|
||||
FunctionModel(
|
||||
code: 'cycle_timing',
|
||||
type: functionTypesMap['Raw'],
|
||||
values: ValueModel.fromJson(
|
||||
{"maxlen": 255})
|
||||
),
|
||||
],
|
||||
};
|
||||
|
||||
enum TempModes { hot, cold, wind }
|
||||
|
Reference in New Issue
Block a user