Exposed Nodes
Nodes Available for Exposure
The following nodes can be exposed to Home Assistant, appearing as switches that can be toggled to enable or disable them in Node-RED:
This feature provides a cleaner alternative to creating input_booleans in Home Assistant for controlling flow activation.
Triggering Exposed Nodes via nodered.trigger
Exposed nodes can be activated using the nodered.trigger service call with the following parameters:
entity_id
- Required
- The
entity_idof the exposed node to be triggered, as seen in Home Assistant. For example, useswitch.my_nodeif that is the node'sentity_id.
output_path
- Optional
- Default:
0 - Can be a comma-separated list of output paths.
- Determines which output path(s) the message will be sent through:
0: Send through all output paths.1: Send through the first output path.2: Send through the second output path, and so on.
message
- Required
- The message to be sent when triggering the node. This should be a valid JSON object. For example,
{ "payload": "hello world" }would setmsg.payloadtohello world.
