Hi
i wan´t to toggle input from Raspi and convert this to msg.reset. with my toggle inject it works, what i am doing wrong?
[
{
"id": "5542a8a0.2ca958",
"type": "tab",
"label": "Flow 4",
"disabled": false,
"info": ""
},
{
"id": "f72b7fba427a9063",
"type": "debug",
"z": "5542a8a0.2ca958",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "reset",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 980,
"y": 180,
"wires":
},
{
"id": "da8ccfee81eca535",
"type": "rpi-gpio in",
"z": "5542a8a0.2ca958",
"name": "",
"pin": "27",
"intype": "up",
"debounce": "25",
"read": false,
"bcm": true,
"x": 260,
"y": 180,
"wires": [
[
"a0ab2fb7ef09f749"
]
]
},
{
"id": "a0ab2fb7ef09f749",
"type": "toggle",
"z": "5542a8a0.2ca958",
"name": "",
"onOffTopic": "",
"onValue": "reset",
"onType": "str",
"offValue": "reset",
"offType": "str",
"toggleTopic": "",
"toggleValue": "true",
"toggleType": "bool",
"passOnOff": "",
"x": 470,
"y": 180,
"wires": [
[
"cb77bffed11082a8"
]
]
},
{
"id": "cb77bffed11082a8",
"type": "change",
"z": "5542a8a0.2ca958",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "reset",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 180,
"wires": [
[
"f72b7fba427a9063"
]
]
},
{
"id": "fa5eabcfaf8d407c",
"type": "inject",
"z": "5542a8a0.2ca958",
"name": "toggle",
"props": [
{
"p": "reset",
"v": "reset",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 270,
"y": 340,
"wires": [
[
"f72b7fba427a9063"
]
]
}
]