Skip to content

Commit 4772a37

Browse files
authored
DDF for Namron 8 button switch (4512772, 4512773) (#8240)
This adds support for the Namron 8 button switches 4512772 and 4512773 I have successfully tested that this works for 4512773. The reason for the new block in button_maps.json is that: The dim up buttons (1,3,4,5) send these commands: When holding down: MOVE_WITH_ON_OFF (0x05) When releasing: STOP_WITH_ON_OFF (0x07) The dim down buttons (2,4,6,8) send these commands: When holding down: MOVE (0x01) When releasing: STOP (0x03) What I don't know is if 4512772 (or other devices) also need to use the new block in button_maps.json or not. (I only own the 4512773) The capitalization of the manufacturer should be all-caps for both 4512772 and 4512773, but not for the other Namron devices. This is a fork of #7615 . See the discussion in that PR for more details.
1 parent adb55f5 commit 4772a37

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

button_maps.json

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@
13141314
"sunricherMap": {
13151315
"vendor": "Sunricher",
13161316
"doc": "Wireless switches from Sunricher, Namron, SLC and EcoDim",
1317-
"modelids": ["ED-10010", "ED-10011", "ED-10012", "ED-10013", "ED-10014", "ED-10015", "ZG2833K2_EU07", "ZG2833K8_EU05", "ZG2833K4_EU06", "ZG2835", "4512701", "4512702", "4512703", "4512705", "4512719", "4512721", "4512728", "4512729", "S57003", "ROB_200-008", "ROB_200-009-0", "ROB_200-008-0", "ROB_200-007-0"],
1317+
"modelids": ["ED-10010", "ED-10011", "ED-10012", "ED-10013", "ED-10014", "ED-10015", "ZG2833K2_EU07", "ZG2833K8_EU05", "ZG2833K4_EU06", "ZG2835", "4512701", "4512702", "4512703", "4512705", "4512719", "4512721", "4512772", "4512728", "4512729", "S57003", "ROB_200-008", "ROB_200-009-0", "ROB_200-008-0", "ROB_200-007-0"],
13181318
"buttons": [
13191319
{"S_BUTTON_1": "On 1"},
13201320
{"S_BUTTON_2": "Off 1"},
@@ -1352,6 +1352,47 @@
13521352
[1, "0x04", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "1", "S_BUTTON_8", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"]
13531353
]
13541354
},
1355+
"sunricherMapNamronVariant": {
1356+
"vendor": "Sunricher",
1357+
"doc": "Wireless switches from Sunricher, Namron, SLC and EcoDim",
1358+
"modelids": ["4512773"],
1359+
"buttons": [
1360+
{"S_BUTTON_1": "On 1"},
1361+
{"S_BUTTON_2": "Off 1"},
1362+
{"S_BUTTON_3": "On 2"},
1363+
{"S_BUTTON_4": "Off 2"},
1364+
{"S_BUTTON_5": "On 3"},
1365+
{"S_BUTTON_6": "Off 3"},
1366+
{"S_BUTTON_7": "On 4"},
1367+
{"S_BUTTON_8": "Off 4"}
1368+
],
1369+
"map": [
1370+
[1, "0x01", "ONOFF", "ON", "0", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "On"],
1371+
[1, "0x01", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_1", "S_BUTTON_ACTION_HOLD", "Move up (with on/off)"],
1372+
[1, "0x01", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_1", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1373+
[1, "0x01", "ONOFF", "OFF", "0", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "Off"],
1374+
[1, "0x01", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_2", "S_BUTTON_ACTION_HOLD", "Move down (with on/off)"],
1375+
[1, "0x01", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_2", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1376+
[1, "0x02", "ONOFF", "ON", "0", "S_BUTTON_3", "S_BUTTON_ACTION_SHORT_RELEASED", "On"],
1377+
[1, "0x02", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_3", "S_BUTTON_ACTION_HOLD", "Move up (with on/off)"],
1378+
[1, "0x02", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_3", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1379+
[1, "0x02", "ONOFF", "OFF", "0", "S_BUTTON_4", "S_BUTTON_ACTION_SHORT_RELEASED", "Off"],
1380+
[1, "0x02", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_4", "S_BUTTON_ACTION_HOLD", "Move down (with on/off)"],
1381+
[1, "0x02", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_4", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1382+
[1, "0x03", "ONOFF", "ON", "0", "S_BUTTON_5", "S_BUTTON_ACTION_SHORT_RELEASED", "On"],
1383+
[1, "0x03", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_5", "S_BUTTON_ACTION_HOLD", "Move up (with on/off)"],
1384+
[1, "0x03", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_5", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1385+
[1, "0x03", "ONOFF", "OFF", "0", "S_BUTTON_6", "S_BUTTON_ACTION_SHORT_RELEASED", "Off"],
1386+
[1, "0x03", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_6", "S_BUTTON_ACTION_HOLD", "Move down (with on/off)"],
1387+
[1, "0x03", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_6", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1388+
[1, "0x04", "ONOFF", "ON", "0", "S_BUTTON_7", "S_BUTTON_ACTION_SHORT_RELEASED", "On"],
1389+
[1, "0x04", "LEVEL_CONTROL", "MOVE_WITH_ON_OFF", "0", "S_BUTTON_7", "S_BUTTON_ACTION_HOLD", "Move up (with on/off)"],
1390+
[1, "0x04", "LEVEL_CONTROL", "STOP_WITH_ON_OFF", "0", "S_BUTTON_7", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"],
1391+
[1, "0x04", "ONOFF", "OFF", "0", "S_BUTTON_8", "S_BUTTON_ACTION_SHORT_RELEASED", "Off"],
1392+
[1, "0x04", "LEVEL_CONTROL", "MOVE", "1", "S_BUTTON_8", "S_BUTTON_ACTION_HOLD", "Move down (with on/off)"],
1393+
[1, "0x04", "LEVEL_CONTROL", "STOP", "1", "S_BUTTON_8", "S_BUTTON_ACTION_LONG_RELEASED", "Stop_ (with on/off)"]
1394+
]
1395+
},
13551396
"Tuya3gangMap": {
13561397
"vendor": "Tuya",
13571398
"doc": "3-gang remote",

devices/sunricher/8button_switch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"EcoDim",
88
"Namron AS",
99
"Namron AS",
10+
"NAMRON AS",
11+
"NAMRON AS",
1012
"Sunricher",
1113
"THE LIGHT GROUP AS",
1214
"ROBB smarrt",
@@ -18,6 +20,8 @@
1820
"ED-10015",
1921
"4512703",
2022
"4512721",
23+
"4512772",
24+
"4512773",
2125
"ZG2833K8_EU05",
2226
"S57003",
2327
"ROB_200-007-0",

0 commit comments

Comments
 (0)