Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): add MCOHome C521/C621 shutters, fix C321, make shutters consistent #6419

Merged
merged 4 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions packages/config/config/devices/0x015f/mh-c321.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"manufacturer": "McoHome Technology Co., Ltd.",
"manufacturerId": "0x015f",
"label": "MH-C321",
"description": "Shutter Panel",
"devices": [
{
"productType": "0xc321",
"productId": "0x5102"
}
],
"firmwareVersion": {
"min": "0.0",
"max": "255.255"
},
"paramInformation": [
{
"#": "1",
"$import": "templates/mcohome_template.json#w_report_interval"
},
{
"#": "2",
"$import": "templates/mcohome_template.json#kwh_report_interval"
},
{
"#": "5",
"$import": "templates/mcohome_template.json#level_report_mode"
},
{
"#": "8",
"$import": "templates/mcohome_template.json#backlight_brightness"
},
{
"#": "7",
"$import": "templates/mcohome_template.json#demo_trip"
},
{
"#": "10",
"$import": "templates/mcohome_template.json#auto_calibrate"
},
{
"#": "9",
"$import": "templates/mcohome_template.json#demo_trip_and_calibrate"
},
{
"#": "11",
"$import": "templates/mcohome_template.json#min_shutter_level"
},
{
"#": "12",
"$import": "templates/mcohome_template.json#max_shutter_level"
},
{
"#": "13",
"label": "External Switch Type",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Button (Momentary buttons)",
"value": 0
},
{
"label": "Toggle (2-State switches)",
"value": 1
}
]
},
{
"#": "14",
"label": "External Switch Input",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Function disabled",
"value": 0
},
{
"label": "External switch wired to S1",
"value": 1
},
{
"label": "External switch wired to S2",
"value": 2
},
{
"label": "Switches wired to S1 and S2, each control both directions",
"value": 3
},
{
"label": "Switches wired to S1 and S2, S1 for open, S2 for close",
"value": 4
}
]
},
{
"#": "255",
"$import": "templates/mcohome_template.json#factory_reset"
}
],
"compat": {
"commandClasses": {
"add": {
"Multilevel Switch": {
// This is a roller shutter, but it responds to the CC version request with 0
"isSupported": true,
"version": 1
}
}
}
}
}
118 changes: 15 additions & 103 deletions packages/config/config/devices/0x015f/mh-c421.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manufacturer": "McoHome Technology Co., Ltd.",
"manufacturerId": "0x015f",
"label": "MH-C421",
"description": "MCO HOME Micro Shutter",
"description": "Shutter Panel",
"devices": [
{
"productType": "0xc421",
Expand All @@ -16,114 +16,39 @@
"paramInformation": [
{
"#": "1",
"label": "Watt Meter Report Period",
"valueSize": 2,
"unit": "5 seconds",
"minValue": 1,
"maxValue": 32767,
"defaultValue": 720
"$import": "templates/mcohome_template.json#w_report_interval"
},
{
"#": "2",
"label": "kWh Meter Report Period",
"valueSize": 2,
"unit": "10 minutes",
"minValue": 1,
"maxValue": 32767,
"defaultValue": 6
"$import": "templates/mcohome_template.json#kwh_report_interval"
},
{
"#": "5",
"label": "Level Report Trigger",
"valueSize": 1,
"defaultValue": 2,
"allowManualEntry": false,
"options": [
{
"label": "Report every 5 seconds",
"value": 1
},
{
"label": "Report every 10% change",
"value": 2
}
]
},
{
"#": "7",
"label": "Read Motor Data On First Use",
"description": "Run the motor for 3 seconds to read motor data",
"valueSize": 1,
"defaultValue": 1,
"allowManualEntry": false,
"options": [
{
"label": "Disable",
"value": 0
},
{
"label": "Enable",
"value": 1
}
]
"$import": "templates/mcohome_template.json#level_report_mode"
},
{
"#": "8",
"label": "LED Backlight Brightness",
"valueSize": 1,
"minValue": 0,
"maxValue": 10,
"defaultValue": 10
"$import": "templates/mcohome_template.json#backlight_brightness"
},
{
"#": "9",
"label": "Read Motor Data and Auto Calibrate",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Normal operation",
"value": 0
},
{
"label": "Activate",
"value": 1
}
]
"#": "7",
"$import": "templates/mcohome_template.json#demo_trip"
},
{
"#": "10",
"label": "Auto Calibrate",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Normal operation",
"value": 0
},
{
"label": "Activate",
"value": 1
}
]
"$import": "templates/mcohome_template.json#auto_calibrate"
},
{
"#": "9",
"$import": "templates/mcohome_template.json#demo_trip_and_calibrate"
},
{
"#": "11",
"label": "Min Level Shutter Close",
"valueSize": 1,
"minValue": 0,
"maxValue": 98,
"defaultValue": 0
"$import": "templates/mcohome_template.json#min_shutter_level"
},
{
"#": "12",
"label": "Max Level Shutter Open",
"valueSize": 1,
"minValue": 1,
"maxValue": 99,
"defaultValue": 99
"$import": "templates/mcohome_template.json#max_shutter_level"
},
{
"#": "13",
Expand Down Expand Up @@ -173,20 +98,7 @@
},
{
"#": "255",
"label": "Factory Reset",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Normal operation",
"value": 0
},
{
"label": "Reset",
"value": 85
}
]
"$import": "templates/mcohome_template.json#factory_reset"
}
],
"compat": {
Expand Down
69 changes: 69 additions & 0 deletions packages/config/config/devices/0x015f/mh-c521.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"manufacturer": "McoHome Co., Ltd.",
"manufacturerId": "0x015f",
"label": "MH-C521",
"description": "Shutter Panel",
"devices": [
{
"productType": "0xc521",
"productId": "0x5106"
}
],
"firmwareVersion": {
"min": "0.0",
"max": "255.255"
},
"paramInformation": [
{
"#": "1",
"$import": "templates/mcohome_template.json#w_report_interval"
},
{
"#": "2",
"$import": "templates/mcohome_template.json#kwh_report_interval"
},
{
"#": "5",
"$import": "templates/mcohome_template.json#level_report_mode"
},
{
"#": "8",
"$import": "templates/mcohome_template.json#backlight_brightness"
},
{
"#": "7",
"$import": "templates/mcohome_template.json#demo_trip"
},
{
"#": "10",
"$import": "templates/mcohome_template.json#auto_calibrate"
},
{
"#": "9",
"$import": "templates/mcohome_template.json#demo_trip_and_calibrate"
},
{
"#": "11",
"$import": "templates/mcohome_template.json#min_shutter_level"
},
{
"#": "12",
"$import": "templates/mcohome_template.json#max_shutter_level"
},
{
"#": "255",
"$import": "templates/mcohome_template.json#factory_reset"
}
],
"compat": {
"commandClasses": {
"add": {
"Multilevel Switch": {
// This is a roller shutter, but it responds to the CC version request with 0
"isSupported": true,
"version": 1
}
}
}
}
}
Loading