Automatically create entities when a new Person is created

Hi,

for my custom presence detection logic, i create an input_select entity for each person. Is there a way to automate creation of this entity whenever I create a new Person through the ui?

Or should this be done as a script?

eg. I create a Person tom. I want HA to automatically create an input_select.tom entity, with 4 possible states.