Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.15k stars 1.68k forks source link

Can't create external definition #21164

Closed flybrys closed 2 months ago

flybrys commented 9 months ago

What happened?

I am trying to make an external converter to have another stab at fixing https://github.com/Koenkk/zigbee2mqtt/issues/17108, and following the guide, I get this error when clicking on Create External Definition:

Request 'zigbee2mqtt/bridge/request/device/generate_external_definition' failed with error: 'extenderElectricityMeter can accept only one endpoint'

What did you expect to happen?

I expected an external definition to be generated in line with the "support new devices" guide.

How to reproduce it (minimal and precise)

Have a Makegood Dual GPO like (This) Realise power monitoring isn't defined, so attempt to create an external converter Press the "Create External Definition" button in the dev console

Zigbee2MQTT version

1.35.2

Adapter firmware version

20220219

Adapter

Sonoff Zigbee 3.0 USB Dongle Plus

Setup

Home Assistant Add-on, HAOS running in VM

Debug log

Can't work out how to download this from the HA addon, however here is a copy of the relevant section from the web interface:

Debug 2024-02-02 22:43:01Received MQTT message on 'zigbee2mqtt/bridge/request/device/generate_external_definition' with data '{"id":"0x000d6ffffe9d363c","transaction":"8ypsv-6"}' Error 2024-02-02 22:43:01Request 'zigbee2mqtt/bridge/request/device/generate_external_definition' failed with error: 'extenderElectricityMeter can accept only one endpoint' Debug 2024-02-02 22:43:01Error: extenderElectricityMeter can accept only one endpoint at Array.extenderElectricityMeter (/app/node_modules/zigbee-herdsman-converters/src/lib/generateDefinition.ts:245:15) at addGenerators (/app/node_modules/zigbee-herdsman-converters/src/lib/generateDefinition.ts:128:51) at generateDefinition (/app/node_modules/zigbee-herdsman-converters/src/lib/generateDefinition.ts:132:15) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.generateExternalDefinitionSource (/app/node_modules/zigbee-herdsman-converters/src/index.ts:327:13) at Bridge.deviceGenerateExternalDefinition (/app/lib/extension/bridge.ts:462:24) at Bridge.onMQTTMessage (/app/lib/extension/bridge.ts:128:34) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17) Info 2024-02-02 22:43:01MQTT publish: topic 'zigbee2mqtt/bridge/response/device/generate_external_definition', payload '{"data":{},"error":"extenderElectricityMeter can accept only one endpoint","status":"error","transaction":"8ypsv-6"}'

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days