Switch for Shelly PLUS 1 PM button

Hi.

I have a switch to see if the button in Shelly 1 is detached or edge.
I can use this switch in HA, to set the button as detached or edge.
Works with Shelly 1 e Shelly 1 PM.

- platform: rest
  name: switch_luz_escritorio_detached
  resource: http://192.168.1.201/settings/relay/0
  body_on: 'btn_type=detached'
  body_off: 'btn_type=edge'
  is_on_template: '{{ value_json.btn_type == "detached" }}'

I use this switch (turn on or turn off the switch) in some automations to detach or edge the button.

I need a switch that works the same way for Shelly PLUS 1 PM.
Can anyone help me?