OK.. this has got me stumped! MQTT Out Node Odd Error?
If I inject via 'Test' it works, if I inject via 'Volume 15' works. but if I click on 'Test' to populate the 'Tevevisions' table, then click on the 'Televisions' table row 1 (only row) which uses the same function node as 'Test', the MQTT OUT node fails with this very odd error.
Error... "Error: Invalid action specified"
{"payload":"address=192.168.1.24&media=84:90:0a:7f:1e:00&key=TUU715C8&topic=volume&message=15","action":"row_click","_client":{"socketId":"Yc4Veh3F7oB_-byJAAAH","socketIp":"192.168.1.34"},"_msgid":"174a37b1dc3c5a38","error":{"message":"Error: Invalid action specified","source":{"id":"f29975a35fd9e47a","type":"mqtt out","name":"Publish (command/television)","count":1},"stack":"Error: Invalid action specified\n at MQTTOutNode._inputCallback (/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/network/10-mqtt.js:1480:30)\n at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:214:26\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/hooks.js:166:13)\n at Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:206:11)\n at Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:190:25)\n at Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:499:10)\n at deliverMessageToDestination (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:817:40)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:833:21)\n at process.processImmediate (node:internal/timers:483:21)"},"_event":"node:51f4208a73304370"}
Flow...
[{"id":"a4cafcfc664d456d","type":"function","z":"278a09b3f0abe33b","name":"Function","func":"msg.payload = 'address=192.168.1.24&media=84:90:0a:7f:1e:00&key=TUU715C8&topic=volume&message=15'\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":600,"wires":[["f29975a35fd9e47a"]]},{"id":"7964205f6031c73b","type":"inject","z":"278a09b3f0abe33b","name":"Volume 15","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"address=192.168.1.24&media=84:90:0a:7f:1e:00&key=TUU715C8&topic=volume&message=15","payloadType":"str","x":1180,"y":640,"wires":[["f29975a35fd9e47a"]]},{"id":"ecd24545baea07b2","type":"inject","z":"278a09b3f0abe33b","name":"Test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1030,"y":620,"wires":[["a4cafcfc664d456d"]]},{"id":"d007b939d174a9a8","type":"ui-table","z":"278a09b3f0abe33b","group":"75ea6668946ef1c1","name":"Televisions","label":"Televisions","order":2,"width":"","height":"","maxrows":0,"passthru":false,"autocols":true,"showSearch":false,"deselect":true,"selectionType":"click","columns":[],"mobileBreakpoint":"sm","mobileBreakpointType":"defaults","action":"replace","className":"","x":1010,"y":580,"wires":[["a4cafcfc664d456d"]]},{"id":"8c51dc93980bbb84","type":"inject","z":"278a09b3f0abe33b","name":"Test Table","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload[0].Device","v":"Test","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[]","payloadType":"jsonata","x":860,"y":580,"wires":[["d007b939d174a9a8"]]},{"id":"f29975a35fd9e47a","type":"mqtt out","z":"278a09b3f0abe33b","name":"Publish (command/television)","topic":"command/television","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"18041d7c9ea500d9","x":1400,"y":620,"wires":[]},{"id":"75ea6668946ef1c1","type":"ui-group","name":"Television Control","page":"a129af50497c821b","width":8,"height":1,"order":1,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"18041d7c9ea500d9","type":"mqtt-broker","name":"Broker","broker":"broker.dachshund-digital.org","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"a129af50497c821b","type":"ui-page","name":"Dachshund Digital","ui":"b9d115efa0ea05a2","path":"/Casitas","icon":"home","layout":"grid","theme":"eae0f4a4353a3ec9","breakpoints":[{"name":"Default","px":"0","cols":"3"},{"name":"Tablet","px":"576","cols":"6"},{"name":"Small Desktop","px":"768","cols":"9"},{"name":"Desktop","px":"1024","cols":"12"}],"order":2,"className":"","visible":true,"disabled":false},{"id":"b9d115efa0ea05a2","type":"ui-base","name":"Dashboard","path":"/dashboard","appIcon":"","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"headerContent":"page","navigationStyle":"default","titleBarStyle":"default","showReconnectNotification":true,"notificationDisplayTime":1,"showDisconnectNotification":true,"allowInstall":false},{"id":"eae0f4a4353a3ec9","type":"ui-theme","name":"Dark","colors":{"surface":"#008080","primary":"#008080","bgPage":"#000000","groupBg":"#000000","groupOutline":"#cccccc"},"sizes":{"density":"default","pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}},{"id":"cf70bd7b6ada1adc","type":"global-config","env":[],"modules":{"@flowfuse/node-red-dashboard":"1.29.0"}}]
Tried restarting NR thinking something nasty happened under the hood. But the issue is consistent and repeatable. There is nothing about the topic or the payload that is different between all the variants that I can see, the broker never gets the topic/message, this is all within the MQTT OUT node as far as I can see.
