Closed hawksj closed 3 months ago
Ah, I forgot that this branch was forked from my master which was already several commits ahead of the original repo... my bad.
It's up to codeowners whether you want to merge all changes or I can re-create the PR with only the new device attribute changes.
This means this PR is a duplicate of #38 and #39.
I'm not comfortable merging this after messing up my branches. I will close this PR and sync my fork once #44 is merged and replicate the changes.
Appends a "connected_to" attribute to the list of attributes for the device_tracker entity
The format of info-async.php is such that each connected device is listed beneath the MAC address of the AP is it connected to. We can simply return this as we do with other attributes. This can then be used in a markdown card with a configuration such as:
which gives you a result such as:![image](https://github.com/hawksj/hass-amplifi/assets/58028821/4bdba392-31dc-4674-90ed-1db2d55cdbf8)
This is already merged in my fork and operating in my HA instance:![image](https://github.com/puttyman/hass-amplifi/assets/58028821/9c361393-8171-4cbc-a21a-232b5af2b4ac)
This provides a solution #29 by triggering an automation based on the attributes of a device_tracker identity updating to the MAC address of the mesh point