Skip to content
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

[BEGINNER] zigbee - how to know the commands code and cluster for any device ? #1403

Open
lifaon74 opened this issue Jul 24, 2024 · 0 comments

Comments

@lifaon74
Copy link

Hi, I'm a real beginner into the IoT world. Maybe it's not the best place to ask my question, but I was unable to find any answer to my question after days of researches, so maybe someone here will be an expert and have an answer for me. I'm here to learn, so don't hesitate to go deep and technical into the details.

I'm using tasmota on a zigbee gateway and it works perfectly. All devices are connected to my gateway, and displayed on the main menu. The "common" devices (like temperature sensors) displays properly their "common" properties (like: temperature, humidity, etc.).

However, it become far more complex and unclear when we have to deal with "unknown" devices. I've bought an UFO-R11 and with Zigbee2MQTT we have to send "learn_ir_code":"ON", in another hand, with tasmota we have to do the thing by ourselves (and this is what I want, remember, I'm here to learn). So, I think I have to ZbSend something:

 ZbSend { "Device":"0x5175", "Endpoint":"0x01", "Send": "e004!02" }

However, this is where I'm stuck: how may I get the values for Endpoint, <cluster>, <cmd>, and <bytes> ?

I searched for "learn_ir_code" everywhere, and the closest to an answser I found is there https://github.com/Koenkk/zigbee-herdsman-converters/blob/f83254ca55f890514744a5902edbebf8d998307d/src/lib/zosung.ts#L250, but it doesn't help. So at this point I'm stuck.

How others, reverse engineered such devices ? Is there documentation somewhere about all the zigbee command for any device (I checked the zigbee lib spec, but it doesn't help) ? Is there "hack" devices able to get such codes ?

Thanks in advance to all the people which will help me 😊

@lifaon74 lifaon74 changed the title [BEGINER] zigbee - how to know the commands code and cluster for any device ? [BEGINNER] zigbee - how to know the commands code and cluster for any device ? Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant