Person Card Room detection

Hello,

i create the Attribute “last_room” for the person Entität. How can i set the Attribute? For the detection i use the Addon Bermuda.
Withstates('sensor.ben_iphone_ble_area') i get the room/area. I want to store this in the Attribute “last_room”. Later i can use this in person.ben.last_room in person card.

configuration.yaml:

homeassistant:
  customize_domain:
    person:
      last_room: ""

I Hope someone can help me… thx

I do something like this using the HACS integration Variables+History