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

Define endpoint in definition.toZigbee containing key 'state' #8190

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Define endpoint in definition.toZigbee containing key 'state' #8190

merged 3 commits into from
Nov 1, 2024

Conversation

Zitrium31
Copy link
Contributor

Purpose of this change is described in issue #24352 (repo: zigbee2mqtt)

This fix allows the selection of the proper converter among others using the same key state with multi endpoints device when sending a command state at zigbee2mqtt\lib\extension\publish.ts at line 262 const converter = converters.find((c) => (!c.key || c.key.includes(key)) && (!c.endpoint || c.endpoint == endpointName));

To allow the selection of the proper converter with multi endpoints divice
at zigbee2mqtt-master\lib\extension\publish.ts at  line "const converter =
converters.find...c.endpoint == endpointName"
This change corrects issue Koenkk/zigbee2mqtt#24352
@Koenkk Koenkk merged commit f54366e into Koenkk:master Nov 1, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Nov 1, 2024

Thanks!

Koenkk added a commit to Koenkk/zigbee2mqtt that referenced this pull request Nov 2, 2024
* `endpoint` in definition.toZigbee can be an array of string
To allow the selection of the proper converter with multi endpoints divice
This change corrects issue #24352
This change is linked to PR Koenkk/zigbee-herdsman-converters#8190

* Simplify Tz.Converter.endpoints type to string[] array only
In zigbee-herdsman-converters\src\lib\types.ts

* Update publish.ts

---------

Co-authored-by: Koen Kanters <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants