diff --git a/packages/config/config/devices/0x015f/mh-s412-5102.json b/packages/config/config/devices/0x015f/mh-s412-5102.json index d9da946117d2..bb4b4e9a0c0c 100644 --- a/packages/config/config/devices/0x015f/mh-s412-5102.json +++ b/packages/config/config/devices/0x015f/mh-s412-5102.json @@ -65,7 +65,13 @@ "valueSize": 1, "minValue": 0, "maxValue": 10, - "defaultValue": 10 + "defaultValue": 10, + "options": [ + { + "label": "Disable", + "value": 0 + } + ] }, { "#": "5", @@ -75,37 +81,50 @@ "allowManualEntry": false, "options": [ { - "label": "Single click to switch on/off", + "label": "Single click (On/Off)", "value": 0 }, { - "label": "Click to turn on, auto off after param 6 duration", + "label": "Auto off after 'Key on duration' seconds", "value": 1 }, { - "label": "Click to turn off, auto on after param 6 duration", + "label": "Auto on after 'Key on duration' seconds", "value": 2 }, { - "label": "Hold >3s for on until released", + "label": "Held 3 seconds -> on; Release -> off", "value": 3 }, { - "label": "Single click to toggle, hold >3s for on until released", + "label": "Single click (On/Off); Held 3 seconds -> on; Release -> off", "value": 4 + }, + { + "label": "Momentary switch; Held -> on; Release -> off", + "value": 5 + }, + { + "label": "Held 3 seconds -> on; Held 3 seconds -> off", + "value": 6 } ] }, { "#": "6", "label": "Relay On Duration", - "description": "0 for infinite", "valueSize": 2, "unit": "seconds", "minValue": 0, "maxValue": 65535, "defaultValue": 0, - "unsigned": true + "unsigned": true, + "options": [ + { + "label": "Infinite", + "value": 0 + } + ] }, { "#": "8", @@ -115,150 +134,279 @@ "allowManualEntry": false, "options": [ { - "label": "Relay 1 responds to set, relay 1 responds to get, instant updates disabled", + "label": "Key 1 (Basic CC Set/Get); Reporting disabled", "value": 0 }, { - "label": "Relay 1 responds to set, relay 1 responds to get, instant updates enabled", + "label": "Key 1 (Basic CC Set/Get); Reporting enabled", "value": 1 }, { - "label": "All relays respond to set, get ignored, instant updates disabled", + "label": "All keys (Basic CC Set only); Reporting disabled", "value": 2 }, { - "label": "All relays respond to set, relay 1 responds to get, instant updates disabled", + "label": "All keys (Basic CC Set only); Reporting enabled", "value": 3 } ] }, { - "#": "10[0x01]", - "label": "Button 1 Respond to Scenes", + "#": "10", + "label": "Key 1 Mode", "valueSize": 1, "defaultValue": 0, - "unsigned": true, "allowManualEntry": false, "options": [ { - "label": "Disabled", + "label": "Single click (On/Off)", "value": 0 }, { - "label": "Enabled", + "label": "Auto off after 'Key on duration' seconds", "value": 1 + }, + { + "label": "Auto on after 'Key on duration' seconds", + "value": 2 + }, + { + "label": "Held 3 seconds -> on; Release -> off", + "value": 3 + }, + { + "label": "Single click (On/Off); Held 3 seconds -> on; Release -> off", + "value": 4 + }, + { + "label": "Momentary switch; Held -> on; Release -> off", + "value": 5 + }, + { + "label": "Held 3 seconds -> on; Held 3 seconds -> off", + "value": 6 } ] }, { - "#": "10[0x02]", - "label": "Button 2 Respond to Scenes", + "#": "11", + "label": "Key 2 Mode", "valueSize": 1, "defaultValue": 0, - "unsigned": true, "allowManualEntry": false, "options": [ { - "label": "Disabled", + "label": "Single click (On/Off)", "value": 0 }, { - "label": "Enabled", + "label": "Auto off after 'Key on duration' seconds", "value": 1 + }, + { + "label": "Auto on after 'Key on duration' seconds", + "value": 2 + }, + { + "label": "Held 3 seconds -> on; Release -> off", + "value": 3 + }, + { + "label": "Single click (On/Off); Held 3 seconds -> on; Release -> off", + "value": 4 + }, + { + "label": "Momentary switch; Held -> on; Release -> off", + "value": 5 + }, + { + "label": "Held 3 seconds -> on; Held 3 seconds -> off", + "value": 6 } ] }, { - "#": "11", - "label": "Button 1 Scene Activate Mode", + "#": "14", + "label": "Local Control", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [ + { + "label": "Enable", + "value": 0 + }, + { + "label": "Disable", + "value": 15 + } + ] + }, + { + "#": "15", + "label": "Remote Control", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [ + { + "label": "Enable", + "value": 0 + }, + { + "label": "Disable", + "value": 15 + } + ] + }, + { + "#": "16", + "label": "Respond to Scenes", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [ + { + "label": "Disable", + "value": 0 + }, + { + "label": "Key 1 responds", + "value": 1 + }, + { + "label": "Key 2 responds", + "value": 2 + }, + { + "label": "Keys 1 and 2 respond", + "value": 3 + } + ] + }, + { + "#": "17", + "label": "Key 1 Scene Activation: Mode", + "description": "Under which conditions key 1 activates the scene configured in parameter 18", "valueSize": 1, "defaultValue": 0, "allowManualEntry": false, "options": [ { - "label": "Scene activate function disabled", + "label": "Never", "value": 0 }, { - "label": "Button 1 tap activates scene in param 12 regardless of state", + "label": "Always", "value": 1 }, { - "label": "Button 1 tap activates scene in param 12 when state is off", + "label": "When relay is open", "value": 2 }, { - "label": "Button 1 tap activates scene in param 12 when state is on", + "label": "When relay is closed", "value": 3 } ] }, { - "#": "12", - "label": "Button 1 Activate Scene ID", + "#": "18", + "label": "Key 1 Scene Activation: Scene ID", "valueSize": 1, - "minValue": 1, + "minValue": 0, "maxValue": 255, - "defaultValue": 1, - "unsigned": true + "defaultValue": 0, + "unsigned": true, + "options": [ + { + "label": "Disable", + "value": 0 + } + ] }, { - "#": "13", - "label": "Button 1 Activate Scene Dim Duration", - "description": "0-127 seconds, +128 for minutes", + "#": "19", + "label": "Key 1 Scene Activation: Duration", + "description": "Values 1-127 = seconds; 128-255 = minutes (minus 127)", "valueSize": 1, + "unit": "seconds", "minValue": 0, "maxValue": 255, "defaultValue": 0, - "unsigned": true + "unsigned": true, + "options": [ + { + "label": "Instant", + "value": 0 + } + ] }, { - "#": "14", - "label": "Button 2 Scene Activate Mode", + "#": "20", + "$import": "#paramInformation/17", + "label": "Key 2 Scene Activation: Mode", + "description": "Under which conditions key 2 activates the scene configured in parameter 21" + }, + { + "#": "21", + "$import": "#paramInformation/18", + "label": "Key 2 Scene Activation: Scene ID" + }, + { + "#": "22", + "$import": "#paramInformation/19", + "label": "Key 2 Scene Activation: Duration" + }, + { + "#": "32", + "label": "Response to Scenes 1-50", "valueSize": 1, "defaultValue": 0, "allowManualEntry": false, "options": [ { - "label": "Scene activate function disabled", + "label": "Disable", "value": 0 }, { - "label": "Button 2 tap activates scene in param 15 regardless of state", + "label": "Key 1 responds", "value": 1 }, { - "label": "Button 2 tap activates scene in param 15 when state is off", + "label": "Key 2 responds", "value": 2 }, { - "label": "Button 2 tap activates scene in param 15 when state is on", + "label": "Keys 1 and 2 respond", "value": 3 } ] }, { - "#": "15", - "label": "Button 2 Activate Scene ID", - "valueSize": 1, - "minValue": 1, - "maxValue": 255, - "defaultValue": 1, - "unsigned": true + "#": "33", + "$import": "#paramInformation/32", + "label": "Response to Scenes 51-100" }, { - "#": "16", - "label": "Button 2 Activate Scene Dim Duration", - "description": "0-127 seconds, +128 for minutes", - "valueSize": 1, - "minValue": 0, - "maxValue": 255, - "defaultValue": 0, - "unsigned": true + "#": "34", + "$import": "#paramInformation/32", + "label": "Response to Scenes 101-150" + }, + { + "#": "35", + "$import": "#paramInformation/32", + "label": "Response to Scenes 151-200" + }, + { + "#": "36", + "$import": "#paramInformation/32", + "label": "Response to Scenes 201-250" }, { "#": "255", "label": "Factory Reset", + "description": "Alternatively, press any key 20 times", "valueSize": 1, "defaultValue": 0, "allowManualEntry": false, @@ -273,5 +421,11 @@ } ] } - ] + ], + "metadata": { + "inclusion": "Hold any key for >8s OR 3 fast clicks", + "exclusion": "Hold any key for >8s OR 3 fast clicks", + "reset": "20 fast clicks on any key", + "manual": "https:\/\/www.mcohome.com\/index.php?c=Front\/DownDetail&a=downloadFujian&name=MH-S412&path=L2NvbWRhdGEvOTUzMDEvcHJvZHVjdGZ1amlhbi8yMDIxMDIwMzE3Mjc0NjYwMWE2YzkyYjIxMTQucGRm" + } }