FlowFuse / FlowFuse/node-red-dashboard

Sending enable/disable message to ui-switch destroys the saved msg.topic from previous messages, also the switch is switched off

Open
#622 11 comments 0 reactions 0 assignees View on GitHub
Dashboard 1.0 size:S type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

A ui-switch node can be configured to use msg.topic as the topic to send on a state change.
If an enable/disable message is sent (with no topic) using msg.enabled true or false then the topic saved from a previous message setting the switch state is lost.
I don't think that an enable/disable message should have such side effects.

Edit: Also if the switch is On and is then disabled and enabled then the switch is set to Off. That should not happen.

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.