When controlling a HomeKit device from the Apple Home app, there is no information exposed in Home Assistant related to the Apple user/account who made the changes.
In HAP-python
, the HAPServerHandler
class exposed client_uuid
that could be used for this (pyhap/hap_handler.py#L155)
For now, I’d like the client_uuid
to be added to the homekit_state_change
event.
Later on, maybe, a new field could be added to the user profile to associate the HomeKit client_uuid
with a Home Assistant user profile. Or the association could be done through yaml
(associate the client_uuid
with a person
entity).
There is also a discussion on this topic here.
Thank you in advance!