FlowFuse / FlowFuse/node-red-dashboard
On/Off Payload Swap on Switch component
- 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.

### 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.