Google SDK - Pass device PIN in a script

Hi everyone! I have recently purchased a set of Deco x50 access points that I have partially integrated into HA. Although there is a HACS integration for it, the turning on/off of the guest network does not seem to work.
It works thru Google Assistant however, and I am able to turn it on by sending a simple GA command “turn on the guest network”.

Turning it off however… is where I am stuck. When trying directly thru GA on my phone or the Google Mini, I am asked for a PIN. Is there a way to pass the PIN as a response, inside the script, or maybe as a sequence? I am very new to scripts and unsure how to go about it…

Here is what I have so far, that does not seem to work at all:

alias: ROUTER - Disable Guest Network
sequence:
  - action: google_assistant_sdk.send_text_command
    metadata: {}
    data:
      command: disable the guest network. The pin is 0000
description: ""
icon: mdi:wifi-off

Thanks in advance for your help!

Nobody have an idea of a way to send those stupid pins to Google ? :frowning: or how provide an answer as a second prompt after the response of the assistant through the script, maybe a sequence ?

I do receive a response from the script, I just don’t know how to pass the answer for it…

There must be a way to bypass those persky Google security checks… I know it’s not very safe, but this pin is literally useless in that case (absolutely no security risk in turning the guest wifi off, if anything it’s turning it on that’s a risk!)

Ok, so I feel extremely dumb because it was under my nose the whole time in the doc for Google SDK, but until I clicked the YAML version of my script it didn’t really click in my mind. It’s as simple as chaining the commands inside a SINGLE action instead of 2 separate ones…

Using the visual editor:

Using YAML:

alias: ROUTER - Turn OFF guest network
sequence:
  - action: google_assistant_sdk.send_text_command
    metadata: {}
    data:
      command:
        - Disable the guest network
        - "0000"
      media_player: media_player.living_room_speaker
description: Send a Google Assistant command to turn off the guest network and chain it with the required PIN.
icon: mdi:wifi-off