-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How does one use toZigbee.js to set device parameters #688
Comments
Here is a package for home assistant https://paste.ubuntu.com/p/DsP84zGmxv/ |
I believe my question is more basic. What is the general mechanism by which toZigbee.js is used? It is clear that fromZigbee.js is used by zigbee2mqtt when it needs to process information from a device. When and how is toZigbee.js used? Do I set something upon in configuration.yaml or is there another way to communicate with a running zigbee2mqtt to tell it to configure the zigbee device? I am not a home assistant user so do not recognize how the pasted text is used with it. |
In general you need to send an MQTT message to zigbee2mqtt with a special payload. It is described in detail here. |
Excellent. I was able send the 'set' and 'get' topics. With low setting for vibration level it seems to be hard to make it report vibration. High setting was easier to induce vibration, but still needed a deliberate degree of movement. I can also see that the 'get' topic was recognized, but I do not see a response related to sensitivity that was programmed. Is it undecoded in the 'unknown_data' parameter? zigbee2mqtt:info 2018-12-12 22:55:59 Zigbee publish to '0x00158d0002b23edc', genBasic - read - [{"attrId":65293}] - {"manufSpec":1,"disDefaultRsp":1,"manufCode":4447} - null zigbeeWA/0x00158d0002b23edc/get = {"sensitivity":"high"} |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have DJT11LM that reports accelerometer-based information. toZigbee.js implies that it can be set to high/low/medium sensitivity. What do I do so that zigbee2mqtt sends the desired sensitivity to the device?
/* Note when send the command to set sensitivity, press button on the device to make it wakeup*/
DJT11LM_vibration_sensitivity: {
key: 'sensitivity',
convert: (value, message, type) => {
const cid = 'genBasic';
const attrId = 0xFF0D;
The text was updated successfully, but these errors were encountered: