Virtual switch basic slider path changed?

I created a basic slider last week-end with a control loop on a node-red slider. It worked until after multiple reboot of the cerbo (to debug another problem) the path in dbus seems to have changed from “/SwitchableOutput/output_1/Value” as indicated in the doc to “SwitchableOutput/output_1/Dimming”.

[
    {
        "id": "063b59405b5c5008",
        "type": "tab",
        "label": "Flux 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "c0c7105a96bef62a",
        "type": "ui_slider",
        "z": "063b59405b5c5008",
        "name": "",
        "label": "Max charge",
        "tooltip": "",
        "group": "f0d944440512ba91",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": true,
        "outs": "end",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "120",
        "step": 1,
        "className": "",
        "x": 190,
        "y": 60,
        "wires": [
            [
                "d5588257e617819f",
                "50397b23c8b21b1e"
            ]
        ]
    },
    {
        "id": "d5588257e617819f",
        "type": "function",
        "z": "063b59405b5c5008",
        "name": "State to JSON",
        "func": "msg.payload = { \"/SwitchableOutput/output_1/Value\": msg.payload };\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 380,
        "y": 60,
        "wires": [
            [
                "e279d3343a5ca649",
                "c6e62db2fe2f4944"
            ]
        ]
    },
    {
        "id": "e279d3343a5ca649",
        "type": "victron-virtual-switch",
        "z": "063b59405b5c5008",
        "name": "",
        "outputs": 2,
        "switch_1_type": "7",
        "switch_1_min": "0",
        "switch_1_max": "120",
        "switch_1_initial": 0,
        "switch_1_label": "",
        "switch_1_unit": "A",
        "switch_1_step": 1,
        "switch_1_customname": "Max charge",
        "switch_1_group": "AC",
        "switch_1_include_measurement": false,
        "switch_1_rgb_color_wheel": false,
        "switch_1_cct_wheel": false,
        "switch_1_rgb_white_dimmer": false,
        "x": 580,
        "y": 60,
        "wires": [
            [
                "3433229a708a88fa"
            ],
            [
                "c0c7105a96bef62a",
                "c210ebd486efc5ec"
            ]
        ]
    },
    {
        "id": "50397b23c8b21b1e",
        "type": "debug",
        "z": "063b59405b5c5008",
        "name": "debug ui out",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 370,
        "y": 160,
        "wires": []
    },
    {
        "id": "c6e62db2fe2f4944",
        "type": "debug",
        "z": "063b59405b5c5008",
        "name": "debug fct out",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 550,
        "y": 140,
        "wires": []
    },
    {
        "id": "c210ebd486efc5ec",
        "type": "debug",
        "z": "063b59405b5c5008",
        "name": "debug vs out",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 766,
        "y": 127.0999984741211,
        "wires": []
    },
    {
        "id": "3433229a708a88fa",
        "type": "debug",
        "z": "063b59405b5c5008",
        "name": "debug vs passthrough",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 800,
        "y": 40,
        "wires": []
    },
    {
        "id": "f0d944440512ba91",
        "type": "ui_group",
        "name": "Default",
        "tab": "79e08d895c0a1d45",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "79e08d895c0a1d45",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "eba3a68b03975d55",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-dashboard": "3.6.2",
            "@victronenergy/node-red-contrib-victron": "1.6.60"
        }
    }
]

Online doc :

Message d’erreur :

Contenu dbus :

doc

Thank you for your findings Nicholas.

I too have been battling with getting a slider to behave to Value and Max as presented in the online help.

These are very much wrong, and now need to be Dimming and DimmingMax.
Documentation is always the “unwanted chore” but yes, it would be nice to have it corrected ASAP.

On a related matter, I’d rather the slider as a pure indicator, not accepting user input.
Is there any way to make it so it is purely for status reporting?

I cannot seem to find anything suggesting such a mode…

Ray

The indicator functions are still under development. Meanwhile you can use

  • /SwitchableOutput/output_1/Status — Bitmask: 0x00=Off, 0x09=On, 0x01=Powered, 0x02=Tripped, 0x04=Over temperature, 0x08=Output fault, 0x10=Short fault, 0x20=Disabled, 0x40=Bypassed, 0x80=Ext. control.

So setting it to 0x20 disables the controlling and basically mimics just an indicator.