Category: Advanced Configuration
I did try one-shot but couldn't get it to work. So I then tried timedelay and nearly have it working
# Input and output configuration
net button-press <= hm2_7i95.0.inmux.00.input-05 # Connect input pin 5 to signal button-press
net relay-1-control => hm2_7i95.0.ssr.00.out-01 # Connect signal relay-1-control to relay output 1
net relay-2-control => hm2_7i95.0.ssr.00.out-03 # Connect signal relay-2-control to relay output 3
# Load and configure timedelay
loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 1.0 # 1-second delay
setp timedelay.0.off-delay 0.0 # No off delay
# Timedelay connections
net button-press => timedelay.0.in # Link button-press signal to timedelay input
net relay-1-control <= timedelay.0.out # Link timedelay output to relay-1-control
# Direct button connection to second relay
net relay-2-control <= button-press # Relay 2 activates directly with button press
Problem I'm having is I'm getting the error pin button-press does not exist. Any ideas?