Skip to content

Commit 79720e0

Browse files
committed
Update naming and wording of relay/binded modes
1 parent 36fa2bb commit 79720e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

helper_scripts/templates/switch_custom.js.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ const romasku = {
4141
enumLookup({
4242
name,
4343
endpointName,
44-
lookup: { detached: 0, raise: 1, short_press: 3, long_press: 2},
44+
lookup: { detached: 0, press_start: 1, short_press: 3, long_press: 2},
4545
cluster: "genOnOffSwitchCfg",
4646
attribute: { ID: 0xff01, type: 0x30 }, // Enum8
47-
description: "When to trigger internal relay",
47+
description: "When to turn on/off internal relay",
4848
}),
4949
relayIndex: (name, endpointName, relay_cnt) =>
5050
enumLookup({
@@ -61,10 +61,10 @@ const romasku = {
6161
enumLookup({
6262
name,
6363
endpointName,
64-
lookup: { raise: 1, short_press: 3, long_press: 2},
64+
lookup: { press_start: 1, short_press: 3, long_press: 2},
6565
cluster: "genOnOffSwitchCfg",
6666
attribute: { ID: 0xff05, type: 0x30 }, // Enum8
67-
description: "When to trigger binded device",
67+
description: "When turn on/off binded device",
6868
}),
6969
longPressDuration: (name, endpointName) =>
7070
numeric({

0 commit comments

Comments
 (0)