I’ve been working on converting an old BlitzWolf SHP7 dual-socket smart plug, originally flashed with Tasmota and now from Tasmota to ESPHome, giving me more flexibility in how I control it through Home Assistant.
The point of this project was not all about the SHP7 but as I had this handy – a device using a pretty minimal ESP8285 (8266 with 1MB of built-in flash), in order to investigate how easy and/or worthwhile it would be to convert Tasmota devices in general over to ESPHome – but I got carried away…
The SHP7 is a useful device, with two independently controlled sockets and built-in energy monitoring – it’s only downside originally was the Blitzwolf APP which I’ve long since abandoned. With Tasmota, I gained local control without any special app but limited to a maximum of 2 WiFi access points – originally not a problem but then I moved to a home with several long, winding corridors (and I don’t like powerline adaptors). With ESPHome, I can easily integrate both sockets directly into Home Assistant and add some extra functionality including multiple WiFi SSIDs.
ESPHome Features
The configuration includes:
- Independent control of both sockets
- Voltage, current, power and energy monitoring
- Configurable power-on behaviour
- Automatic timers and timeouts for each socket
- Physical button control
- ESPHome Web Server v3
- Home Assistant integration
- Wi-Fi signal and uptime diagnostics
- Custom webUI colours including background
AND ALL OF THIS IN AN OLD ESP8285 which has a mere 1MB of built in flash. It never occurred to me for a second that I’d be able to replace Tasmota with ESPHome on such an old device – but I tried – and sure enough – I’ve only used half the RAM up to now and half the FLASH.
I’ve also added a webUI reboot button, which provides a short sequence of status LED flashes before restarting the device.
Configuration and Downloads
Rather than including the complete YAML configuration, CSS stylesheet and CSS javascript in this article, I’ve made them available in a GitHub repository for anyone interested in experimenting. See link below.
The repository contains the ESPHome configuration, the optional (limited for now) WebUI background stylesheet – and setup instructions.
BlitzWolf SHP7 ESPHome Project – GitHub
The repository contains:
shp7.yaml– ESPHome firmware configurationshp7_custom_styles.css– Custom WebUI background and main text stylingshp7_custom_styles.js– All other custom stylesREADME.md– Installation instructions and project details
Important: This configuration is intended for an SHP7 that has already been converted to Tasmota. It does not cover the initial conversion from the original factory firmware to Tasmota.
The CSS stylesheet is optional and changes the WebUI page background colour and main text colour. The internal ESPHome controls are customised using the .js file. This took a LOT of doing – if you want just standard colours etc., leave these two files out and miss their references out from the main shp7.yaml file (web server section). I added these two as it was a challenge to change colours and borders etc.
I started with the Tasmota’d SHP7. The actual conversion from native Blitzwolf firmware to Tasmota was done several years ago – 2020 to be exact and discussed here using a long-defunct method called Tuya-convert. Before attempting the new conversion from Tasmota to ESPHome, I made sure that the SHP7 was running a recent version of Tasmota – in this case version 14 (updated via Tasmota’s easy-to-use OTA update mechanism.
I compiled the new ESPHome code and instead of trying to flash it, I used the option in ESPHome to download the created binary fine (.bin) to my PC. I then used 7-Zip on my PC to compress that into a .gzip file without which it likely would not have worked. I then, using the Tasmota webUI went to the firmware upgrade section – local file – and flashed the newly created shp7-firmware.bin.gz onto the SHP7.
That’s not QUITE what happened as I initially compiled simpler code without a webUI – thinking I’d better keep the project small because it had to fit into an ESP8285 – of course this meant I had no easy way to check if it was working – but then, on checking the size of the .bin file created BEFORE the GZIP compression with 7-Zip, I realised that my new ESPHome code was using far less than half of both RAM and FLASH, at which point I added an ESPHome webUI to the code (initially a simple 3 lines with the basic controls only) then ultimately what you’ll read about in here and see in the webUI image at the bottom of this blog entry.
The code as it stands right now is still only using around half of the chip’s capacity and I can’t think of any relevant-to-a-smartplug Tasmota features I’ve left out. I’m sure as time goes on I’ll feel the need to expand the capabilities of this ESPHome firmware to fully utilise the available RAM and FLASH (just because I can) but for now there is lots to long-term-test with the current code.
Conclusion
This project gives the old BlitzWolf SHP7 a useful ESPHome (local control) configuration with independent socket control, energy monitoring, 24-timers (one per output), automatic shut-off timer, overall overload/under-voltage protection – and importantly (for me) I’ve added a network list to handle more than 2 SSIDs (my house is a really awkward shape – much of it built deep into the side of a sedimentary rock cave here in rural southern Spain).
As with any mains-powered device, take care when flashing firmware and ensure the plug is used within its electrical ratings – these kind of devices often claim a maximum wattage when driving a non-inductive load (but manufacturers often fail to mention that they ARE referring to non-inductive loads in their specs). For any but the simplest resistive load, I like to stay a fair margin below the claimed maximum.
I’ve used similarly-rated smartplugs (3840w in the case of the SHP7) with hot water heaters and tumble driers rated at 2KW or more without any overheating issues but don’t take that as an endorsement and note here that I’m using these in EU areas where household power is 220v-240v, not 110v.
See the webUI image below for more … and see the Github code (link above) – there is a numerical value near the top of the YAML code called voltage_div which can be altered if needed to calibrate the voltage reading capability of the SHP7.
Note that settable values such as timers, timeouts, power limits, and power-on behavior are non-volatile. The webUI is attached to the IP address of the SHP7 and is viewed by accessing the device in a web browser – like any normal web page on port 80.

