Skip to content

Node-RED: use msg.topic when Tag field is empty#2219

Open
smort82 wants to merge 1 commit intofrangoteam:masterfrom
smort82:node-red-tag-topic-fallback
Open

Node-RED: use msg.topic when Tag field is empty#2219
smort82 wants to merge 1 commit intofrangoteam:masterfrom
smort82:node-red-tag-topic-fallback

Conversation

@smort82
Copy link

@smort82 smort82 commented Feb 25, 2026

📌 Description

This PR updates the Node-RED get-tag and set-tag nodes to allow using msg.topic
as the tag reference when the Tag field in the UI is left empty.

Behavior:

  • If Tag field is set → use it
  • If Tag field is empty → fallback to msg.topic
  • Error only when both are missing

Backwards compatible: existing flows with Tag set are unchanged.


🧪 Type of Change

Please mark the relevant option:

  • Bug fix
  • [ x] New feature
  • Refactoring
  • Documentation
  • Other

🚫 Build Artifacts Check

Please confirm:

  • [x ] I did NOT commit /client/dist
  • [x ] I did NOT commit generated Angular build output
  • [ x] Only source files are included

🔍 Checklist

  • [x ] Code follows project coding standards
  • [x ] I tested my changes locally
  • [ x] Documentation updated if required
  • [x ] Issue opened (for major changes)

📚 Documentation Checklist (if applicable)

  • The documentation builds locally with mkdocs serve
  • All links were tested
  • Images use relative paths (e.g. images/example.png)
  • No references to the old GitHub Wiki
  • Navigation updated in mkdocs.yml (if required)

📝 Additional Notes

Add any other context or screenshots here.

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.

1 participant