-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Applying a unified description for message topics #1393
Comments
that would be really helpful |
Something we can consider is adding both for the time being, however I'm not sure if this will create confusion for users. |
Thx for the fast reply. To prevent the confusion of users the documentation could be updated with an deprecation information. (This would also prevent creating more technical debt until the new version is out) |
Good, in case you are interested feel free to make some PRs already (simply add
|
I have started with the first device and will create more PRs later on. |
@Koenkk Is there any device, for which |
Closing this as #1399 is merged |
Speaking of user's confusion... Was this intentional that the legacy value for a left/right switch looks like Confused my existing automation for sure :-) |
@Koenkk , what about consistency when the 'legacy: false' is set?
|
|
Not to question it largely, just curious, what sort of logic led to decision to have |
For device with only a single endpoint (e.g. |
zigbee2mqtt 1.14.3 How can I do this? |
@AlexeyHimki can you provide the debug logging of this? To enable debug logging set in advanced:
log_level: debug |
Physical press:
Remote toggle:
|
@AlexeyHimki should be fixed 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) |
Hello,
Currently, I need to consider different topics (like "action" and "click") when I am switching between remotes/switches, while these remotes do similar things. It would be preferable when all remotes/switches would use a unified topic e.g. all use "action" or all use "click".
Example:
Xiaomi WXKG02LM
Payload: {"battery":100,"voltage":3012,"linkquality":65,"click":"single"}
Philips 324131092621
Payload: {"battery":100,"linkquality":68,"counter":1,"brightness":255,"update_available":false,"action":"on-press","duration":0}
IKEA E1524/E1810
{"battery":34,"linkquality":55,"update_available":false,"action":"toggle"}
Personally I would suggest the usage of the term "action" as it is more versatile.
From my understanding the required change would be to replace all "click" with "action" in the converter fromZigbee.js.
Example
Xiaomi WXKG02LM
WXKG02LM_click: {
cluster: 'genOnOff',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
return {click: getKey(model.endpoint(msg.device), msg.endpoint.ID)};
},
},
IKEA E1524/E1810
E1524_E1810_toggle: {
cluster: 'genOnOff',
type: 'commandToggle',
convert: (model, msg, publish, options, meta) => {
const payload = {action: getProperty('toggle', msg, model)};
return payload;
},
},
So my question would be:
Greetings
Marc
The text was updated successfully, but these errors were encountered: