Commit 32aea93
Z2M: mark custom action extend as isModernExtend
z-h-c's prepareDefinition rejects any item in a definition's `extend` array
that lacks `isModernExtend: true` ("has legacy extend in modern extend"), so
the raw {fromZigbee, toZigbee, exposes} block for the action converter was
rejected and the whole file ignored — even after the e.presets.action fix.
Add isModernExtend: true so z-h-c treats it as a modern extend and merges its
fromZigbee/exposes. Verified by running every generated definition (147 full,
6 trimmed) through zigbee-herdsman-converters 26.85.0 prepareDefinition — the
function Z2M's addExternalDefinition calls — with zero failures.
This and the e.presets.action fix were both latent in the multistate proposal's
converter, which was never regenerated or loaded, so neither was ever exercised.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2fa58bc commit 32aea93
3 files changed
Lines changed: 1444 additions & 288 deletions
File tree
- helper_scripts/templates
- zigbee2mqtt
- converters_v1
- converters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
523 | 526 | | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
0 commit comments