Meraki
Use your Meraki AP as device tracker. Note that Meraki will see all devices, not only connected to the network.
Prerequisites
- Go to Network-wide/General page, and find the Location and scanning section.
- Make sure analytics and Scanning API are both enabled.
- Make note of the Validator string, which will be used in the
device_tracker
configuration. - Click Add a Post URL:
- Set the Post URL to
https://YOUR_HOSTNAME/api/meraki
- Set the Secret to a randomly generated string, and make note of it for the
device_tracker
configuration. - Make sure the API Version is set to
2.0
. - Hit Save in the bottom right of the page.
- Set the Post URL to
Configuration
After you configure access to the Meraki CMX API, add the following to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file.
在更改了configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。
# Example configuration.yaml entry
device_tracker:
- platform: meraki
secret: your_secret
validator: meraki_validator