Shelly.lock: is possible?

Hello everyone, I implemented in HA using ESPhome and an esp8266 Node MCU board, a binary sensor capable of providing the status of the home alarm system, otherwise completely separate from HA.
The aim was to create an automation that used the status of this sensor “binary_sensor.stato alarm” to prevent, with the alarm armed, the movement of the shutters (cover), mounted on the outside of the windows, on which are installed protection devices capable of triggering the alarm.
I specify that each shutter is controlled with “Shelly Plus 2PM”.
However, I was unable to find a way to solve the problem. I found indications regarding the use of a “shelly.lock” service, but it does not seem to exist.
Is it possible to imagine that this functionality can be activated in the near future?
Is there anyone among you who has faced and solved this question?
I attach the code that returns the alarm status:

esphome:
  name: stato-allarme
  friendly_name: stato-allarme
  platform: ESP8266
  board: d1_mini  

logger:

api:
  encryption:
    key: "##########################################"

ota:
  password: "####################################"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true
  manual_ip:
    static_ip: 192.168.yyy.xxx
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  ap:
    ssid: "Stato-Allarme Fallback Hotspot"
    password: "òòòòòòòòòòòòòòòòòòò"

captive_portal:

binary_sensor:
  - platform: gpio
    name: "Stato Allarme"
    pin: 
      number: D1
      inverted: true
      mode:
        input: true
        pullup: true
    device_class: safety

You are using the Shelly with switch on the SW inputs and you want to disable/enable them?

So you have to change the configuration of the Shelly with HA, which would also be theoretically possible. E.g. Mode detached SW Input, but this is not possible in cover mode

Hi, thanks, yes I also use the SW commands, but for me it is enough to disable the features on HA. Unfortunately the mode is “cover”.

Please Test it with Spook