New device shelly1pm with product "Shelly plus 1Pm" but no bucket auto-create

hello i’m testing a device shelly1pm , i 've create a new device (as user: admin) and i 've select product “shelly 1pm” . i’ve enable mqtt on shelly . ok it 's ok , shelly1pm plus go online on thinger . but when i select device to show data there are many many error of missed bucket (show jpg upload). why it don’t have create a new buckets when i’ve select new device (with product already done shelly1pm plus).

best regards
Dante

I saw that although shelly1pmplus is seen as an online device on thinger.io . it does not receive or send anything on mqtt. the screenshot you show in the thinger.io documentation is very different from mine that I am attaching . Thank you

data that i receive from my shelly 1pm plus ( example when i change relè ):

“msg obj :{“topic”:“shellies/shelly1pmlab1/status/switch:0”,“payload”:{“aenergy”:{“by_minute”:[0,0,0],“minute_ts”:1687961099,“total”:0},“apower”:0,“current”:0,“id”:0,“output”:false,“source”:“WS_in”,“temperature”:{“tC”:56.6,“tF”:133.9},“voltage”:231.8},“qos”:1,“retain”:false,”_msgid":“1f54f9d19d9f2fdb”}"

i’ve see that if i change mqtt prefix from shelly1pmlab1 to shellies/shelly1pmlab1 , topic change. but data are
completely different from what is auto set on plugin product , for example product set: shellies/{{device}}/relay/0 but when i change relè on shelly1pmplus change output":false , on topic shellies/shelly1pmlab1/status/switch:0

i think that there is a new protocol for device plus . i’ve see on web that there is gen1 protocol API Reference but new device “Plus” with esp32 inside use now gen2 protocol Welcome! | Shelly Technical Documentation

Hi!

I think I have the latest firmware version, as my configuration is the same. I will check if there is anything new anyway.

This is how my dashboard looks:

Some notes: If you don’t change the client id, the device should be provisioned automatically. I see that you called it “shelly1pmlab1”. Not sure if you have selected the correct device connection (MQTT), and, what the inspector reports on it. Can you show me an screenshot?

Hi @secur_lab, any updates on the integration?

hello , sorry for late. i’ve today re-test shelly 1pm , i have reset all : reset shelly , delete your plug in al reinstal it.

So step1: i 've configure shelly to connect my wifi & cloud , with browser i 've enable mqtt and default tls (


)

Step 2: i’ve creare a new device on thinger , setting mqtt and after rebboot and re-start shelly , it go on line on thinger device

but i 've the same problem , non data input and output , no bucket find

and for debug : this is mqtt data rx from shelly 1pm plus when for example i change status


relè

but i don’t understand .,why topic that is setting on plugin product : shellies/{{device}}/*** but i see that i receive “shellyplus1pm-441793cfe668/status/switch:0”

I believe that the problem is on the data & topic set on mqtt. the new plus devices (use protocol2) compared to the old ones such as shelly25 shelly1pm of type1. for test I’ve connected a shelly25 and it works ! with your plugin shelly1pmplus !!. I attach image

and for debug now topic is right with shelly25

I saw (on your screen capture)that you have the same firmware as mine shelly1pmplus . so there will be somewhere the possibility to enable the mqtt data & topic in “old” mode?
(which it will be deactivated for those who start with a reset device and new firmware)

Same firmware with different payloads!? This is quite strange! Can you post your debug information from the Diagnostic section? Just to see if there is any relevant difference.

{
  "web_id": "230302093842-767992a8-HEAD",
  "deviceInfo": {
    "name": null,
    "id": "shellyplus1pm-441793a50208",
    "mac": "441793A50208",
    "key": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9....",
    "batch": "2133-Yang",
    "fw_sbits": "00",
    "model": "SNSW-001P16EU",
    "gen": 2,
    "fw_id": "20230308-091612/0.14.1-g22a4cb7",
    "ver": "0.14.1",
    "app": "Plus1PM",
    "auth_en": false,
    "auth_domain": null
  },
  "status": {
    "sys": {
      "mac": "441793A50208",
      "restart_required": false,
      "time": "23:01",
      "unixtime": 1688936509,
      "uptime": 1725894,
      "ram_size": 248808,
      "ram_free": 138212,
      "fs_size": 458752,
      "fs_free": 98304,
      "cfg_rev": 11,
      "kvs_rev": 0,
      "schedule_rev": 0,
      "webhook_rev": 0,
      "available_updates": {
        "beta": {
          "version": "1.0.0-beta5"
        }
      }
    },
    "jobs": [],
    "timezones": [],
    "geolocation": {},
    "hooks": [],
    "wifi": {
      "scan": {
        "results": []
      },
      "listapclients": {
        "results": []
      },
      "sta_ip": "192.168.1.138",
      "status": "got ip",
      "ssid": "TP-LINK_6824",
      "rssi": -53
    },
    "ble": {},
    "cloud": {
      "connected": false
    },
    "input:0": {
      "id": 0,
      "state": false
    },
    "mqtt": {
      "connected": true
    },
    "switch:0": {
      "id": 0,
      "source": "MQTT",
      "output": true,
      "apower": 0.9,
      "voltage": 220,
      "current": 0,
      "aenergy": {
        "total": 193.836,
        "by_minute": [
          11.41,
          11.929,
          8.817
        ],
        "minute_ts": 1688936507
      },
      "temperature": {
        "tC": 57,
        "tF": 134.7
      }
    },
    "ws": {
      "connected": false
    },
    "rev": 0
  },
  "config": {
    "sys": {
      "device": {
        "name": null,
        "mac": "441793A50208",
        "fw_id": "20230308-091612/0.14.1-g22a4cb7",
        "discoverable": true,
        "eco_mode": false,
        "addon_type": "sensor"
      },
      "location": {
        "tz": "Europe/Madrid",
        "lat": 40.51606,
        "lon": -3.663
      },
      "debug": {
        "mqtt": {
          "enable": false
        },
        "websocket": {
          "enable": false
        },
        "udp": {
          "addr": null
        }
      },
      "ui_data": {},
      "rpc_udp": {
        "dst_addr": null,
        "listen_port": null
      },
      "sntp": {
        "server": "time.google.com"
      },
      "cfg_rev": 11
    },
    "cloud": {
      "enable": false,
      "server": "iot.shelly.cloud:6012/jrpc"
    },
    "ble": {
      "enable": true,
      "rpc": {
        "enable": true
      },
      "observer": {
        "enable": false
      }
    },
    "mqtt": {
      "enable": true,
      "server": "perf.aws.thinger.io",
      "client_id": "shellyplus1pm-441793a50208",
      "user": "alvarolb",
      "ssl_ca": "ca.pem",
      "topic_prefix": "shellyplus1pm-441793a50208",
      "rpc_ntf": true,
      "status_ntf": true,
      "use_client_cert": false,
      "enable_rpc": true,
      "enable_control": true
    },
    "ws": {
      "enable": false,
      "server": null,
      "ssl_ca": "ca.pem"
    },
    "input:0": {
      "id": 0,
      "name": null,
      "type": "switch",
      "invert": false,
      "factory_reset": true
    },
    "switch:0": {
      "id": 0,
      "name": null,
      "in_mode": "follow",
      "initial_state": "match_input",
      "auto_on": false,
      "auto_on_delay": 60,
      "auto_off": false,
      "auto_off_delay": 60,
      "power_limit": 4480,
      "voltage_limit": 280,
      "autorecover_voltage_errors": false,
      "current_limit": 16
    },
    "wifi": {
      "ap": {
        "ssid": "ShellyPlus1PM-441793A50208",
        "is_open": true,
        "enable": true,
        "range_extender": {
          "enable": false
        }
      },
      "sta": {
        "ssid": "TP-LINK_6824",
        "is_open": false,
        "enable": true,
        "ipv4mode": "dhcp",
        "ip": null,
        "netmask": null,
        "gw": null,
        "nameserver": null
      },
      "sta1": {
        "ssid": null,
        "is_open": true,
        "enable": false,
        "ipv4mode": "dhcp",
        "ip": null,
        "netmask": null,
        "gw": null,
        "nameserver": null
      },
      "roam": {
        "rssi_thr": -80,
        "interval": 60
      }
    }
  },
  "schedule": {
    "jobs": [],
    "rev": 0
  },
  "hook": {
    "hooks": [],
    "rev": 0
  }
}

hello ok i 've find my diagnostic data shelly plus 1pm

  "web_id": "230302093842-767992a8-HEAD",
  "deviceInfo": {
    "name": null,
    "id": "shellyplus1pm-441793cfe668",
    "mac": "441793CFE668",
    "key": "eyJhbGciOiJFUzM4N.................",
    "batch": "2148-Broadwell!",
    "fw_sbits": "00",
    "model": "SNSW-001P16EU",
    "gen": 2,
    "fw_id": "20230308-091612/0.14.1-g22a4cb7",
    "ver": "0.14.1",
    "app": "Plus1PM",
    "auth_en": false,
    "auth_domain": null
  },
  "status": {
    "sys": {
      "mac": "441793CFE668",
      "restart_required": false,
      "time": "10:56",
      "unixtime": 1689238608,
      "uptime": 271,
      "ram_size": 234468,
      "ram_free": 155704,
      "fs_size": 458752,
      "fs_free": 98304,
      "cfg_rev": 11,
      "kvs_rev": 0,
      "schedule_rev": 0,
      "webhook_rev": 0,
      "available_updates": {
        "beta": {
          "version": "1.0.0-beta5"
        }
      }
    },
    "jobs": [],
    "timezones": [],
    "geolocation": {},
    "hooks": [],
    "wifi": {
      "scan": {
        "results": []
      },
      "listapclients": {
        "results": []
      },
      "sta_ip": "192.168.8.111",
      "status": "got ip",
      "ssid": "HUAWEI-9239",
      "rssi": -46
    },
    "ble": {},
    "cloud": {
      "connected": true
    },
    "input:0": {
      "id": 0,
      "state": false
    },
    "mqtt": {
      "connected": true
    },
    "switch:0": {
      "id": 0,
      "source": "init",
      "output": false,
      "apower": 0,
      "voltage": 233.9,
      "current": 0,
      "aenergy": {
        "total": 0,
        "by_minute": [
          0,
          0,
          0
        ],
        "minute_ts": 1689238606
      },
      "temperature": {
        "tC": 42.6,
        "tF": 108.7
      }
    },
    "ws": {
      "connected": false
    },
    "rev": 0
  },
  "config": {
    "sys": {
      "device": {
        "name": null,
        "mac": "441793CFE668",
        "fw_id": "20230308-091612/0.14.1-g22a4cb7",
        "discoverable": true,
        "eco_mode": false,
        "addon_type": null
      },
      "location": {
        "tz": "Europe/Zurich",
        "lat": 47.36197,
        "lon": 8.50949
      },
      "debug": {
        "mqtt": {
          "enable": false
        },
        "websocket": {
          "enable": false
        },
        "udp": {
          "addr": null
        }
      },
      "ui_data": {},
      "rpc_udp": {
        "dst_addr": null,
        "listen_port": null
      },
      "sntp": {
        "server": "time.google.com"
      },
      "cfg_rev": 11
    },
    "cloud": {
      "enable": true,
      "server": "shelly-18-eu.shelly.cloud:6022/jrpc"
    },
    "ble": {
      "enable": false,
      "rpc": {
        "enable": true
      },
      "observer": {
        "enable": false
      }
    },
    "mqtt": {
      "enable": true,
      "server": "securlift.aws.thinger.io",
      "client_id": "shellyplus1pm-441793cfe668",
      "user": "securlift",
      "ssl_ca": "ca.pem",
      "topic_prefix": "shellyplus1pm-441793cfe668",
      "rpc_ntf": true,
      "status_ntf": true,
      "use_client_cert": false,
      "enable_rpc": true,
      "enable_control": true
    },
    "ws": {
      "enable": false,
      "server": null,
      "ssl_ca": "ca.pem"
    },
    "input:0": {
      "id": 0,
      "name": null,
      "type": "switch",
      "invert": false,
      "factory_reset": true
    },
    "switch:0": {
      "id": 0,
      "name": null,
      "in_mode": "follow",
      "initial_state": "match_input",
      "auto_on": false,
      "auto_on_delay": 60,
      "auto_off": false,
      "auto_off_delay": 60,
      "power_limit": 4480,
      "voltage_limit": 280,
      "autorecover_voltage_errors": false,
      "current_limit": 16
    },
    "wifi": {
      "ap": {
        "ssid": "ShellyPlus1PM-441793CFE668",
        "is_open": true,
        "enable": false,
        "range_extender": {
          "enable": false
        }
      },
      "sta": {
        "ssid": "HUAWEI-9239",
        "is_open": false,
        "enable": true,
        "ipv4mode": "dhcp",
        "ip": null,
        "netmask": null,
        "gw": null,
        "nameserver": null
      },
      "sta1": {
        "ssid": null,
        "is_open": true,
        "enable": false,
        "ipv4mode": "dhcp",
        "ip": null,
        "netmask": null,
        "gw": null,
        "nameserver": null
      },
      "roam": {
        "rssi_thr": -80,
        "interval": 60
      }
    }
  },
  "schedule": {
    "jobs": [],
    "rev": 0
  },
  "hook": {
    "hooks": [],
    "rev": 0
  }
}
type or paste code here

this is new printscreen of my: payload and topic

Hi @secur_lab
We’ve updated the plugin to version 2.0.0 so it accounts for the Gen2 protocol of Shelly.
Before upgrading the plugin, and if you have devices that are still running the Gen1 protocol, we recommend that you clone the current product changing the id and name, so as not to loose compatibility. See attached images:
screen.20230713-122446
screen.20230713-122530

Then, you will be able to remove the plugin and install the new version 2.0.0.
The issue you might find is, if you connect new Shelly devices, the autoprovision rules are the same for both versions, you might remove the rule from version 1.0.0 and asume that all new devices are running the new protocol, and if not you may change the product associated manually in the device.

The new version should have the product configuration as follows:

Let us know if this solves your issue.

Regards :slight_smile: