Create sensor via zha event

Is there a way to create a sensor based on a zha_event?

nvm: fixed this with an automation and input text helper.