This is an old revision of the document!
JR-TM05S Water Supply Timer
based on ESP8285 which is 100% compatible with ESP8266 but has more memory
Pin header next to the button is used to re-program. the pinout is as follows (from pin closest to the outside edge of the board towards the inside of the board): 1.) GND 2.) TX 3.) RX 4.) 3.3V
connect those 4 to a programmer, no additional power supply is needed
press the button on the device while you plug-in the usb programmer, this will start the programming mode
install esptool.py
pip3 install esptool
make a backup of original firmware esptool.py -p /dev/ttyUSB0 read_flash 0x00000 0x100000 JR-TM05S.bin re-start programming mode and erase the flash
esptool.py -p /dev/ttyUSB0 erase_flash
re-start the programming mode again and flash the tasmota binary from the latest release
esptool.py -p /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 ../Downloads/tasmota.bin
unplug and power back on using the power cable that came with the unit, take your cellphone and connect to the tasmotaxyz wifi to configure tasmota