Hi,
TL;DR: ESPhome has platform: slow_pwm
, and I’m also looking at the same project
I suspect you have the Kudox electrical element wall controller as previously sold by Screwfix in the UK.
After fitting one, and finding the (E)
timed feature particuarly good for drying soggy cycling kit (Zwift), my intention was to reverse engineer and either:
- Add an ESP32 to connector
P3
powered from the capacitative dropper, monitor LED voltage status, and add button press simulations (e.g. tristate the output, drive high or low to simulate a button press, then tristate again).
- Use an ESP32 to monitor the single relay, and get an idea of the PWM thermal control used to set power levels - the relay can’t be being cycled that often or the contacts would fail even with a resistive load like a heater.
My photos of the PCB suggest a PIC micro is in control, but the relay is marked 48V which is a lot higher than most kit - could be a split rail PSU (e.g. 3V3 - 12V for the uP, and 48V with a mosfet for the relay). There’s also 17x transistors, which is a lot even with 5x + 3x LEDs + a relay - this suggests the relays are charlieplexed. This complexity meant I fitted the module first before building a test rig.
Unfortunately, Screwfix don’t seem to stock the unit currently which I found out when going to buy another for bench testing, whilst the one I have is in production (after proving a too useful to remove!).
For hardware, Shelly make several decent ESP32 modules for the UK with relays, as do Sonoff so if you do without a display, there’s not much to make (as long as the hardware is behind a sealed blanking plate as although likely outside BS7671 Zones 0-2, water ingress protection is still needed).
For software, Tasmota offers heating PWM, and I found ESPhome has platform: slow_pwm
- a heater can be seen as a very slow LED light and “dimmed” using similar PWM control just with one pulse every 10mins, rather than 2kHz!
You’ve prodded my memory to start looking at this project before winter arrives, with cold mornings.
My thought is to connect a 240V relay coil in parallel with the heater, and connect the dry contacts to an ESP and monitor the PWM output to see how the heater reacts. Looking at my parts bin, this is likely to be an Wemos D1 mini running from a recycled vape LiPo battery, battery shield, and ESPhome.
TTFN,
James