New Shelly 1PMPlus

Hello.
I would like to set up the new Shelly 1PM Plus without using the integration. I have looked through the documentation on Shelly’s website but can’t figure out what to do. Can anyone help me “convert” the code that was used for the 1PM on the new 1PM Plus?
This is the 1PM code for a switch:

switch:
  - platform: mqtt
    name: "Interruttore"
    state_topic: "shellies/NOME_SHELLY/relay/0"
    command_topic: "shellies/NOME_SHELLY/relay/0/command"
    availability_topic: "shellies/NOME_SHELLY/online"
    qos: 1
    value_template: "{% if value == 'on' %} on {% else %} off {% endif %}" 
    payload_on: "on"
    payload_off: "off"
    payload_available: "true"
    payload_not_available: "false"
    optimistic: false
    retain: false

and this for absorption:

sensor:
  - platform: mqtt
    name: "Shelly 1PM Assorbimento"
    state_topic: "shellies/NOME_SHELLY/relay/0/power"
    availability_topic: "shellies/NOME_SHELLY/online"
    payload_available: "true"
    payload_not_available: "false"
    unit_of_measurement: "Watt"

I also tried to contact Shelly but they just provided me with the links to the documentation which, however, as I have already said, cannot help me:
https://shelly-api-docs.shelly.cloud/gen2/Components/SystemComponents/Mqtt#mqttgetconfig

https://shelly-api-docs.shelly.cloud/gen2/Overview/RPCChannels#mqtt

1 Like