Converter for TS0203 - DOOR SENSOR
Hello Guys,
Actually I am having problems to add in my Z2M this sensor door (TS0203)....
I follow some steps in website of zigbee2mqtt and "how to add new devices" ... and both not works for me....
So I tried create a file called "door.js" and put this informations above:
const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const tz = require('zigbee-herdsman-converters/converters/toZigbee'); const exposes = require('zigbee-herdsman-converters/lib/exposes'); const reporting = require('zigbee-herdsman-converters/lib/reporting'); const extend = require('zigbee-herdsman-converters/lib/extend'); const e = exposes.presets; const ea = exposes.access; const definition = {βββββββ fingerprint: [{βββββββmodelID: 'TS0203', manufacturerName: 'TS0203'}βββββββ], model: 'TS0203', vendor: 'CR Smart Home', description: 'Door sensor', fromZigbee: [fz.ias_contact_alarm_1, fz.battery, fz.ignore_basic_report, fz.ias_contact_alarm_1_report], toZigbee: [], exposes: [e.contact(), e.battery_low(), e.tamper(), e.battery()], }βββββββ; module.exports = definition;
But does not work too.... its funny because I bought 8 sensors of that... and just one works, but its have a signal of exclamation on icon...
Could you help me?
Thanks!
@AlexKay88
@freitas666 Pls. enable debug logging, remove TS0203 device, pair it again and open/close door sensor a few times. We need to see what the device communicates... Which "ieeeAddr" (0x24a477fffexxyyzz) has your device? Enable debug logging as shown at https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html:
advanced:
log_level: debug
If you paste config or logs in a new comment, use "<>" icons to mark code!
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from 'Router Quarto', type 'attributeReport', cluster 'genBinaryValue', data '{"description":"24616/0x00124B00184AD290","inactiveText":"CHILD_RFD","minimumOffTime":0,"presentValue":1,"relinquishDefault":2}' from endpoint 8 with groupID 0
info MQTT publish: topic 'zigbee2mqtt/Router Quarto', payload '{"description":"24616/0x00124B00184AD290","led":false,"linkquality":118,"rssi":1,"type":"CHILD_RFD"}'
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
error Failed to interview '0x00124b00184ad290', device has not successfully been paired
info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290","status":"failed"},"type":"device_interview"}'
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00184ad290"},"type":"pairing"}'
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
@AlexKay88 sorry for me delay.... this information help you?
Thank you.
To mention at first: Your device does not pair successfully. I don't know if such devices can be supported.
error Failed to interview '0x00124b00184ad290', device has not successfully been paired
Did you catch whole pairing from the beginning in debug log? There are no log lines like:
Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join'
Zigbee: allowing new devices to join.
Did you try to open and close door sensor several times? There is only zoneStatus:1 and nothing like zoneStatus:0
debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
It would also help to post data/database.db entry for device 0x00124b00184ad290 (one line starting with {"id":xx,"type":"yy","ieeeAddr":"0x14b457fffe0e490b", ... ... ...)
Thank you for ur reply...
Its strange for example, exactly now i went to collect information for you... and works... but works like others "with a exclamation" and error "Failed to interview
'0x00124b00184ad290', device has not successfully been paired" (?!?!?!?!)
error Failed to interview '0x00124b00184ad290', device has not successfully been paired
info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290","status":"failed"},"type":"device_interview"}'
info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00184ad290"},"type":"pairing"}'
info MQTT publish: topic 'homeassistant/binary_sensor/0x00124b00184ad290/contact/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"door","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 contact","payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
info MQTT publish: topic 'homeassistant/binary_sensor/0x00124b00184ad290/battery_low/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 battery low","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}'
info MQTT publish: topic 'homeassistant/binary_sensor/0x00124b00184ad290/tamper/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 tamper","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_tamper_zigbee2mqtt","value_template":"{{ value_json.tamper }}"}'
info MQTT publish: topic 'homeassistant/sensor/0x00124b00184ad290/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 battery","state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
info MQTT publish: topic 'homeassistant/sensor/0x00124b00184ad290/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 linkquality","state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
debug Received MQTT message on 'homeassistant/binary_sensor/0x00124b00184ad290/contact/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"door","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 contact","payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
debug Received MQTT message on 'homeassistant/binary_sensor/0x00124b00184ad290/battery_low/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 battery low","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}'
debug Received MQTT message on 'homeassistant/sensor/0x00124b00184ad290/battery/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 battery","state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
debug Received MQTT message on 'homeassistant/sensor/0x00124b00184ad290/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00184ad290"],"manufacturer":"CR Smart Home","model":"Door sensor (TS0203)","name":"0x00124b00184ad290","sw_version":"Zigbee2MQTT 1.18.3-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b00184ad290","name":"0x00124b00184ad290 linkquality","state_topic":"zigbee2mqtt/0x00124b00184ad290","unique_id":"0x00124b00184ad290_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
DB LINE:
{"id":14,"type":"EndDevice","ieeeAddr":"0x00124b00184ad290","nwkAddr":26609,"manufId":0,"modelId":"TS0203","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1,1280],"outClusterList":[0,3,1,1280],"clusters":{"genBasic":{"attributes":{"modelId":"TS0203"}}},"binds":[],"configuredReportings":[],"meta":{}}},"interviewCompleted":false,"meta":{},"lastSeen":1622039455486}
You mentioned "works now". What exactly works and what not?
To avoid interview failed and not successfully paired: Have you tried pairing a few centimeters close to your Zigbee Coordinator? If door/window contact has a wake-up button, try pressing it regularly during interview/pairing. Does it help to complete interview and successfully pair?
Before re-pairing: Remove your own external converter for fingerprint: [{βββββββmodelID: 'TS0203', manufacturerName: 'TS0203'}βββββββ], as it does not match your device. Your TS0203 is already included in Z2M.
Hello, when i said " works now" its because the sensor works good and exposes show for z2m BUT I really dont understand why show this "exclamation" any way i will delete the device and paring again (without converter)... And in the same space of coordinator i have a router (curtain zigbee) ... i will try now and send the logs if not have success.
thank and wait :D
Hey friend not works:
info Device '0x00124b00184ad290' joined info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290"},"type":"device_joined"}' info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290","status":"started"},"type":"device_interview"}' info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b00184ad290"},"type":"pairing"}' debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":30}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltage":30}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryPercentageRemaining":120}' from endpoint 1 with groupID 0 debug Device '0x00124b00184ad290' announced itself info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290"},"type":"device_announce"}' info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b00184ad290"},"type":"device_announced"}' debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 debug Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 error Failed to interview '0x00124b00184ad290', device has not successfully been paired info MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290","status":"failed"},"type":"device_interview"}' info MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00184ad290"},"type":"pairing"}'
Exclamation mark is shown, because interview did not complete/device has not successfully been paired. After your last try to re-pair very close to the coordinator I don't know what to do else to successfully pair and get rid of exclamation mark. My experience with Z2M is limited since I use it myself for 2 months only. At least your door sensors report battery and door open/close fine so that it's functionality is usable.
Regarding exclamation mark, maybe someone else can help? Or try to search closed issues for "Failed to interview" or "not successfully been paired".
@AlexKay88 regarding the failed to interview, could you provide the herdsman debug log when pairing the device and get a failed to interview?
See https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.
@Koenkk I will provide the logs from herdsman logs... i had to enable it ...
Give me few minutes...
thank you
@Koenkk
root@matrix:/usr/share/hassio/homeassistant/zigbee2mqtt/log# tail -f 2021-05-27.14-38-35/log.txt | grep 0x00124b00184ad290 debug 2021-05-27 14:39:13: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0 info 2021-05-27 14:39:44: Starting interview of '0x00124b00184ad290' info 2021-05-27 14:39:44: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":" 0x00124b00184ad290","status":"started"},"type":"device_interview"}' info 2021-05-27 14:39:44: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b 00184ad290"},"type":"pairing"}' debug 2021-05-27 14:39:44: Device '0x00124b00184ad290' announced itself info 2021-05-27 14:39:44: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":" 0x00124b00184ad290"},"type":"device_announce"}' info 2021-05-27 14:39:44: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"0x00124b00184ad29 0"},"type":"device_announced"}' debug 2021-05-27 14:39:44: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltag e":30}' from endpoint 1 with groupID 0 debug 2021-05-27 14:39:44: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryPercen tageRemaining":160}' from endpoint 1 with groupID 0 debug 2021-05-27 14:39:44: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryVoltag e":30}' from endpoint 1 with groupID 0 debug 2021-05-27 14:39:44: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'genPowerCfg', data '{"batteryPercen tageRemaining":160}' from endpoint 1 with groupID 0 error 2021-05-27 14:40:05: Failed to interview '0x00124b00184ad290', device has not successfully been paired info 2021-05-27 14:40:05: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b00184ad290","ieee_address":"0x00124b00184ad290","status":"faile d"},"type":"device_interview"}' info 2021-05-27 14:40:06: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0x00124b00184ad290"},"type":"pairing"}' `
Hi @freitas666 , never did it myself up to now, but this does not look like herdsman debug log. You should see something like this:
zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,3,33,8,131,0,0,169] +15ms
zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,4,97,8,0,2,98,26,23] +6ms
zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,4,97,8,0,2,98,26,23] +0ms
zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 4 - 3 - 1 - 8 - [0,2,98,26] - 23 +0ms
@AlexKay88 oh sorry... in "grep" not get this information... just in console.
I will try again.
@AlexKay88 this?
2021-05-28T14:09:19.622Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-05-28T14:09:32.591Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,23,68,129,0,0,3,0,141,33,1,47,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,94]
2021-05-28T14:09:32.592Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,47,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,94]
2021-05-28T14:09:32.592Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,47,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 94
2021-05-28T14:09:32.593Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":47,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.595Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":47}'
2021-05-28T14:09:32.596Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.596Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-05-28T14:09:32.597Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,23,68,129,0,0,3,0,141,33,1,13,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,124,254,23,68,129,0,0,3,0,141,33,1,110,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,31]
2021-05-28T14:09:32.598Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,13,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,124,254,23,68,129,0,0,3,0,141,33,1,110,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,31]
2021-05-28T14:09:32.598Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,13,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 124
2021-05-28T14:09:32.598Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":13,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.600Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":13}'
2021-05-28T14:09:32.601Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.601Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,110,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,31]
2021-05-28T14:09:32.602Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,110,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 31
2021-05-28T14:09:32.603Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":110,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.605Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":110}'
2021-05-28T14:09:32.626Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.627Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-05-28T14:09:32.630Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,23,68,129,0,0,3,0,141,33,1,11,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,122,254,23,68,129,0,0,3,0,141,33,1,10,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,123,254,23,68,129,0,0,3,0,141,33,1,8,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,121,254,23,68,129,0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,112]
2021-05-28T14:09:32.631Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,11,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,122,254,23,68,129,0,0,3,0,141,33,1,10,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,123,254,23,68,129,0,0,3,0,141,33,1,8,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,121,254,23,68,129,0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,112]
2021-05-28T14:09:32.632Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,11,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 122
2021-05-28T14:09:32.633Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":11,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.637Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":11}'
2021-05-28T14:09:32.638Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.640Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,10,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,123,254,23,68,129,0,0,3,0,141,33,1,8,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,121,254,23,68,129,0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,112]
2021-05-28T14:09:32.640Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,10,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 123
2021-05-28T14:09:32.642Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":10,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.644Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":10}'
2021-05-28T14:09:32.645Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.647Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,8,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,121,254,23,68,129,0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,112]
2021-05-28T14:09:32.647Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,8,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 121
2021-05-28T14:09:32.649Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":8,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.651Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":8}'
2021-05-28T14:09:32.652Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
2021-05-28T14:09:32.654Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,23,68,129,0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28,112]
2021-05-28T14:09:32.654Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 23 - 2 - 4 - 129 - [0,0,3,0,141,33,1,1,1,113,0,204,184,81,0,0,3,17,3,1,72,28,28] - 112
2021-05-28T14:09:32.656Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":3,"srcaddr":8589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":1,"linkquality":113,"securityuse":0,"timestamp":5355724,"transseqnumber":0,"len":3,"data":{"type":"Buffer","data":[17,3,1]}}
2021-05-28T14:09:32.659Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":3,"manufacturerCode":null,"commandIdentifier":1},"Payload":{},"Command":{"ID":1,"parameters":[],"name":"identifyQuery"}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":true,"destinationEndpoint":1}'
2021-05-28T14:09:32.659Z zigbee-herdsman:controller:log Skipping command 'identifyQuery' because it is missing from the lookup
and:
igbee2MQTT:debug 2021-05-28 11:15:50: Received Zigbee message from '0x00124b00184ad290', type 'attributeReport', cluster 'ssIasZone', data '{"zoneStatus":1}' from endpoint 1 with groupID 0
2021-05-28T14:15:50.848Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
Zigbee2MQTT:info 2021-05-28 11:15:50: MQTT publish: topic 'zigbee2mqtt/0x00124b00184ad290', payload '{"battery":null,"battery_low":null,"linkquality":113,"occupancy":true}'
2021-05-28T14:15:50.997Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,5,69,196,141,33,1,72,28,125]
2021-05-28T14:15:50.999Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,5,69,196,141,33,1,72,28,125]
2021-05-28T14:15:51.000Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 5 - 2 - 5 - 196 - [141,33,1,72,28] - 125
2021-05-28T14:15:51.002Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - srcRtgInd - {"dstaddr":8589,"relaycount":1,"relaylist":[7240]}
2021-05-28T14:15:51.004Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-05-28T14:15:51.017Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,28,68,129,0,0,0,5,141,33,1,1,0,113,0,149,196,99,0,0,8,24,37,10,2,0,33,0,0,72,28,28,103]
2021-05-28T14:15:51.020Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,28,68,129,0,0,0,5,141,33,1,1,0,113,0,149,196,99,0,0,8,24,37,10,2,0,33,0,0,72,28,28,103]
2021-05-28T14:15:51.022Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 28 - 2 - 4 - 129 - [0,0,0,5,141,33,1,1,0,113,0,149,196,99,0,0,8,24,37,10,2,0,33,0,0,72,28,28] - 103
2021-05-28T14:15:51.024Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- AF - incomingMsg - {"groupid":0,"clusterid":1280,"srcaddr":8589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":113,"securityuse":0,"timestamp":6538389,"transseqnumber":0,"len":8,"data":{"type":"Buffer","data":[24,37,10,2,0,33,0,0]}}
2021-05-28T14:15:51.027Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":37,"manufacturerCode":null,"commandIdentifier":10},"Payload":[{"attrId":2,"dataType":33,"attrData":0}],"Command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}},"address":8589,"endpoint":1,"linkquality":113,"groupID":0,"wasBroadcast":false,"destinationEndpoint":1}'
I need the complete log, starting from the point where you put the device into pairing mode until you get interview failed. Please post it on pastebin.com and link it here.
@Koenkk
https://pastebin.com/sSnpgTk0
Logs since interview start till failed...
Thank you!
I was curious to dig into herdsman debug log... Perhaps this is the interesting part at line 1464?
2021-05-28T20:41:48.481Z zigbee-herdsman:controller:device:log Interview - node descriptor request failed for '0x00124b00184ad290', attempt 6
2021-05-28T20:41:48.483Z zigbee-herdsman:controller:device:log Interview - failed for device '0x00124b00184ad290' with error 'Error: Interview failed because can not get node descriptor ('0x00124b00184ad290')
at Device.<anonymous> (/app/node_modules/zigbee-herdsman/dist/controller/model/device.js:355:23)
at Generator.throw (<anonymous>)
at rejected (/app/node_modules/zigbee-herdsman/dist/controller/model/device.js:25:65)'
2021-05-28T20:41:48.495Z zigbee-herdsman:controller:error Interview failed for '0x00124b00184ad290 with error 'Error: Interview failed because can not get node descriptor ('0x00124b00184ad290')'
@AlexKay88 its very strange right?