Skip to content

Add input implementation #23

Open
Open
@josiah-tesfu

Description

@josiah-tesfu

Currently, any message can trigger the node as input. A more effective and appropriate implementation would have the input dynamically configure the node settings.

Node-RED uses msg.payload and msg.topic to configure input, where msg.payload is used for main data and msg.topic is used for specific sub-categories/ actions. Nodes such as 'change', 'function', or 'switch' can further be used to change node configuations dynamically. For example, if the current node is being set based on temperature change from a temperature node, the temperature node might have a msg.payload set to the temperature. A function node could then translate 'above 25 degrees' to the current node's specific configurations.

Potential input settings for LED:
msg.payload: On/ Off

Currently, the LED node has an option to either configure input from the editor or from input received. These should both be an option and this dropdown configuration should be removed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions