Opening a Nuki 3 Pro from Home Assistant

I would like to open my Nuki Pro 3 from Home Assistant using a REST call (which works fine via curl). To avoid duplicating content, I asked the general question in the HA forum at Cannot convert a curl call to a RESTful command - Configuration - Home Assistant Community.

Has anyone implemented the /smartlock/{id}/action/unlock call in HA?

It is solved: Cannot convert a curl call to a RESTful command - #4 by tom_l - Configuration - Home Assistant Community

TL;DR: the REST command must be declared in config.yaml and not in the automation as I was trying to do