Hi I've been using the Nodered plugin in Hassio for a while works great I have quite a few flows running.
I would like to log MQTT payloads to a file.
To test I send a simple timestamp to the File Node.
(Standard File Node node-red0.20.3)
No errors are reported but the file is not created or if I manually create it, it is not written to.
The Directory exists on the Pi. I monitor it using Filezilla.
HassOS 2.8 shows I have Version Nodered 2.0.2 installed . Also says 4.01 while available is not compatible with my system so I can't update at this point.
If I try and enter an invalid file path in the File Node I get an error message saying directory doesn't exist and it does not complain when I use the correct path so seems it can see the file location.
Does anyone have a suggestion on what I could try.
Simple Flow is shown below.
[{"id":"3a9d656f.069eba","type":"tab","label":"Flow 7","disabled":false,"info":""},{"id":"1b4074a1.95467b","type":"debug","z":"3a9d656f.069eba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":906.017333984375,"y":424.0104064941406,"wires":},{"id":"9bd99b74.6d5b08","type":"file","z":"3a9d656f.069eba","name":"","filename":"/home/pi/logs/sonoffevents.log","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":630.5141296386719,"y":428.9999113082886,"wires":[["1b4074a1.95467b"]]},{"id":"ae786a5e.151358","type":"inject","z":"3a9d656f.069eba","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":356.07666778564453,"y":430.71162700653076,"wires":[["9bd99b74.6d5b08"]]}]