I don’t use Home Assistant but I’ve heard a shell_command, service, or REST API method depending on what I’m reading.