zigbee2mqtt
zigbee2mqtt copied to clipboard
SNZB-06P Failed to configure on Z2M 1.37.0
What happened?
Trying to configure the SNZB-06P presence sensor on Zigbee2MQTT version 1.37.0 fails with the following error -
attempt 2 (TypeError: func is not a function at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:160:27) at Configure.configure (/app/lib/extension/configure.ts:121:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17))
Reverting to Z2M 1.35.1 seems to solve the issue (haven't tried 1.36.0)
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
Try to pair the device with Z2M
Zigbee2MQTT version
1.37.0
Adapter firmware version
1.0.6
Adapter
SNZB-06P
Setup
Dockerized Z2M on a raspberry pi
Debug log
No response
Hi, new to zigbee. I have just one coordinator sonoff dongle-e, recently flashed (>7.4) and have the same problem than you.
Update : just tried 1.36.1 and there is no bug.
Could it be that you are using an external converter for this device? (check your configuration.yaml
)
Sorry I am very new to zigbee & zigbee2mqtt. I dont know what is external converter, my configuration is very basic :
homeassistant: false frontend: port: 8081 permit_join: false mqtt: base_topic: zigbee2mqtt server: mqtt://xxx serial: adapter: ember port: >- /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240217165038-if00
I don't think I'm using an external converted either. This is my configuration.yaml -
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://192.168.XXX:XXX
serial:
port: /dev/ttyUSB0
advanced:
network_key:
- ...
homeassistant_legacy_entity_attributes: false
legacy_api: false
log_level: debug
device_options:
legacy: false
devices:
'0x00158d0007005864':
friendly_name: contact_sensor_1
'0x00158d000775300c':
friendly_name: motion_sensor
occupancy_timeout: 90
no_occupancy_since: []
'0x04cf8cdf3c7c6b7a':
friendly_name: single_switch
'0x0ceff6fffe3b0481':
friendly_name: presence_sensor_1
frontend:
port: 8011
availability: false
where device 0x0ceff6fffe3b0481
is the problematic one
Can you provide the command through which you run the Docker container?
I am also seeing this. No external converters, pretty vanilla install via the HA addon v1.37.1-1. Coordinator is UZG-01.
I am also seeing this. No external converters, pretty vanilla install via the HA addon v1.37.1-1. Coordinator is SNZB-06P
Same here, this can be recreated on a fresh install. SNZB-06P firmware version 1.0.6.
I am using the new ember adapter. Zigbee2MQTT version 1.37.1.
[2024-05-29 14:56:17] error: z2m: Failed to configure 'Living Room Occupancy', attempt 3 (TypeError: func is not a function at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/index.ts:172:27) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:121:13) at Configure.onMQTTMessage (/opt/zigbee2mqtt/lib/extension/configure.ts:55:21) at EventEmitter.wrappedCallback (/opt/zigbee2mqtt/lib/eventBus.ts:174:17)) [2024-05-29 14:56:17] debug: z2m: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure', payload '{"data":{"id":"Living Room Occupancy"},"error":"Failed to configure (func is not a function)","status":"error","transaction":"ee5ye-3"}'
This bug will be fixed in the next release (Saturday)