Skip to content

Commit c4bea52

Browse files
Overwrite Z2M model
This will show: - correct image - correct name & link to device
1 parent b0f96ff commit c4bea52

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

helper_scripts/make_z2m_custom_converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
devices.append({
7070
"zb_models": [zb_model, *device.get("old_zb_models", [])],
71-
"model": device["stock_converter_model"],
71+
"model": device.get("override_z2m_device", device["stock_converter_model"]),
7272
"switchNames": switch_names,
7373
"relayNames": relay_names,
7474
"relayIndicatorNames": relay_names[:indicators_cnt],

zigbee2mqtt/converters/switch_custom.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ const definitions = [
505505
"TS0001-Avatto-custom",
506506
"TS0001-AV-CUS",
507507
],
508-
model: "TS0001_switch_module",
508+
model: "ZWSM16-1-Zigbee",
509509
vendor: "Tuya-custom",
510510
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
511511
extend: [
@@ -538,7 +538,7 @@ const definitions = [
538538
"TS0002-Avatto-custom",
539539
"TS0002-AV-CUS",
540540
],
541-
model: "TS0002_limited",
541+
model: "ZWSM16-2-Zigbee",
542542
vendor: "Tuya-custom",
543543
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
544544
extend: [
@@ -584,7 +584,7 @@ const definitions = [
584584
"TS0003-Avatto-custom",
585585
"TS0003-AV-CUS",
586586
],
587-
model: "TS0003_switch_module_2",
587+
model: "ZWSM16-3-Zigbee",
588588
vendor: "Tuya-custom",
589589
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
590590
extend: [
@@ -643,7 +643,7 @@ const definitions = [
643643
"TS0004-Avatto-custom",
644644
"TS0004-AV-CUS",
645645
],
646-
model: "TS0004_switch_module_2",
646+
model: "ZWSM16-4-Zigbee",
647647
vendor: "Tuya-custom",
648648
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
649649
extend: [
@@ -1737,7 +1737,7 @@ const definitions = [
17371737
zigbeeModel: [
17381738
"ZB08-custom",
17391739
],
1740-
model: "TS0013_switch_module",
1740+
model: "ZB08",
17411741
vendor: "Tuya-custom",
17421742
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
17431743
extend: [
@@ -1794,7 +1794,7 @@ const definitions = [
17941794
zigbeeModel: [
17951795
"ZB08-custom-ED",
17961796
],
1797-
model: "TS0013_switch_module",
1797+
model: "ZB08",
17981798
vendor: "Tuya-custom",
17991799
description: "Custom switch (https://github.com/romasku/tuya-zigbee-switch)",
18001800
extend: [

0 commit comments

Comments
 (0)