How to change device area property from action?

I want to create an automation that determines the phone’s position in the flat based on the signal level of beacons. I’ve encountered a problem: I don’t know how to change the area parameter in a mobile_app device type. Could you please help me find answers to the following questions:

  1. Which parameter in a mobile_app device type contains the area, suggested_area or area_id?
  2. What method changes this parameter? The documentation at Device registry | Home Assistant Developer Docs only mentions methods for creating and deleting.
  3. Do I understand correctly that this needs to be done through a service like python_script, or is there something like a device_registry.update service?

Changed to development thread. Need help =(

Generally in HA you can’t change the area except manually through the user interface. However I believe Spook has a service to do this, if you’re open to using that.

1 Like

Thank you!