You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+84-9
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,9 @@
2
2
3
3
Home Assistant custom component for control [Huawei WiFi Mesh 3](https://consumer.huawei.com/en/routers/wifi-mesh3/) routers over LAN.
4
4
5
-
**0.7.3**
5
+
**0.7.4**
6
6
7
+
- tagging connected devices
7
8
- sensors for the number of connected devices (total and for each individual router)
8
9
- enable/disable NFC on each router separately
9
10
- enable/disable TWT (reduce power consumption of Wi-Fi 6 devices in sleep mode)
@@ -38,6 +39,7 @@ Each tracked device exposes the following attributes:
38
39
|`rssi`| Signal strength for wireless connections | Yes |
39
40
|`is_guest`| Is the device connected to the guest network | Yes |
40
41
|`is_hilink`| Is the device connected via HiLink (usually other routers) | Yes |
42
+
|`tags`| List of [tags](#device-tags) that marked the device | No |
41
43
|`friendly_name`| Device name provided by the router | No |
42
44
43
45
Tracked device names, including routers, can be changed in [your mesh control interface](http://192.168.3.1/html/index.html#/devicecontrol), after which the component will update them in Home Assistant
@@ -71,11 +73,84 @@ _Note: when additional routers are disconnected from the network, their personal
|`guest_clients`| Number of devices connected to the guest network |
79
+
|`hilink_clients`| Number of devices connected via HiLink |
80
+
|`wireless_clients`| Number of devices connected wirelessly |
81
+
|`lan_clients`| Number of devices connected by cable |
82
+
|`wifi_2_4_clients`| Number of devices connected to Wi-Fi 2.4 GHz |
83
+
|`wifi_5_clients`| Number of devices connected to Wi-Fi 5 GHz |
84
+
|`tagged_<tag_name>_clients`| Number of connected devices with a specific [tag](#device-tags)`<tag_name>`|
85
+
86
+
## Customization
87
+
88
+
### Device tags
89
+
90
+
The component allows you to attach one or more tags to each client device in order to be able to use in automation the number of devices marked with a tag, connected to a specific router, or to the entire mesh network.
91
+
92
+
The component will attempt to load the device tag-to-MAC mapping from the file located at `<home assistant config folder>/.storage/huawei_mesh_<long_config_id>_tags`. If the file does not exist, then the component will create it with a usage example:
93
+
94
+
```
95
+
{
96
+
"version": 1,
97
+
"minor_version": 1,
98
+
"key": "huawei_mesh_<long_config_id>_tags",
99
+
"data": {
100
+
"homeowners": [
101
+
"place_mac_addresses_here"
102
+
],
103
+
"visitors": [
104
+
"place_mac_addresses_here"
105
+
]
106
+
}
107
+
}
108
+
```
109
+
110
+
_Note: unfortunately, editing the list of tags and devices associated with them is currently available only through editing this file._
111
+
112
+
Each tag can have multiple devices associated with it. Each device can be associated with multiple tags.
0 commit comments