### Link
https://www.shelly.com/products/shelly-1pm-mini-gen4
### Database ent…ry
{"id":230,"type":"Router","ieeeAddr":"0x7c2c67fffe7b8fd4","nwkAddr":56139,"manufId":5264,"manufName":"Shelly","powerSource":"Mains (single phase)","modelId":"Mini1PM","epList":[1,239,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,3,4,5,6,2820,1794],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"Mini1PM","manufacturerName":"Shelly","powerSource":0,"zclVersion":8}},"genOnOff":{"attributes":{"onOff":0}},"haElectricalMeasurement":{"attributes":{"acPowerDivisor":100,"acPowerMultiplier":1,"acCurrentDivisor":100,"acCurrentMultiplier":1,"acVoltageDivisor":100,"acVoltageMultiplier":1,"acFrequency":5002,"activePower":0,"rmsCurrent":0,"rmsVoltage":22514,"acFrequencyMultiplier":1,"acFrequencyDivisor":100}},"seMetering":{"attributes":{"divisor":1000000,"multiplier":1,"currentSummReceived":0,"status":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0031d80810","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0031d80810","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0031d80810","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1},{"cluster":2820,"attrId":1291,"minRepIntval":10,"maxRepIntval":65000,"repChange":500},{"cluster":2820,"attrId":1288,"minRepIntval":10,"maxRepIntval":65000,"repChange":5},{"cluster":2820,"attrId":1285,"minRepIntval":10,"maxRepIntval":65000,"repChange":500}],"meta":{}},"239":{"profId":49153,"epId":239,"devId":8193,"inClusterList":[64513,64514],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"zclVersion":8,"interviewCompleted":true,"meta":{},"lastSeen":1742826019462}
### Zigbee2MQTT version
2.1.3
### Comments
I followed the Guide at the Add new device page and created the automatic external converter
### External definition
```shell
const m = require('zigbee-herdsman-converters/lib/modernExtend');
const definition = {
zigbeeModel: ['Mini1PM'],
model: 'Mini1PM',
vendor: 'Shelly',
description: 'Automatically generated definition',
extend: [m.deviceEndpoints({"endpoints":{"1":1,"239":239}}), m.onOff({"powerOnBehavior":false}), m.electricityMeter()],
meta: {"multiEndpoint":true},
};
module.exports = definition;
```
### What does/doesn't work with the external definition?

These are the states, I briefly saw something like switch_mode: toggle but i cant seem to reproduce it

This are the Exposes, there could be much more, the device is able to switch to detached mode, has an input etc.etc.
The device reports very frequently, like every second, I have a few and they are pretty much spamming the network