├── firmware ├── README.md ├── blank.bin ├── boot_v1.7.bin ├── bootloader.zip ├── esp_init_data_default.bin ├── oem.v2088.bin ├── oem.v3190.bin └── oem.v3361.bin ├── mqtt-relay-overview.png ├── readme.md └── relay-schematic.png /firmware/README.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | # v3361 Oct 2019 4 | 5 | - Support for using custom NTP server 6 | - WPA Key extended to 64 characters 7 | - [See forum thread](https://community.openenergymonitor.org/t/use-custom-ntp-server-on-the-wifi-relay/12097/21) 8 | - Note: this version requires a "Full Flash" upload, see below 9 | 10 | # v3190 Oct 2017 11 | 12 | - Compile with SDK: 2.1.0(7106d38) fix [KRACK WPA vulnerability](https://www.krackattacks.com/). See [forum post](https://community.openenergymonitor.org/t/wifi-relay-krack/5384/7?u=glyn.hudson) 13 | 14 | # v2088 Mar 2016 15 | 16 | - Inital stable release 17 | 18 | *** 19 | 20 | # Upgrade Firmware 21 | 22 | - Via web interface 23 | 24 | - Or via serial: 25 | 26 | `esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_freq 80m --flash_mode qio --flash_size 16m-c1 0x1000 XXXX.bin` 27 | 28 | **To flash via serial USB:** Firstly disconnect the USB to power off. Then hold down the push button on the board and reconnect the USB, while still holding the button run the esptool commands shown on this page. Keep holding the button until esptool has completed flashing the firmware. 29 | 30 | ## Full Erase & Flash 31 | 32 | ``` 33 | esptool.py --port /dev/ttyUSB0 --baud 230400 write_flash --flash_freq 40m --flash_mode qio --flash_size 16m-c1 0x00000 blank.bin 0x01000 blank.bin 0x7C000 esp_init_data_default.bin 0x7D000 blank.bin 0x7E000 blank.bin 0x7F000 blank.bin 0x80000 blank.bin 0xFE000 blank.bin 0xFC000 blank.bin 0x100000 blank.bin 0x101000 blank.bin 0x1FC000 esp_init_data_default.bin 0x1FD000 blank.bin 0x1FE000 blank.bin 0x1FF000 blank.bin 34 | ``` 35 | 36 | 37 | Then upload the new firmware: 38 | 39 | ``` 40 | esptool.py --port /dev/ttyUSB0 --baud 230400 write_flash --flash_freq 40m --flash_mode qio --flash_size 16m-c1 0x000000 "boot_v1.7.bin" 0x001000 oem.v3361.bin 41 | ``` 42 | -------------------------------------------------------------------------------- /firmware/blank.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/blank.bin -------------------------------------------------------------------------------- /firmware/boot_v1.7.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/boot_v1.7.bin -------------------------------------------------------------------------------- /firmware/bootloader.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/bootloader.zip -------------------------------------------------------------------------------- /firmware/esp_init_data_default.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/esp_init_data_default.bin -------------------------------------------------------------------------------- /firmware/oem.v2088.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/oem.v2088.bin -------------------------------------------------------------------------------- /firmware/oem.v3190.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/oem.v3190.bin -------------------------------------------------------------------------------- /firmware/oem.v3361.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/firmware/oem.v3361.bin -------------------------------------------------------------------------------- /mqtt-relay-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/mqtt-relay-overview.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## WiFi ESP8266 MQTT Relay: Single Channel 2 | 3 | This repo contains the production compiled firmware, bootloader and schematic for the single-channel Wifi relay sold via the OpenEnergyMonitor shop. 4 | 5 | ## Shop Item 6 | 7 | http://shop.openenergymonitor.com/wifi-mqtt-relay-thermostat/ 8 | 9 | ## User Guide Docs 10 | 11 | https://guide.openenergymonitor.org/integrations/mqtt-relay/ 12 | 13 | ![](mqtt-relay-overview.png) 14 | 15 | ![](relay-schematic.png) 16 | 17 | *** 18 | 19 | *Unfortnatly the source code and CAD design is not available for this unit. However the unit is very similar to the open-source [Three Channel MQTT Relay](https://github.com/mharizanov/ESP8266_Relay_Board) that we have [adapted to work in single channel mode](https://github.com/openenergymonitor/ESP8266_Relay_Board).* 20 | -------------------------------------------------------------------------------- /relay-schematic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openenergymonitor/mqtt-wifi-mqtt-single-channel-relay/b71ea4eba87819672659c8d8cd34fe18c1096286/relay-schematic.png --------------------------------------------------------------------------------