-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trust ZYCT-202 Failed to configure #5928
Comments
I have the exact same problem, hope theres a solution |
Battery isn't supported indeed. Can you update the definition in devices.js to below and see if it works after a repair? (if it works configure error should also be fixed) {
zigbeeModel: ['\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'+
'\u0000\u0000\u0000\u0000\u0000', 'ZLL-NonColorController'],
model: 'ZYCT-202',
vendor: 'Trust',
description: 'Remote control',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.legacy.ZYCT202_stop, fz.legacy.ZYCT202_up_down, fz.battery],
exposes: [e.action(['on', 'off', 'stop', 'brightness_stop', 'brightness_move_up', 'brightness_move_down']), e.battery()],
toZigbee: [],
meta: {configureKey: 2},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
await reporting.batteryPercentageRemaining(endpoint);
},
}, |
I had some trouble with pairing (but with this device there were always problems during pairing - no all attempts were succesfull). At the end I paired it successfully with no error message, battery is exposed now, but without value for now... I will wait some time if it will appear or not... EDIT: After next Zigbee2mqtt restart I see that configuring also fails:
|
I'm running zigbee2mqtt in docker container , where can i find the devices.js only have 3 files in its config folder ? |
After 2 days still no battery value, and still:
|
Do your buttons work ?¿ |
can i packet sniff with zigbee2mqtt ? maybe i can sniff something out ... :) |
Yes, buttons are working, action and action_group |
@Mr-Groch instead of repairing force a reconfigure via: https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgerequestdeviceconfigure . Right before doing wakeup the device so by clicking on it and check the logs if OK. If that doesn't help share the data/database.db entry of this device. |
First, response was:
But next each time I repeat configure request, I'm getting instand response:
Weird thing that this device announce itself always after wakeup:
Now this device in database.db looks like that:
|
The database explains a lot, the device does not support the power cluster (ID: 1 is not in the |
so you made a fix in db file , do i need to update zigbee2mqtt ? or edit file devices.js ? |
Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
Have 2 folders with devices.js ? which should be edited ? running in docker |
Open bash console in docker container ( |
just deleting those 6 lines should fix it ? |
removed the six lines and its not erroring in logs any more , but HA doesn't show actions
It does not register button clicks .¿ ramming multiple buttons(phun intended) at the same time gives ;
|
`Zigbee2MQTT:info 2021-01-30 18:44:32: Device '0x00158d00038e5ff4' joined Gets added correctly no errors ? |
how did you get the buttons to register , because mine does neatly pair in zigbee2mqtt and gets added in HA , but no buttonpresses, lqi are reported ? i dont have zigbee bulbs so i dont want to pair it directly with the bulbs. just want the button presses to show up in HA zigbee2mqtt |
Do you see in mqtt state topic |
no in the logs of zigbee2mqtt it doesnt register any button presses, it does get interviewed/paired(without errors) and then added in HA with only action and linkquality...? |
Try to reset remote (press OFF for about 0 seconds), and pair again (press TWO BULBS button for about 5 seconds) - keep close to coordinator during pairing.. I've also had one time such situation - paired but without button presses, but only once... This device have some trouble with pairing... |
Tried everything repairing 10x close distance and 2m but no presses are registered ? did remove the 6 lines which gives the error , but its just not responding to clicks ? except for (no converter available) ? Received Zigbee message from '0x00158d00038e5ff4', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0 |
@Tyrian81 can you try updating the definition to below and repair it? {
zigbeeModel: ['\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'+
'\u0000\u0000\u0000\u0000\u0000', 'ZLL-NonColorController'],
model: 'ZYCT-202',
vendor: 'Trust',
description: 'Remote control',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.legacy.ZYCT202_stop, fz.legacy.ZYCT202_up_down],
exposes: [e.action(['on', 'off', 'stop', 'brightness_stop', 'brightness_move_up', 'brightness_move_down'])],
toZigbee: [],
meta: {configureKey: 2},
configure: async (device, coordinatorEndpoint, logger) => {
// Device does not support battery: https://github.com/Koenkk/zigbee2mqtt/issues/5928
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
}, See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html on how to modify devices.js |
@Koenkk {
zigbeeModel: ['\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'+
'\u0000\u0000\u0000\u0000\u0000', 'ZLL-NonColorController'],
model: 'ZYCT-202',
vendor: 'Trust',
description: 'Remote control',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.legacy.ZYCT202_stop, fz.legacy.ZYCT202_up_down],
exposes: [e.action(['on', 'off', 'stop', 'up-press', 'down-press'])],
toZigbee: [],
meta: {configureKey: 2},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
}, |
@Koenkk |
@Koenkk Zigbee2MQTT:error 2021-02-01 21:10:17: Failed to configure '0x00158d00038e5ff4', attempt 1 (Error: Bind 0x00158d00038e5ff4/1 genOnOff from '0x00124b0018e299ec/1' failed (AREQ - ZDO - bindRsp after 10000ms) |
@Tyrian81 make sure to wakeup the device and then directly after that configure it via: https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgerequestdeviceconfigure |
@Koenkk But this is the same config as initially - and with this config configure will fail |
@Mr-Groch I know, some may require it some don't (it seems?) so if it works I will surround it with a try/catch |
{"id": "0x00158d00038e5ff4"} where do i input this ? |
docker container /bash ? |
MQTT Explorer (you will easly see answer there) or Home Assistant (dev tools, call service mqtt.publish with data):
|
hmm now it doesnt even get added in HA, configure gives error ? |
Hmm paired it again with success, got added in HA check, manual configure fails ? |
It did do some device_announced |
What changed between #5928 (comment) and now? In #5928 (comment) you still had the configuring stuff. If you updated to Zigbe2MQTT 1.17.1 make sure to apply the changes as suggested in #5928 (comment). Also what coordinator are you using? |
Coordinator; Re-edited devices.js ; updated today to new docker image |
just repaired it with error , will try and configure it manually now |
configuring it tries , but alas; |
after pressing 2 bulbs it seemed to give an device_announced, after that a manual configure gave status "OK" https://pastebin.ubuntu.com/p/cHN6g8fnMz/ ,Zigbee2MQTT:info 2021-02-02 22:43:30: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure', payload '{"data":{"id":"0x00158d00038e5ff4"},"status":"ok"}' |
I see you are running a very old firmware ( |
Ah ok, updating firmware via USB possible ? Or would i need UART/serial device ? |
What happened
Each Zigbee2MQTT restart i see in logs:
The same happens when I click "reconfigure" button from frontend for this device. I'm waking it up before that. Device is working - all button presses are handled by zigbee2mqtt, just no battery level (I'm using this device about 2 months now and still no battery property).
What did you expect to happen
There should be no error in logs for this device and reconfiguration should success. Also battery level should work
How to reproduce it (minimal and precise)
Debug info
Zigbee2MQTT version: 1.17.0
Adapter hardware: CC26X2R1 zzh!
Adapter firmware version: 20201113
The text was updated successfully, but these errors were encountered: