Change entities - imported switch to password protected voice activated door

Hi,

A potentially easy problem, but i reallt can’t figure out the solution…

My integrations:

From IHC integration i’m importing a switch. If that switch is activated (on/off shortly) my garage door opens.

Problem:
I would like to activate the imported switch via Google assistant, BUT before GA activates the switch is has to require a password (fx. 4 digits) - Doing the same thing again closes the garagedoor. There is no sensor or anything present.

I’ve tried several thing like “locks” etc. but it won’t work.
Any good suggestions?

BR Lasse