FlowFuse / FlowFuse/node-red-dashboard

On/Off Payload Swap on Switch component

Open
#705 3 comments 0 reactions 0 assignees View on GitHub
needs-triage type:feature
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Description

When using a switch where specifying the ON and OFF payload properties, a common scenario is where logic needs to be inverted. The ON payload may be OFF where the consumer of say an MQTT message interprets OFF as the default on state of a NC relay contact. While it is easy to just change the text for the ON and OFF payloads, when a flow has multiple switches this quickly becomes a chore and a tedious workflow.

Proposal is to have a toggle button which allows the swapping of the ON and OFF payload values.
![image](https://github.com/FlowFuse/node-red-dashboard/assets/26506785/b0b1e1cc-e46b-4ced-ab56-35af5fdb29a5)

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.