Node-RED DESS implementation issues with 15 minute pricing

I am no longer using the Node-RED DESS node, but a replacement using the VRM API node and some code stolen from the Node-RED DESS node. (as posted here)

This code will not yet work with 15 minute prices but I can adapt it as soon as the VRM api node returns the 15 minute schedules

Dynamic ESS mode 4 is “Node-red” 1 is auto (VRM) and 0 is off

[
    {
        "id": "db2675c26af8189a",
        "type": "inject",
        "z": "2bf3db9bfca4f392",
        "g": "c018435c26989974",
        "name": "Enable Dynamic ESS (mode: Node-RED)",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "4",
        "payloadType": "num",
        "x": 250,
        "y": 60,
        "wires": [
            [
                "9f355ad0aef74e42"
            ]
        ]
    },
    {
        "id": "b2649c3356beac4c",
        "type": "inject",
        "z": "2bf3db9bfca4f392",
        "g": "c018435c26989974",
        "name": "Disable Dynamic ESS (mode: auto)",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 230,
        "y": 100,
        "wires": [
            [
                "9f355ad0aef74e42"
            ]
        ]
    },
    {
        "id": "21a412f9205b4ad6",
        "type": "inject",
        "z": "2bf3db9bfca4f392",
        "g": "c018435c26989974",
        "name": "Disable Dynamic ESS (mode: off)",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 220,
        "y": 140,
        "wires": [
            [
                "9f355ad0aef74e42"
            ]
        ]
    },
    {
        "id": "9f355ad0aef74e42",
        "type": "victron-output-custom",
        "z": "2bf3db9bfca4f392",
        "g": "c018435c26989974",
        "service": "com.victronenergy.settings",
        "path": "/Settings/DynamicEss/Mode",
        "serviceObj": {
            "service": "com.victronenergy.settings",
            "name": "com.victronenergy.settings"
        },
        "pathObj": {
            "path": "/Settings/DynamicEss/Mode",
            "name": "/Settings/DynamicEss/Mode",
            "type": "number"
        },
        "name": "Dynamic ESS mode",
        "onlyChanges": false,
        "x": 630,
        "y": 60,
        "wires": []
    }
]