I was trying to start my well pump from ESP home. I inserted a start stop switch in home assistant & in hardware added two relays. One is for start & another is for stop as my well pump has a starter.
Now I need help to design a template which will have a single button which clicked will start motor & state should be shown. (ON/OFF). & clicking on same it should get turned off. A current clamp meter will be installed at one phase of pump which can be taken as input in esp wemos d1 mini.
You obviously missed the bit in “how to ask a good question” about formatting posts. Read point 11 and edit your post to enclose your yaml in “Preformatted text” tags. They look like </> on the posting toolbar.