The following flow includes the basics…note I’ve got a couple of other features of the virtual device turned on because I’m using it to track other values not included in this flow.
I suspect when copying and pasting you may need to replace my solar charger node with your own fresh local one and there may be similar issues with the virtual device but see what happens.
[
{
"id": "9c0cc40bbd23f598",
"type": "victron-input-solarcharger",
"z": "aa940e18d5486a09",
"service": "com.victronenergy.solarcharger/0",
"path": "/MppOperationMode",
"serviceObj": {
"service": "com.victronenergy.solarcharger/0",
"name": "120 Solar Charger 1",
"communityTag": "solarcharger"
},
"pathObj": {
"path": "/MppOperationMode",
"type": "enum",
"name": "MPP operation mode",
"enum": {
"0": "Off",
"1": "Voltage or current limited",
"2": "MPPT Tracker active",
"255": "Not available"
}
},
"initial": "",
"name": "SCC MPP Mode",
"onlyChanges": true,
"outputs": 1,
"conditionalMode": false,
"outputTrue": "",
"outputFalse": "",
"debounce": "",
"x": 1560,
"y": 180,
"wires": [
[
"728741c6a4e93418"
]
]
},
{
"id": "728741c6a4e93418",
"type": "change",
"z": "aa940e18d5486a09",
"name": "RecordRawMPPMode",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{\"/Temperature\":payload}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1220,
"y": 360,
"wires": [
[
"65b440d3c5f85adb"
]
]
},
{
"id": "65b440d3c5f85adb",
"type": "victron-virtual",
"z": "aa940e18d5486a09",
"name": "MPPMode",
"outputs": 1,
"device": "temperature",
"default_values": true,
"acload_nrofphases": 1,
"enable_s2support": false,
"battery_capacity": 25,
"include_battery_temperature": false,
"battery_voltage_preset": "24",
"battery_voltage_custom": 24,
"generator_type": "ac",
"generator_nrofphases": 1,
"include_engine_hours": false,
"include_starter_voltage": false,
"include_history_energy": false,
"grid_nrofphases": 1,
"include_motor_temp": false,
"include_controller_temp": false,
"include_coolant_temp": false,
"include_motor_rpm": true,
"include_motor_direction": true,
"position": 0,
"pvinverter_nrofphases": 1,
"switch_1_type": 1,
"switch_1_min": 0,
"switch_1_max": "",
"switch_1_initial": 0,
"switch_1_label": "",
"switch_1_unit": "",
"switch_1_step": 1,
"switch_1_customname": "",
"switch_1_group": "",
"switch_1_include_measurement": false,
"switch_1_rgb_color_wheel": false,
"switch_1_cct_wheel": false,
"switch_1_rgb_white_dimmer": false,
"fluid_type": 0,
"include_tank_battery": false,
"include_tank_temperature": false,
"tank_battery_voltage": 3.3,
"tank_capacity": 0.2,
"temperature_type": 2,
"include_humidity": true,
"include_pressure": true,
"include_temp_battery": false,
"temp_battery_voltage": 3.3,
"x": 1450,
"y": 400,
"wires": [
[
"6463c35b177a3ff2"
]
]
},
{
"id": "6463c35b177a3ff2",
"type": "debug",
"z": "aa940e18d5486a09",
"name": "debugMPPMode",
"active": true,
"tosidebar": false,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1690,
"y": 380,
"wires": []
},
{
"id": "dbbbaacc8926f599",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.64"
}
}
]