Skip to content

v2.6 - Node-scoped rules

Choose a tag to compare

@Rouzax Rouzax released this 30 May 12:02
· 52 commits to main since this release

What's New

Node-scoped rules with nodeMatch

Rules can now include an optional nodeMatch object that restricts the rule to specific device types by matching Z-Wave node properties. All specified properties must match (AND logic). Rules without nodeMatch work exactly as before.

Available properties: productLabel, productDescription, manufacturer.

Example:

{
  "name": "RGBW Red Channel",
  "pattern": "38-2-currentValue$",
  "replace": " - Current value$",
  "with": " - Red",
  "nodeMatch": { "productLabel": "FGRGBW" }
}

Without nodeMatch, a rule targeting endpoint 2 would match every dimmer. With nodeMatch, it only applies to Fibaro RGBW controllers.

RGBW color channel rules

Added 8 rules for the Fibaro FGRGBW-442 that use nodeMatch to correctly name color channels:

  • CC38 endpoints 2-5: Red, Green, Blue, White
  • CC49 endpoints 6-9: Voltage Red, Voltage Green, Voltage Blue, Voltage White

This eliminates all name collisions on RGBW controllers without affecting regular dimmers or blinds.

Validation

  • Invalid regex in nodeMatch values is caught at load time (exit 1 with clear error message)
  • Unknown property names in nodeMatch produce a console warning and are ignored
  • Empty nodeMatch objects and empty string values are treated as unset

Full Changelog: v2.5...v2.6