Fire Event from Node Red

Hi All,

I’m trying to use the “Fire Event” node in Node Red to activate a routine i have set in another flow. I can’t seem to figure out the correct setup/syntax to get the Fire Event node to fire the Event correctly. Can anyone help? Here is the flow i’m trying to activate (call). I currently have this setup to run from an NFC tag tap through a shortcut in iOS shortcuts, but I want to be able to use it in Node Red too. Thanks!!!

The Office_shutdown event:

[{"id":"74f37bc1f05546fe","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"e4ad2673bbe274cc","type":"server-events","z":"74f37bc1f05546fe","name":"","server":"402a621.201329c","version":1,"event_type":"office_shutdown","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":160,"y":140,"wires":[["e4562d2bfc8f0b47","37ba51fb9c4aae12","b9ee99281ff971bd"]]},{"id":"b9ee99281ff971bd","type":"api-call-service","z":"74f37bc1f05546fe","name":"","server":"402a621.201329c","version":4,"debugenabled":false,"domain":"fan","service":"turn_off","target":{"areaId":[],"deviceId":["5cd856745796e269f0dd488fec8e3601"],"entityId":[]},"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":370,"y":100,"wires":[[]]},{"id":"e4562d2bfc8f0b47","type":"api-call-service","z":"74f37bc1f05546fe","name":"","server":"402a621.201329c","version":4,"debugenabled":false,"domain":"light","service":"turn_off","target":{"areaId":[],"deviceId":["5677275c18040be04728daf822fb4412"],"entityId":[]},"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":380,"y":140,"wires":[[]]},{"id":"37ba51fb9c4aae12","type":"api-call-service","z":"74f37bc1f05546fe","name":"","server":"402a621.201329c","version":4,"debugenabled":false,"domain":"media_player","service":"turn_off","target":{"areaId":[],"deviceId":[],"entityId":["media_player.samsung_7_series_58","media_player.front_office_samsung_tv"]},"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":200,"wires":[[]]},{"id":"402a621.201329c","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

Not sure if you can send random event (not supported by the HA API)

However if your goal is to communicate between NR flows (so the message doesn’t have to go outside of NR) you can use link in and link out nodes for that

1 Like

Can I link in across flows?

Yes. You absolutely can.

Just be careful if you copy/paste a link - it copies all current links. Label everything so you know what it’s supposed to do. You can EASILY end up with links going places you weren’t expecting. (I’m currently chasing one that is errantly sending status from one of my ‘room’ flows up to my ‘security’ flows when it shouldn’t…)

Double click the link node, it will give you a list of all the available link nodes. The ones with check boxes are connected to that node. You can also connect to other links here without dragging a line between them

2 Likes