/r/nodered
A place to share nodes and flows, and discuss Node-RED, a low-code tool for event-driven applications.
Node-RED is a drag and drop programming tool made by IBM Emerging Technology to automate the Internet of Things.
You can think of it as the glue that connects your phone to your air conditioner, so that your AC is on half an hour before you get home.
Project home page at: http://nodered.org
/r/nodered
Hello guys this is my first time here, i am new in this and i need a project with 2 analog signals.But i dont have nothing in real life.
I am using the oauth2 node (for MS apps) and I get an access token. I need to use this as a bearer token. How can I pass this to my http request node without physically putting it in there?
Is there a msg. property like msg.url?
Hello guys has someone before tried streaming a usb webcam feed on a node red dashboard? If so how can it be done?
Also, are the raspberry camera nodes on nodered only specific to the raspbery camera module or would also work for a usb cam connected to it?
Nota: i found tutos using raspberry pi to take pictures with a usbcam every say 100ms and process those images to turn them into a video, i wonder if it s possible to stream that feed on nodered; i m gonna try it anyways.
Hi im working in a React application with Nodered used for backend, i get an error when i try to update a record from a table. The program should, when i click the save button, trigger a http node with the PATCH Method.
Other node using different method like GET or POST are working, but when i try to use method like PATCH it wouldn't.
In the browser network console when i click the button, that should trigger the http node with PATCH method, it says this:
The React code seems to be everything okay, im 99% sure, because the other node work
I have a simple flow set up for my Aqara mini switch. I have stripped just about everything out of it while troubleshooting, and still I am having bizarre behavior: NodeRed thinks that the button is firing every 50 minutes (give or take). I have no idea why.
It is behaving correctly when I do, in fact, press the button… but then it continues to fire at these intervals even when I’m not pressing it.
Any tips on what is happening or how to troubleshoot?
i have a project where i need to create a Node-RED application to serve as a Wrapper OPC DA – OPC UA. The OPC DA Client node (https://flows.nodered.org/node/node-red-contrib-opcda-client) will be utilized to read two variables from an OPC DA Server (e.g., Kepware, FPOPCServer, etc.) and publish them to the OPC UA Server created within Node-RED.
Do you have some ideas how to do this?
I created a server opc da but i cand connect to it! It gives me feedback that problem is in connection and server is timeout ,also I can’t connect to it using datafeed!
Hi guys,
I'm doing a MSc project for IoT course, and the only part that doesn't work really well is CSV reading: I have to extract a single row from it and to do it I read the CSV file thanks read node (passing all CSV as a single string), then thanks CSV node I parse them in JSON (creating one message per row), then I used a function filter to get only one the selected message (this node knows which one pass thanks to a previous flow.set)
Is there a way to do it in a faster way? Or at least not using flow variables, because the CSV file is quite big and I can't achieve an high throughput
We have a 3x3 TV Wall in our school auditorium space. One of the panels receives false commands from the side buttons on the panel, which constantly makes the TV Change source, volume, brightness, etc. (This issue exists even when the TV is by itself and only plugged into power, so not another AV controller causing the issue, just the buttons on the side of the physical unit)
This was solved in the past by a previous colleague, who had a RaspberryPi running NodeRed, that he plugged directly into the single TV Panel network port, ran a command and then it fixed the issue (Until there is a power outage). It essentially disabled receiving the commands from those buttons Unfortunately it was not documented anywhere.
With not much experience in the NodeRed or AV Space, wondering if somebody could point me in some possibly directions for me to explore and learn how this may have been achieved so that I can resolve this without spending $$$ on uninstalling and reinstalling, or a replacement as the panel is no longer manufactured.
TV Panel Model: BDL5588XC
Any information would be helpful. I have come across some API's but don't have the disable side buttons option, some mention of MQTT but as a novice not sure what resources that are relevant I can use to upskill.
I have been having some trouble finding sources on how to search for keywords within an email on Nodered. I have already gotten the debug to display emails from a specific email address, but I cannot seem to find where I can filter them which contain some keywords. I've only just started usng Nodered as part of my university course however we are required to find all of our information online. Thanks!
Hi there!
I have the following problem. I need a node in which I can store a variable input (e.g. An integer) which then sends the content every few minutes.
With the inject node I can send regularly, but I can't change what it sends. With the node-red-contrib-state node I can change the input, but it only fires upon state change and not in definable time periods.
Right now I'm writing the data to a text file an use an injection node to read that text file every few minutes. It works, but it's not very elegant.
Is there any solution I missed?
I have a contact sensor on the door (flap) so I know when it's been opened, but my brain just doesn't seem to want to figure out the right flow.
When the sensor is triggered (entry), my idea was to wait until it is triggered again (exit) or until 2 minutes has elapsed (just in case it doesn't trigger on exit). Additionally, each time it is triggered the flow should ignore additional sensor changes for say 5 seconds (in case the flap swings).
Can anyone point me in the right direction for this? Thanks!
Hi
I am running Node Red on my Home Assistant server and would like to turn a Tasmota flashed Sonoff mini R2 relay ON/OFF using the call service node.
I successfully managed to toggle a light by injecting it with a timestamp using this config
When I try to do the same with the relay it does not work. When selecting entity I noticed the relay says switch.tasmota under it so I changed the domain to switch.
There clearly is no connection to the device but I do not know why. I assume the node is configured incorrectly since the relay is online and it is possible to switch on/off from the Home Assistant dashboard.
Hi Folks.
I have this counter.
+1 adds one. -1 subtracts one.
I now have a constant of 22.
where I add either +1 or -1 with each press of the counter, depending on which button I press.
How do I do that?
Thx for your help
Hi does anyone know of an off the shelf decent looking touch screen thermostat with or without schedules that will pass and accept this data from node red, at the moment the plan is to use a tablet as interface but I've just tried a nice looking meross stat the only issue is the node red module doesn't support thermostats just plugs and garage door equipment. I am going to try and add to the existing project and see if I can get a solution but I'm not sure I will have any success and time is limited.
Have you guys heard about this project PiPHI Network yet? I think they are interested in what Node Red is doing and will be integrating Node Red and incentivizing developers, tinkerers and DIY enthusiasts in the future for contributing to their software. Pretty cool concept. I think the website is https://piphi.network
I have a flow which runs action 1, 2 or 3 based on which door is open. How can I set the value of a new node to the action number that was last ran?
🚀 Exciting Update By Node-RED Co-creator and CTO of FlowFuse
https://flowfuse.com/blog/2024/04/node-red-multiplayer/
👥 Introducing Multiplayer Mode! Collaborate in real-time✨ See who's editing alongside you! 🔍 Were you waiting for this feature? Give us a 💙 if you were!
So, I'm trying to create a hint system that displays on a different tab on the node-red dashboard - that I have working properly, however an issue I have is that I need to also have a system for images to show as a hint as well. I also need to have it be in a dropdown menu to select different options for the pictures as well. I have the images but I just don't have it switching between the images like I would like it to. Any help? I will also DM the JSON for the code that I have right now to anyone that would like to help
Check our latest blog post on Securing your Node-RED Environment with RBAC
https://flowfuse.com/blog/2024/04/role-based-access-control-rbac-for-node-red-with-flowfuse/
Hey everyone. We are hosting a webinar looking back on the last 3 years of FlowFuse and doing a platform update highlighting some of the latest features at the end of the month on April 30th.
https://flowfuse.com/webinars/2024/elevating-nodered-a-flowfuse-platform-update/
Does anyone know how to integrate with Microsoft Teams? I know of sending emails to a channel from the email address but I wanted to send it to a chat/group chat. Also want to be able to read a teams channel messages.
Sorry if it's a dumb question, but I have in my flow a Link Out which on static times out. I want to set it to Dynamic but it's asking to place a msg.target with the name of the Link In node....but when I change the Link Call node to dynamic, all the fields disappear. Am I to set the msg.target on the initial State Change node?
example flow:
[
{
"id": "783299beae7a3e26",
"type": "server-state-changed",
"z": "5d9ef4efc1666033",
"g": "6649b9da953f2da0",
"name": "Samsung TV Turns Off",
"server": "b3afb4a3.474b18",
"version": 5,
"outputs": 2,
"exposeAsEntityConfig": "",
"entityId": "media_player.samsung_frame_tv",
"entityIdType": "exact",
"outputInitially": false,
"stateType": "str",
"ifState": "off",
"ifStateType": "str",
"ifStateOperator": "is",
"outputOnlyOnStateChange": true,
"for": "0",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": true,
"ignorePrevStateUnknown": true,
"ignorePrevStateUnavailable": true,
"ignoreCurrentStateUnknown": true,
"ignoreCurrentStateUnavailable": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 140,
"y": 640,
"wires": [
[
"c0abd9fd3c4bc46f"
],
[]
]
},
{
"id": "c0abd9fd3c4bc46f",
"type": "link call",
"z": "5d9ef4efc1666033",
"g": "6649b9da953f2da0",
"name": "Dreamview Off",
"links": [
"7a2d461729543fc6"
],
"linkType": "dynamic",
"timeout": "",
"x": 360,
"y": 640,
"wires": [
[]
]
},
{
"id": "b3afb4a3.474b18",
"type": "server",
"name": "Home Assistant",
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": true,
"heartbeatInterval": "25",
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": "",
"statusYear": "hidden",
"statusMonth": "hidden",
"statusDay": "numeric",
"statusHourCycle": "default",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": true
}
]
Evening All,
Can someone please explain how switch blocks work?I am attempting to split based on the element position of an array.
As an example, I am trying to use a simple array [1,2,3,4] with those values going to the corresponding outputs. Is it the switch node property that is wrong?
Thanks
I'm trying to make a flow based on previous state...but when I go into debug, none of my sensors have an old state...what did I miss?
I would like to opreate node-red, width omron intergrated simulation.
Anyone who knows if it is possible, then please explain how?
I have a NodeRed deployed inside my EKS and i linked a project within my Azure Repos
When I'm trying to pull it says this:
I tried to get into my container bash but git is not working (not sure if this is the solution)
thank you!
Hey guys,
i am quite new to MQTT and Node-Red so this might be a dumb question:
I have an IKEA Tradfri switch using zigbee2mqtt sending me this:
I want to switch off an dimmer with the message {"state": "OFF"}
This works if i trigger it manually with a time stamp.
I have an switch node looking for close (or open) but it doesnt seem to work
What am i doing wrong? When i use a mqtt message only sending "close" it works but not with the message from the remote
Good morning all,
I am hoping if someone can confirm a functional diagram for me. Confusion stems around the control of the end physical device (fan).
Can the MQTT broker pass control signals that are produced off-site from OpenPLC/Node-red?
I
Hi guys, I'm currently evaluating the best way to get the connection between Peakboard and Node-RED instance up and running. Has anyone ever done this? Unfortunately there's no data source or extension, so I'm thinking about REST / JSon or maybe put some kind of PLC in between. I'm still in research phase .-)