zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Cannot add Sonoff ZBDongle-E

Open StimpyMGS opened this issue 2 years ago • 6 comments

What happened?

I've bought a Sonoff ZBDongle-E but since can't get Z2M to startup. It was working with a zstack adapter. I have reset the configuration to default and the following lines to the configuration:

serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240217100851-if00
  adapter: ember

I can't save this configuration because of the following error: Failed to save add-on configuration, does not match regular expression ^zstack|deconz|zigate$. Got {'data_path': '/config/zigbee2mqtt', 'external_converters': [], 'devices': 'devices.yaml', 'groups': 'groups.yaml', 'homeassistant': True, 'permit_join': False, 'mqtt': {'base_topic': 'zigbee2mqtt'}, 'serial': {'port': '/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240217100851-if00', 'adapter': 'ember'},

The error states that it expects zstack|deconz|zigate. Ember is not part of this list. I've tried the same with z2m edge, but that results in the same error. I also tried ezsp instead of ember but that results in the same error. because ezsp is deprecated according to the documentation.

What did you expect to happen?

I expected that, with adding "adapter: ember" it would succesfully start.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.18.1-1

Adapter firmware version

ncp-uart-hw-v7.4.4.0-zbdonglee-115200.gbl

Adapter

Sonoff ZBDongle-E

Setup

Proxmox, HAOS VM, USB device passthrough. Device is recognized by HA and shows up i the hardware list.

Debug log

debug log not applicable because z2m does not start

StimpyMGS avatar Oct 19 '24 09:10 StimpyMGS

Hi, try this configuration.yaml

homeassistant: false permit_join: true mqtt: base_topic: zigbee2mqtt server: mqtt://localhost:1883 serial: port: /dev/ttyACM0 baudrate: 115200 adapter: ember rtscts: false frontend: port: 8081 advanced: homeassistant_legacy_entity_attributes: false legacy_api: false legacy_availability_payload: false device_options: legacy: false

clrmsc avatar Oct 19 '24 13:10 clrmsc

1.18.1 is an ancient version. It was released in 2021 https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.18.1. Current version of zigbee2mqtt is 1.40.2

clockbrain avatar Oct 20 '24 05:10 clockbrain

I agree with @clockbrain that version is probably older than the dongle itself (which won't be good).

From your description I also get the feeling you are trying to edit the config from the web-ui and that probably would not be the best thing to do either (it is a small config file, so using vi or some command line text editor should be fine and bypass any web layer issues).

camlin avatar Oct 20 '24 16:10 camlin

What clockbrain said; the version you are using is much too old, it pre-dates the addition of the driver for the Dongle-E, so the configuration doesn't know about ember or ezsp, hence the failure when saving. You will have to update to latest version first: https://github.com/Koenkk/zigbee2mqtt/releases

Nerivec avatar Oct 20 '24 21:10 Nerivec

Sounds like you're still on the ancient repo from Daniel Welch (https://github.com/danielwelch/hassio-zigbee2mqtt) that many of us used back in the day before the official Add-on came.

MathijsG avatar Oct 22 '24 08:10 MathijsG

face palm yes that was it! I added this repo a million years ago when I started with HA. I never would've considered this because "I was on the latest version of Z2M" or at least I thought I was..

StimpyMGS avatar Oct 22 '24 08:10 StimpyMGS