hi
i have this flow:
[
{
"id": "9d5dc986aaaa790c",
"type": "tab",
"label": "serial_write",
"disabled": false,
"info": "created by mohammed shady",
"env": []
},
{
"id": "3a6615a17593dfc5",
"type": "serial out",
"z": "9d5dc986aaaa790c",
"name": "",
"serial": "ac94254a.4b61b",
"x": 450,
"y": 180,
"wires": []
},
{
"id": "35d9e03a995d8186",
"type": "inject",
"z": "9d5dc986aaaa790c",
"name": "LED_off",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 90,
"y": 180,
"wires": [
[
"85ddb787f071df1d"
]
]
},
{
"id": "b289624b7b81c0a5",
"type": "debug",
"z": "9d5dc986aaaa790c",
"name": "debug 8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 460,
"y": 260,
"wires": []
},
{
"id": "85ddb787f071df1d",
"type": "ui_switch",
"z": "9d5dc986aaaa790c",
"name": "",
"label": "Digital on off",
"tooltip": "",
"group": "46b634bd0a3d172c",
"order": 0,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "1",
"onvalueType": "num",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "num",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 250,
"y": 180,
"wires": [
[
"b289624b7b81c0a5",
"3a6615a17593dfc5"
]
]
},
{
"id": "ac94254a.4b61b",
"type": "serial-port",
"name": "",
"serialport": "COM9",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "2",
"waitfor": "",
"newline": "3",
"bin": "bin",
"out": "time",
"addchar": "false",
"responsetimeout": ""
},
{
"id": "46b634bd0a3d172c",
"type": "ui_group",
"name": "LED",
"tab": "ad9bb8f4ccb825a8",
"order": 2,
"disp": true,
"width": "2",
"collapse": false,
"className": ""
},
{
"id": "ad9bb8f4ccb825a8",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
I do not need to use the inject node manually but I need to be 0 automatically at startup.