Automate ceiling fans using temperature difference between sensors

The message coming out of the join node is perfectly handleable by the function node.
You just need to parse the message.

Putting it through thecsv node won't do anything to help you as you are still going to have to parse the message.

(Please read the how to paste code thread which is pinned in the main menu of topics.)

Okay got it I'll remove it.

It makes no difference to me.

Just it is complicating something when it doesn't need to be there.

Yes keeping the workspace let cluttered is better. I am researching how to write the code for the computation. Checked out the docs and found a lot of info but not specific to calculations. Can you point me in the right direction , please?

Post the message that comes out of the join node.

(How it has been shown how to paste code here)

https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/2

The join node should be in key/value pairs mode.

I have changed the join node to key/value pairs. Now can I send this payload on to a function node and write the code for temperature difference? If so do you have a recommendation for where to find the code?

You are going to have write it.

It is .... 3 lines.

You haven't posted the message so I can't help you.

That can't be the message.

That looks like (and I stress LOOKS LIKE) a bunch of messages you copied from the debug window.

I need to see THE message coming out of the join node.

This is the message from the join node.

12/12/2021, 2:18:58 PMnode: 19a820dcdccc45cf
msg : string[71]
"Message missing key property 'msg.payload_state' - cannot add to object"

I've been trying to follow this discussion but I'm getting increasingly lost.

Can you export your flow and post it here, together with the two messages before they go into the join node?

For the code: press CTRL e, make sure "current flow" is selected then Copy to clipboard.
To post it here, click the </> button then paste your code over the highlighted text

For the messages, add debug nodes and in the debug tab click the "Copy value" button for each message, paste it here in the same way as the code.

Should not be, should be msg.state

12/12/2021, 10:30:03 PMnode: join debug
msg : Object
object
_msgid: "d0cd1b8f509a965c"
payload: object
70.9: 70.9
79.9: 79.9

topic: ""
data: 0` 12/12/2021, 10:30:03 PM[node: red temp debug](http://192.168.0.224:8123/api/hassio_ingress/YZJ5V_hv1xG8Lv8Qe6hYQhPOlTYJ-36t2GxIC9oiOlg/#)msg : Object

object

_msgid: "d0cd1b8f509a965c"

payload: 70.9

topic: ""

data: 0`


12/12/2021, 10:30:03 PM[node: upstairs temp debug]

object

_msgid: "d0cd1b8f509a965c"

payload: 79.9

topic: ""

data: 0

As has been noted multiple times the messages coming in must have (different) topics specified.

You have not posted the flow, so I can't really tell what's going on but as Colin has repeatedly said, for the Join node to work properly you must set a different msg.topic for each message.
Use two Change nodes like this:
Untitled 1

Hello Colin, I have added change nodes to the flow and included topics. If you wouldn't mind taking a look would really appreciate your time

12/13/2021, 5:33:55 PMnode: join debug
upstairstemp : msg : Object
object
_msgid: "78c3338bc924e796"
payload: object
topic: "upstairstemp"
data: 0

the join node has both nodes connected, but only the upstairs temp is showing in the debug. 
Here are the other debug messages

12/13/2021, 5:33:54 PMnode: red temp debug
: msg : Object

object

_msgid: "78c3338bc924e796"

payload: 69.6

topic: "redtemp"

data: 0

You have still not posted the flow, so I still can't tell what you have done wrong. I guess that it's to do with the settings of your Join node.

Here is a simple example where two inputs are joined into a single message. The Join node is in Manual mode.
Maybe try recreating this flow, tweek the settings till it works.

[{"id":"ef60f0756f97cbb7","type":"inject","z":"a531e868a7ed264e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"94","payloadType":"num","x":470,"y":80,"wires":[["3b58028c95265493"]]},{"id":"8d0240b1eac1ade7","type":"inject","z":"a531e868a7ed264e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"72","payloadType":"num","x":470,"y":120,"wires":[["121fe5786a6d7bfb"]]},{"id":"121fe5786a6d7bfb","type":"change","z":"a531e868a7ed264e","name":"topic=\"down\"","rules":[{"t":"set","p":"topic","pt":"msg","to":"down","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":120,"wires":[["c26dcf57a46ff9a6"]]},{"id":"3b58028c95265493","type":"change","z":"a531e868a7ed264e","name":"topic=\"up\"","rules":[{"t":"set","p":"topic","pt":"msg","to":"up","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":80,"wires":[["c26dcf57a46ff9a6"]]},{"id":"5a6351507afa2ef9","type":"debug","z":"a531e868a7ed264e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":100,"wires":[]}]

How did you post the flow? I want to receive help, but not frustrate my helpers.
Thanks,
Connie

You have been told and show the link on how to post flows.....

Post 26 (from me)