We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36fa2bb commit 79720e0Copy full SHA for 79720e0
helper_scripts/templates/switch_custom.js.jinja
@@ -41,10 +41,10 @@ const romasku = {
41
enumLookup({
42
name,
43
endpointName,
44
- lookup: { detached: 0, raise: 1, short_press: 3, long_press: 2},
+ lookup: { detached: 0, press_start: 1, short_press: 3, long_press: 2},
45
cluster: "genOnOffSwitchCfg",
46
attribute: { ID: 0xff01, type: 0x30 }, // Enum8
47
- description: "When to trigger internal relay",
+ description: "When to turn on/off internal relay",
48
}),
49
relayIndex: (name, endpointName, relay_cnt) =>
50
@@ -61,10 +61,10 @@ const romasku = {
61
62
63
64
- lookup: { raise: 1, short_press: 3, long_press: 2},
+ lookup: { press_start: 1, short_press: 3, long_press: 2},
65
66
attribute: { ID: 0xff05, type: 0x30 }, // Enum8
67
- description: "When to trigger binded device",
+ description: "When turn on/off binded device",
68
69
longPressDuration: (name, endpointName) =>
70
numeric({
0 commit comments