I just started working with Rhasspy and using Node-Red to handle the intents from Rhasspy.
I am getting the ' Unexpected end of JSON input error' on a join node when I try to combine 2 payloads into one.
I'm still learning NR and I'm sure I've mucked something up somewhere. I've tested and everything works up until the Join.
So in a netshell, the intent triggers 2 nodes to grab data from Home Assistant, then I use funtion nodes to give some words to the data, then change nodes to set different msg.topic values, followed by a join to combine them, except the join doesn't.
[{"id":"5754556a.c9ebbc","type":"api-current-state","z":"c9c0d07b.2751c","name":"House Temperature","server":"890f6b21.aaf278","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"sensor.house_temperature","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":430,"y":380,"wires":[["16a3a357.5bb1cd"]]},{"id":"af88e8c3.01eda8","type":"api-current-state","z":"c9c0d07b.2751c","name":"Outside Temperature","server":"890f6b21.aaf278","version":1,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is_not","override_topic":false,"entity_id":"sensor.temperature","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":260,"y":480,"wires":[["8cc48f57.6aaf7"]]},{"id":"8cc48f57.6aaf7","type":"function","z":"c9c0d07b.2751c","name":"Outside Temp prefix","func":"msg.payload = \"It is\" + msg.payload + \"degrees outside\";\nreturn msg;","outputs":1,"noerr":0,"x":480,"y":480,"wires":[["c2e216ec.273778","6e846956.116f08"]]},{"id":"16a3a357.5bb1cd","type":"function","z":"c9c0d07b.2751c","name":"House Temp prefix","func":"msg.payload = \"and\" + msg.payload + \"degrees inside\";\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":380,"wires":[["4539666.d209598","6e846956.116f08"]]},{"id":"c2e216ec.273778","type":"change","z":"c9c0d07b.2751c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":480,"wires":[["a8511133.286cb"]]},{"id":"4539666.d209598","type":"change","z":"c9c0d07b.2751c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":380,"wires":[["a8511133.286cb"]]},{"id":"a8511133.286cb","type":"join","z":"c9c0d07b.2751c","name":"Output Test","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"","joinerType":"bin","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":930,"y":440,"wires":[["812b9af3.882998","6e846956.116f08"]]},{"id":"6e846956.116f08","type":"debug","z":"c9c0d07b.2751c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":770,"y":660,"wires":[]},{"id":"890f6b21.aaf278","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
Appraciate any assist on this