device_tracker MQTT Attributes

This commit is contained in:
jokob-sk
2025-02-22 07:51:50 +11:00
parent 458577e071
commit b71037a129
2 changed files with 2 additions and 1 deletions

View File

@@ -476,7 +476,8 @@ def mqtt_start(db):
"sync_node": device["devSyncHubNode"],
"group": device["devGroup"],
"location": device["devLocation"],
"parent_mac": device["devParentMAC"]
"network_parent_mac": device["devParentMAC"],
"network_parent_name": next((dev["devName"] for dev in devices if dev["devMAC"] == device["devParentMAC"]), "")
}
# bulk update device sensors in home assistant