mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-26 02:36:29 +00:00
Add manufacturer filter support to zeroconf (#877)
This commit is contained in:
parent
693797f3c2
commit
9078f380c9
@ -130,13 +130,14 @@ Zeroconf is a list so you can specify multiple types to match on.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Certain zeroconf types are very generic (i.e., `_printer._tcp.local.`, `_axis-video._tcp.local.` or `_http._tcp.local`). In such cases you should include a name or MAC address filter:
|
Certain zeroconf types are very generic (i.e., `_printer._tcp.local.`, `_axis-video._tcp.local.` or `_http._tcp.local`). In such cases you should include a Name (`name`), MAC address (`macaddress`), or Manufacturer (`manufacturer`) filter:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"zeroconf": [
|
"zeroconf": [
|
||||||
{"type":"_axis-video._tcp.local.","macaddress":"00408C*"},
|
{"type":"_axis-video._tcp.local.","macaddress":"00408C*"},
|
||||||
{"type":"_axis-video._tcp.local.","name":"Example*"},
|
{"type":"_axis-video._tcp.local.","name":"example*"},
|
||||||
|
{"type":"_airplay._tcp.local.","manufacturer":"samsung*"},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user