zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write File node not writing since update

iendicott opened this issue · comments

Configuration

    {
        "id": "d6f034323c99b7fd",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "259ae008487bf36d",
        "type": "file",
        "z": "d6f034323c99b7fd",
        "name": "Write file in HA to /config/www/peugeot_charger.txt",
        "filename": "/config/www/test.txt",
        "filenameType": "str",
        "appendNewline": true,
        "createDir": false,
        "overwriteFile": "false",
        "encoding": "none",
        "x": 870,
        "y": 360,
        "wires": [
            [
                "97089bab9f9bcccd"
            ]
        ]
    },
    {
        "id": "4282f5bcf44a48de",
        "type": "inject",
        "z": "d6f034323c99b7fd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 540,
        "y": 340,
        "wires": [
            [
                "259ae008487bf36d"
            ]
        ]
    },
    {
        "id": "97089bab9f9bcccd",
        "type": "debug",
        "z": "d6f034323c99b7fd",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1180,
        "y": 360,
        "wires": []
    }
]

Describe the bug

Before ver 3.1.1 the file was written to the /config/www/ folder in Home Assistant and has been working solidily for a while now.

Debug log

"failed to write to file: Error: ENOENT: no such file or directory, open '/config/www/test.txt'"

Text

Hi,

Not sure what has changed since the last update but I am finding the following has stopped working.
I am using a simple write file node to my webserver directory in Home Assistant
The version of node red is 3.1.1

The fact the file wasn't there before wasn't an issue, so not sure what has change to stop this working now?

Regards

This has nothing to do with this package but changes to the hassio addon.

For more information
https://community.home-assistant.io/t/why-can-t-i-output-files-to-config-www-with-write-file-node-anymore/643629

Thanks for the update.