System information:
Node-RED v4.0.8
Node.js v20.18.2
Linux 6.6.51+rpt-rpi-v8 arm64 LE
Debian GNU/Linux 12 (bookworm)
The sensor is a Guardline.
I am using GPIO 27 (pin 13), 17 (pin 11), 22 (pin 15), 23 (pin 16). Also tried 18 (pin 12).
Also, the setup will work for at least 1 of the other 3 pins. The sensors connected to GPIO 22 pin 15 turned on its corresponding light.
@Colin
If I disconnect the wire, the GPIO input acts the same. It momentarily goes green, then goes yellow with 'ok'.
Pic of the page with all 4 flows
zone3 is the one that is not working. The other 3 work.
System graphic:
I copied the subflow that has the trouble pin onto another flow tab. I can post everything on the full tab, but there is some work in progress - none that is related to the trouble GPIO (no GPIO nodes anywhere else.
[
{
"id": "9306ae3430374912",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6a7d692f8b46c4d6",
"type": "time-range-switch",
"z": "9306ae3430374912",
"name": "Dark hours only",
"lat": "34.829073",
"lon": "-82.333088",
"startTime": "sunsetStart",
"endTime": "sunrise",
"startOffset": 0,
"endOffset": 0,
"x": 440,
"y": 160,
"wires": [
[
"0c6ed4261dc5b054"
],
[]
]
},
{
"id": "ab811ad1bbde8892",
"type": "switch",
"z": "9306ae3430374912",
"name": "If motion",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 260,
"y": 160,
"wires": [
[
"6a7d692f8b46c4d6"
]
]
},
{
"id": "0c6ed4261dc5b054",
"type": "trigger",
"z": "9306ae3430374912",
"name": "Motion No-motion",
"op1": "on",
"op2": "off",
"op1type": "str",
"op2type": "str",
"duration": "2",
"extend": true,
"overrideDelay": true,
"units": "min",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 690,
"y": 160,
"wires": [
[
"2a88ef66466af4a2"
]
]
},
{
"id": "71f10fbaf7f54942",
"type": "rpi-gpio in",
"z": "9306ae3430374912",
"name": "zone3",
"pin": "23",
"intype": "tri",
"debounce": "25",
"read": false,
"bcm": true,
"x": 90,
"y": 160,
"wires": [
[
"ab811ad1bbde8892"
]
]
},
{
"id": "2a88ef66466af4a2",
"type": "debug",
"z": "9306ae3430374912",
"name": "to mqtt node",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 930,
"y": 160,
"wires": []
}
]