Noob issue, simple sonoff switch

i have a trouble to understand i guess the simplest task.

i make a button and i like to add a on off button to turn on and off a simple Sonoff Switch.

i like to know how to set up the trigger function, anyone that can point me in the direction ?
ive looked in to all tutorials on the page, or did i miss somthing there ?

thanx

This should help:

1 Like

Ahh thanx alot now i need to figure how to toggle the on off.

but now i know things are working :slight_smile: thanx alot