Skip to content

Power switch for track power? #331

Answered by FrightRisk
Budman1758 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. I'm not sure you understood the suggestion to use EX-RAIL or maybe we don't understand. Have you looked at the documentation? This sounds like what a mimic panel would do. Create a myAutomation.h file and upload the CS software again. Connect a button to pin 40

// toggle power when button is pressed.

SEQUENCE(1)
IF(40) // push-button pressed
AT(-40) // wait for button release
IF ??
POWERON
SET or LATCH ??
ELSE
POWEROFF
UNSET or UNLATCH ??
ENDIF
ENDIF

I'm on my phone so can't check this out, but maybe one of the other guys can fix my script and provide more info on what to use for a check and to toggle the state variable. You need the development release of the CS software to use the p…

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Budman1758
Comment options

@SweaterMichael
Comment options

Answer selected by Budman1758
Comment options

You must be logged in to vote
4 replies
@SweaterMichael
Comment options

@SweaterMichael
Comment options

@FrightRisk
Comment options

@SweaterMichael
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants