Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Sonoff Dual R2 offers control of 2 relays on one board. 


...

Hardware Preperation

This device uses the ESP8285 module which is different than the other SONOFF products. 

As always, you need to access the serial interface. The four serial pins (VCC, Rx, Tx, GND) are available at the short end of the PCB and can be seen on the left of the image above.

Revising the Tasmota config

Update the user_config.h 

Set the SWITCH_MODE to FOLLOW (other options are TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON, PUSHBUTTON_INV, PUSHBUTTONHOLD, PUSHBUTTONHOLD_INV or PUSHBUTTON_TOGGLE ).


// [SwitchMode] TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON, PUSHBUTTON_INV, PUSHBUTTONHOLD, PUSHBUTTONHOLD_INV or PUSHBUTTON_TOGGLE (the wall switch state)


Code Block


#define SWITCH_MODE            FOLLOW 






Flashing 

Entering Programming Mode

...

Flashing from the Arduino IDE

  • Startup the Arduino IDE
  • Open sonoff.ino
  • Update parameters in user_config.h. These will be the default values for SSID, etc.
  • Set Board Info


Setting the Switch Mode



Reference