Skip to content

Commit

Permalink
Add new routers
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Apr 5, 2022
1 parent 02843a1 commit fc0af14
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,21 @@ Many more Xiaomi and Redmi routers supported by MiWiFi (OpenWRT - Luci API)
| ![](http://www1.miwifi.com/statics/img/AX3600.png) | **Xiaomi AIoT Router AX3600** | R3600 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/RM2100.png) | **Redmi Router AC2100** | RM2100 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/[email protected]) | **Mi Router AC2100** | R2100 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/R1350.png) | **Mi Router 4 Pro** | R1350 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/R2350.png) | **Mi AIoT Router AC2350** | R2350 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/[email protected]) | **Mi Router Mesh** | D01 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R4A.png) | **Mi Router 4A Gigabit** | R4A | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🟢 |
| ![](http://www1.miwifi.com/statics/img/R4AC.png) | **Mi Router 4A** | R4AC | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R4A.png) | **Mi Router 4A Gigabit** | R4A | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R4CM.png) | **Mi Router 4C** | R4CM | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R4.png) | **Mi Router 4** | R4 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R3.png) | **Mi Router 3G** | R3G | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R4C.png) | **Mi Router 4Q** | R4C | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R3L.png) | **Mi Router 3A** | R3A | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R3L.png) | **Mi Router 3C** | R3L | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/r3dxf.png) | **Mi Router HD** | R3D | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/r3p.png) | **Mi Router Pro** | R3P | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R3.png) | **Mi Router 3** | R3 | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R1350.png) | **Mi Router 4 Pro** | R1350 | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R2350.png) | **Mi AIoT Router AC2350** | R2350 | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R4AC.png) | **Mi Router 4A** | R4AC | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R4CM.png) | **Mi Router 4C** | R4CM | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R4C.png) | **Mi Router 4Q** | R4C | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R3L.png) | **Mi Router 3A** | R3A | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R3L.png) | **Mi Router 3C** | R3L | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/r3dxf.png) | **Mi Router HD** | R3D | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/r3p.png) | **Mi Router Pro** | R3P | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R1CL.png) | **Mi Router Lite** | R1CL | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R1C.png) | **Mi Router Mini** | R1CM | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R2D.png) | **Mi Router R2D** | R2D | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R1D.png) | **Mi Router R1D** | R1D | ⚪⚪⚪⚪ ➖ ⚪⚪⚪⚪⚪⚪⚪⚪ |
| ![](http://www1.miwifi.com/statics/img/R3.png) | **Mi Router 3G** | R3G | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R1CL.png) | **Mi Router Lite** | R1CL | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R1C.png) | **Mi Router Mini** | R1CM | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R2D.png) | **Mi Router R2D** | R2D | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
| ![](http://www1.miwifi.com/statics/img/R1D.png) | **Mi Router R1D** | R1D | 🟢🟢🟢🟢 ➖ 🟢🟢🟢🟢🟢🟢🟢🔴 |
15 changes: 14 additions & 1 deletion custom_components/miwifi/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,25 @@ def __str__(self) -> str:
return str(self.value)

NOT_KNOWN = "not_known"
R3 = "r3"
R1D = "r1d"
R2D = "r2d"
R1CM = "r1cm"
R1CL = "r1cl"
R3G = "r3g"
R3 = "r3"
R3P = "r3p"
R3D = "r3d"
R3L = "r3l"
R3A = "r3a"
R4C = "r4c"
R4 = "r4"
R4CM = "r4cm"
R4A = "r4a"
R4AC = "r4ac"
D01 = "d01"
R1350 = "r1350"
R2100 = "r2100"
R2350 = "r2350"
RM2100 = "rm2100"
R3600 = "r3600"
RM1800 = "r1800"
Expand Down
12 changes: 12 additions & 0 deletions custom_components/miwifi/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,21 @@

UNSUPPORTED: Final = {
"new_status": [
Model.R1D,
Model.R2D,
Model.R1CM,
Model.R1CL,
Model.R3P,
Model.R3D,
Model.R3L,
Model.R3A,
Model.R3,
Model.R3G,
Model.R4,
Model.R4A,
Model.R4AC,
Model.R4C,
Model.R4CM,
Model.D01,
]
}
Expand Down

0 comments on commit fc0af14

Please sign in to comment.