Skip to content

Commit

Permalink
Add settings support for new models and update related documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Jan 18, 2025
1 parent d6744a1 commit fd551dc
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/tc_bus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"TCS IMM2100 / Koch TCE31",
"TCS IVW2210 / Koch Ecoos",
"TCS IVW2211 / Koch Ecoos",
"TCS IVW2212 / Koch Ecoos",
"TCS IVW2212 / Koch Ecoos / Scantron SLIM60T",
"TCS VTC42V2",
"TCS TC40V2",
"TCS VTC40",
Expand Down
4 changes: 2 additions & 2 deletions components/tc_bus/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ namespace esphome
if (str == "TCS IMM2100 / Koch TCE31") return MODEL_IMM2100;
if (str == "TCS IVW2210 / Koch Ecoos") return MODEL_IVW2210;
if (str == "TCS IVW2211 / Koch Ecoos") return MODEL_IVW2211;
if (str == "TCS IVW2212 / Koch Ecoos") return MODEL_IVW2212;
if (str == "TCS IVW2212 / Koch Ecoos / Scantron SLIM60T") return MODEL_IVW2212;
if (str == "TCS VTC42V2") return MODEL_VTC42V2;
if (str == "TCS TC40V2") return MODEL_TC40V2;
if (str == "TCS VTC40") return MODEL_VTC40;
Expand Down Expand Up @@ -587,7 +587,7 @@ namespace esphome
case MODEL_IMM2100: return "TCS IMM2100 / Koch TCE31";
case MODEL_IVW2210: return "TCS IVW2210 / Koch Ecoos";
case MODEL_IVW2211: return "TCS IVW2211 / Koch Ecoos";
case MODEL_IVW2212: return "TCS IVW2212 / Koch Ecoos";
case MODEL_IVW2212: return "TCS IVW2212 / Koch Ecoos / Scantron SLIM60T";
case MODEL_VTC42V2: return "TCS VTC42V2";
case MODEL_TC40V2: return "TCS TC40V2";
case MODEL_VTC40: return "TCS VTC40";
Expand Down
32 changes: 32 additions & 0 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ namespace esphome
case MODEL_ISW3030:
case MODEL_ISW3230:
case MODEL_ISW3340:
case MODEL_ISW3130:
case MODEL_ISW3330:
case MODEL_IVH4222:
switch (setting)
{
case SETTING_RINGTONE_DOOR_CALL:
Expand Down Expand Up @@ -972,6 +975,35 @@ namespace esphome
default: break;
}
break;

case MODEL_IVW2210:
case MODEL_IVW2211:
case MODEL_IVW2212:
switch (setting)
{
/*case SETTING_RINGTONE_DOOR_CALL:
data.index = 3;
data.left_nibble = true;
break;
case SETTING_RINGTONE_INTERNAL_CALL:
data.index = 6;
data.left_nibble = true;
break;
case SETTING_RINGTONE_FLOOR_CALL:
data.index = 9;
data.left_nibble = true;
break;
case SETTING_VOLUME_RINGTONE:
data.index = 20;
data.left_nibble = false;
break;*/

default: break;
}
break;
default: break;
}

Expand Down
14 changes: 7 additions & 7 deletions docs/en/reference/esphome-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,16 @@ Here are the available settings for specific indoor station models:
| TCS ISW3030 / Koch TC50 / Scantron Stilux | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call`, `volume_ringtone`, `volume_handset` |
| TCS ISW3230 / Koch TC50 GFA | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call`, `volume_ringtone`, `volume_handset` |
| TCS ISW3340 | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call`, `volume_ringtone`, `volume_handset` |
| TCS IVH3222 / Koch VTCH50 / Scantron VLux | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call` |
| TCS ISW3130 / Koch TC50P | Verification and implementation required |
| TCS ISW3330 / Koch TC50 BW | Verification and implementation required |
| TCS ISW3130 / Koch TC50P | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call`, `volume_ringtone`, `volume_handset` |
| TCS IVH3222 / Koch VTCH50 / Scantron VLux | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call` |
| TCS IVH4222 / Koch VTCH50/2D | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call` |
| TCS ISW3330 / Koch TC50 BW | `ringtone_floor_call`, `ringtone_door_call`, `ringtone_internal_call`, `volume_ringtone`, `volume_handset` |
| TCS ISW5010 / Koch TC60 | Verification and implementation required |
| TCS IVW521x / Koch VTC60/2D / Scantron VIVO | Verification and implementation required |
| TCS ISW5020 | Verification and implementation required |
| TCS ISW5030 | Verification and implementation required |
| TCS ISW5031 | Verification and implementation required |
| TCS ISW5033 | Verification and implementation required |
| TCS IVW521x / Koch VTC60/2D / Scantron VIVO | Verification and implementation required |
| TCS ISW6031 | Verification and implementation required |
| TCS ISW7030 / Koch TC70 | Verification and implementation required |
| TCS IVW7510 / Koch VTC70 | Verification and implementation required |
Expand All @@ -430,7 +431,7 @@ Here are the available settings for specific indoor station models:
| TCS IMM2100 / Koch TCE31 | Verification and implementation required |
| TCS IVW2210 / Koch Ecoos | Verification and implementation required |
| TCS IVW2211 / Koch Ecoos | Verification and implementation required |
| TCS IVW2212 / Koch Ecoos | Verification and implementation required |
| TCS IVW2212 / Koch Ecoos / Scantron SLIM60T | Verification and implementation required |
| TCS VTC42V2 | Verification and implementation required |
| TCS TC40V2 | Verification and implementation required |
| TCS VTC40 | Verification and implementation required |
Expand All @@ -443,7 +444,6 @@ Here are the available settings for specific indoor station models:
| TCS IMM1000 / Koch TCH30 | Verification and implementation required |
| TCS IMM1100 / Koch TCHE30 | Verification and implementation required |
| TCS IMM1300 / Koch VTCH30 | Verification and implementation required |
| TCS IMM1500 | Verification and implementation required |
| TCS IMM1310 / Koch VTCHE30 | Verification and implementation required |
| TCS IMM1110 / Koch TCHEE30 | Verification and implementation required |
| TCS IVH4222 / Koch VTCH50/2D | Verification and implementation required |
| TCS IMM1500 | Verification and implementation required |

0 comments on commit fd551dc

Please sign in to comment.