This is the Json I imported (and changed to the right nodes)
[
{
“id”: “alarm_toggle_flow”,
“type”: “tab”,
“label”: “Alarm Lamp Toggle”,
“disabled”: false,
“info”: “”
},
{
“id”: “alarm_input”,
“type”: “victron-input-digitalinput”,
“z”: “alarm_toggle_flow”,
“service”: “com.victronenergy.digitalinput.input_01”,
“path”: “/Count”,
“name”: “Alarm Pulse Input”,
“x”: 150,
“y”: 120,
“wires”: [[“filter_pulse”]]
},
{
“id”: “filter_pulse”,
“type”: “rbe”,
“z”: “alarm_toggle_flow”,
“name”: “Alleen bij nieuwe puls”,
“func”: “rbe”,
“gap”: “”,
“start”: “”,
“inloop”: “false”,
“septonic”: false,
“x”: 380,
“y”: 120,
“wires”: [[“toggle_logic”]]
},
{
“id”: “toggle_logic”,
“type”: “function”,
“z”: “alarm_toggle_flow”,
“name”: “Toggle 0% / 100%”,
“func”: “let lightStatus = context.get(‘lightStatus’) || 0;\n\n// Als de lamp uit is (0), zet hem op 100. Anders op 0.\nif (lightStatus === 0) {\n lightStatus = 100;\n} else {\n lightStatus = 0;\n}\n\ncontext.set(‘lightStatus’, lightStatus);\nmsg.payload = lightStatus;\nreturn msg;”,
“outputs”: 1,
“noerr”: 0,
“initialize”: “”,
“finalize”: “”,
“libs”: ,
“x”: 610,
“y”: 120,
“wires”: [[“lamp_output”]]
},
{
“id”: “lamp_output”,
“type”: “victron-output-pwm”,
“z”: “alarm_toggle_flow”,
“service”: “com.victronenergy.pwm.output_01”,
“path”: “/Level”,
“name”: “GX Lamp Output”,
“x”: 820,
“y”: 120,
“wires”:
}
]