Skip to content

Commit

Permalink
feat(config): add NewOne N4003, template more in the Minoston directo…
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel authored Aug 4, 2022
1 parent 16b4bd8 commit 9122296
Show file tree
Hide file tree
Showing 33 changed files with 289 additions and 961 deletions.
84 changes: 13 additions & 71 deletions packages/config/config/devices/0x0312/mp20z.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,89 +17,31 @@
"paramInformation": [
{
"#": "1",
"label": "Status LED Configuration",
"valueSize": 1,
"defaultValue": 0,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "LED on when load on, LED off when either load off",
"value": 0
},
{
"label": "LED on when load off, LED off when either load on",
"value": 1
},
{
"label": "LED always off",
"value": 2
}
]
"$import": "~/templates/master_template.json#led_indicator_three_options_inverted"
},
{
"#": "2",
"label": "Left Outlet Auto-Off Timer",
"valueSize": 4,
"unit": "seconds",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_off_timer",
"label": "Left Outlet: Auto-Off Timer",
"unit": "seconds"
},
{
"#": "3",
"label": "Right Outlet Auto-Off Timer",
"valueSize": 4,
"unit": "seconds",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_off_timer",
"label": "Right Outlet: Auto-Off Timer",
"unit": "seconds"
},
{
"#": "4",
"label": "Left Outlet Auto-On Timer",
"valueSize": 4,
"unit": "seconds",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_on_timer",
"label": "Left Outlet: Auto-On Timer",
"unit": "seconds"
},
{
"#": "5",
"label": "Right Outlet Auto-on Timer",
"valueSize": 4,
"unit": "seconds",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_on_timer",
"label": "Right Outlet: Auto-On Timer",
"unit": "seconds"
},
{
"#": "6",
Expand Down
34 changes: 2 additions & 32 deletions packages/config/config/devices/0x0312/mp21z.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,11 @@
"paramInformation": [
{
"#": "1",
"label": "Status LED Configuration",
"valueSize": 1,
"defaultValue": 0,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "LED on when load off, LED off when load on",
"value": 0
},
{
"label": "LED on when load on, LED off when load off",
"value": 1
},
{
"label": "LED always off",
"value": 2
}
]
"$import": "~/templates/master_template.json#led_indicator_three_options"
},
{
"#": "2",
"label": "Auto-Off Timer",
"valueSize": 2,
"unit": "seconds",
"minValue": 0,
"maxValue": 36000,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_off_timer_36000s"
}
],
"metadata": {
Expand Down
16 changes: 8 additions & 8 deletions packages/config/config/devices/0x0312/mp21zd.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
},
{
"#": "3",
"$import": "~/0x0312/templates/minoston_template.json#auto_off_timer"
"$import": "templates/minoston_template.json#auto_off_timer"
},
{
"#": "5",
"$import": "~/0x0312/templates/minoston_template.json#auto_on_timer"
"$import": "templates/minoston_template.json#auto_on_timer"
},
{
"#": "8",
Expand All @@ -51,35 +51,35 @@
},
{
"#": "12",
"$import": "~/0x0312/templates/minoston_template.json#double_tap_function"
"$import": "templates/minoston_template.json#double_tap_function"
},
{
"#": "15",
"$import": "~/templates/master_template.json#smart_switch_mode_0-2"
},
{
"#": "21",
"$import": "~/0x0312/templates/minoston_template.json#report_state_when_local_control_disabled"
"$import": "templates/minoston_template.json#report_state_when_local_control_disabled"
},
{
"#": "16",
"$import": "~/templates/master_template.json#dimming_speed_1-99_seconds"
},
{
"#": "20",
"$import": "~/0x0312/templates/minoston_template.json#association_reports"
"$import": "templates/minoston_template.json#association_reports_basic_multilevel"
},
{
"#": "22",
"$import": "~/0x0312/templates/minoston_template.json#night_mode_brightness"
"$import": "templates/minoston_template.json#night_mode_brightness"
},
{
"#": "23",
"$import": "~/0x0312/templates/minoston_template.json#led_indicator_color"
"$import": "templates/minoston_template.json#led_indicator_color"
},
{
"#": "26",
"$import": "~/0x0312/templates/minoston_template.json#led_indicator_brightness"
"$import": "templates/minoston_template.json#led_indicator_brightness"
}
],
"metadata": {
Expand Down
7 changes: 2 additions & 5 deletions packages/config/config/devices/0x0312/mp21zp.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@
},
{
"#": "5",
"label": "Power Wattage Reporting Threshold",
"valueSize": 1,
"unit": "W",
"$import": "templates/minoston_template.json#power_reporting_threshold",
"minValue": 0,
"maxValue": 5,
"defaultValue": 1,
"unsigned": true
"defaultValue": 1
},
{
"#": "6",
Expand Down
52 changes: 5 additions & 47 deletions packages/config/config/devices/0x0312/mp22z.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,59 +28,17 @@
"paramInformation": [
{
"#": "1",
"label": "Status LED Configuration",
"valueSize": 1,
"minValue": 0,
"maxValue": 2,
"defaultValue": 0,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "LED on when load off, LED off when load on",
"value": 0
},
{
"label": "LED on when load on, LED off when load off",
"value": 1
},
{
"label": "LED always off",
"value": 2
}
]
"$import": "~/templates/master_template.json#led_indicator_three_options"
},
{
"#": "2",
"label": "Auto-Off Timer",
"valueSize": 2,
"unit": "minutes",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disable",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_off_timer",
"valueSize": 2
},
{
"#": "4",
"label": "Auto-On Timer",
"valueSize": 2,
"unit": "minutes",
"minValue": 0,
"maxValue": 65535,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disable",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_on_timer",
"valueSize": 2
},
{
"#": "6",
Expand Down
4 changes: 2 additions & 2 deletions packages/config/config/devices/0x0312/mp22zd.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
},
{
"#": "4",
"$import": "~/0x0312/templates/minoston_template.json#auto_off_timer"
"$import": "templates/minoston_template.json#auto_off_timer"
},
{
"#": "6",
"$import": "~/0x0312/templates/minoston_template.json#auto_on_timer"
"$import": "templates/minoston_template.json#auto_on_timer"
},
{
"#": "7",
Expand Down
8 changes: 1 addition & 7 deletions packages/config/config/devices/0x0312/mp22zp.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@
},
{
"#": "5",
"label": "Power Reporting Threshold",
"valueSize": 1,
"unit": "W",
"minValue": 5,
"maxValue": 50,
"defaultValue": 5,
"unsigned": true
"$import": "templates/minoston_template.json#power_reporting_threshold"
},
{
"#": "6",
Expand Down
34 changes: 2 additions & 32 deletions packages/config/config/devices/0x0312/mp23z.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,11 @@
"paramInformation": [
{
"#": "1",
"label": "Status LED Configuration",
"valueSize": 1,
"defaultValue": 0,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "LED on when load off, LED off when load on",
"value": 0
},
{
"label": "LED on when load on, LED off when load off",
"value": 1
},
{
"label": "LED always off",
"value": 2
}
]
"$import": "~/templates/master_template.json#led_indicator_three_options"
},
{
"#": "2",
"label": "Auto-Off Timer",
"valueSize": 2,
"unit": "seconds",
"minValue": 0,
"maxValue": 32767,
"defaultValue": 0,
"unsigned": true,
"options": [
{
"label": "Disabled",
"value": 0
}
]
"$import": "templates/minoston_template.json#auto_off_timer_32767s"
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 9122296

Please sign in to comment.