Skip to content

How to have either of the Relay default to turn on after power up? #770

Closed Answered by edwardtfn
rleongcs asked this question in Q&A
Discussion options

You must be logged in to vote

You will have to use in advanced mode, for which you will find some instructions on Wiki.

But basically, copy the full content of the file nspanel_esphome.yaml and paste replacing your currently esphome yaml, then fix the substitutions in the beginning of the file (wifi credentials, device name, TFT url, etc) and look for the switch area of that file, where you will find one entry for relay_1 and one for relay_2. Those have restore_mode: RESTORE_DEFAULT_OFF, which you can change to restore_mode: ALWAYS_ON. Then you install that into your panel.

https://esphome.io/components/switch/index.html

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rleongcs
Comment options

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

@rleongcs
Comment options

@deejaybeam
Comment options

@rleongcs
Comment options

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
@edwardtfn
Comment options

@bennydiamond
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants