If you wondered why Apple was so slow to move into the HomeKit arena, just remember two words: ultra wideband.
Stephen Warwick on what the future brings:
Apple is exploring ways to revolutionize HomeKit by creating power outlets that would allow users to control individual socks in their homes… HomeKit could decipher where exactly in a building a user might be, so as to activate certain appliances or systems on a room-by-room basis (e.g. You could start your kettle boiling just by walking into the kitchen).
All because of ultra wideband that is available in iPhone 11 Pro models now.