Controlling Relay

Hi all,

I'm really new to node-red and I've been playing around with it for a couple of weeks. I'm trying to use the light scheduler to turn a relay channel on and off but I find that whatever is sent to the raspberry Pi GPIO pin connected to the relay channel (0,1 or nothing) the relay channel will remain on for as long as the GPIO pin output is on the flow.

I've also tried to inject 0 or 1 with no difference. Any thoughts on what I could try.

Thank you so much for the help.

Post the terminal log when you start node red and post a small flow with the inject and gpio node.

Terminal log:

Starting as a systemd service.
Started Node-RED graphical event wiring tool.
14 Jul 00:38:28 - [info]
Welcome to Node-RED
14 Jul 00:38:28 - [info] Node-RED version: v0.20.7
14 Jul 00:38:28 - [info] Node.js  version: v8.11.1
14 Jul 00:38:28 - [info] Linux 4.19.57-v7+ arm LE
14 Jul 00:38:37 - [info] Loading palette nodes
14 Jul 00:38:54 - [info] Settings file  : /home/pi/.node-red/settings.js
14 Jul 00:38:54 - [info] Context store  : 'default' [module=memory]
14 Jul 00:38:54 - [info] User directory : /home/pi/.node-red
14 Jul 00:38:54 - [warn] Projects disabled : editorTheme.projects.enabled=false
14 Jul 00:38:54 - [info] Flows file     : /home/pi/.node-red/flows_raspberrypi.json
14 Jul 00:38:54 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
14 Jul 00:38:54 - [info] Starting flows
14 Jul 00:38:54 - [info] Started flows
14 Jul 00:38:54 - [info] Server now running at

[{"id":"1f89d4db.776aeb","type":"rpi-gpio out","z":"fba85.43f8a57b8","name":"Light A","pin":"35","set":"","level":"0","freq":"","out":"out","x":310,"y":140,"wires":}]

Please see this post on how to share a flow, however I can see that you have not included inject nodes to exercise the output.
Also check in the terminal whether any error is shown when you exercise the output.