Introduction
Why am I getting into home automation, and why do I own a non-functional heater remote control device, is a very long story. Feel free to skip it, no important technical information will be revealed here.
A very long villain origins story
The story started several years ago. My parents own a family farmhouse in the countryside, which we now use as a holiday home. It gets quite chilly in there in winter, so they considered buying a system to turn the heaters on remotely and warm up the house before arriving for the winter holidays.
There is already a system in place: I have an uncle living nearby, so Mom texts him to turn the heaters on, and she brings him bottles of wine in return. It’s a very fine and reliable system, still running to this day.
Several years back, they tried to change the text-uncle-bring-wine system to something involving the Internet and fancy electronics. The country house does not have any fixed broadband Internet connection. We just go there and use our phones as cellular modems. I told them that it would be challenging to get Internet of Things things running with no Internet, because I already had that struggle. That was the end of the conversation… or so I thought.
Several months later, they went shopping, talked to a random sales assistant, bought five heater control modules for €80 each, brought them to the country house for family Christmas holidays, and asked me to install them. Apparently, those things should be easy for me since I am an engineer or something.
- Me: You are supposed to have an Internet router to install those, they rely on your home Wi-Fi.
- Dad: No, the sales assistant said it would work.
- Me: Did you tell the sales assistant the house had no fixed broadband, not even a 4G modem?
- Dad: Oh yeah yeah, he said it was OK, he said it would work.
- Me: Are you willing to buy a 4G modem and an Internet connection for the house?
- Mom: No, we can use our phones! It would be just for the heaters. We don’t want a subscription just for heaters.
- Dad: The sales assistant did not say we would need to pay a subscription for this… It’s supposed to be bundled with the modules or something. He said it would work. You just don’t want to understand this because you are too lazy.
Since Dad had asked so nicely, I tried to install the stuff anyway. I took a phone from the drawer where my mother keeps her old phones. It was fossilized under decades of bloatware applications. I installed LineageOS on it, then I set it in hotspot mode. I borrowed the SIM card from my own phone to test the system. Then I had to install the manufacturer’s application, create a user account, click the email link, log in to the app. Everything went as easily and smoothly as you can expect from this kind of procedure. It was a long, frustrating process, full of unrecoverable errors, and running on a cellular network that disconnected every time I moved a centimeter away from the one and only spot where cell reception works.

Home automation companies, I swear one day I will invent the Smart Guillotine, and you will have to complete the commissioning process from your own company’s app if you want to keep your head attached to your body.
Eventually, after this excruciatingly long process, I managed to connect one heater. The real fun was about to begin. The heater was heating, because it was winter time. And we decided to use the water boiler. Except that our electrical system is way undersized, so the circuit breaker tripped, and the heater, as well as its module, got power cycled. At reboot, the module never reconnected to the hotspot. It got back to commissioning, step one.
The parental authorities refused to upgrade the electrical installation, so I finally decided to declare that the whole thing could never possibly work.
“I am disappointed, I thought you would be better at your job.” – Dad
The whole thing got on my nerves a bit, so I took one of the modules, brought it home, dismembered it, published the teardown, and stashed it in a drawer.
But full revenge is a dish best served cold, especially when my uncle isn’t around to turn on the heaters.
After years and years of stashing, I received a message from someone who saw the teardown, and he pointed me to a forum full of people who really wished the device worked.
So I fired my Fluke, my magnifier and a Claude session and decided to reverse it all.
Board overview



The board consists of an AC/DC section connected directly to the mains. It generates 5V DC from the mains, which is stepped down to 3.3 V by a large LDO.
The main chip is an STM32, it comes with two companion chips, one for Wi-Fi, and one for Zigbee. It also has an SPI flash and an Apple MFI chip.
AC/DC and “fil pilote”
For the AC/DC section, Claude asked me to fill in a spreadsheet describing what was connected where. I did my homework with my Fluke multimeter, and it produced a schematic and an explanation of the circuit. The result looked pretty legitimate.
The board is connected to the heater through three terminals: neutral, live, and a special control wire called “fil pilote”, which translates as “pilot wire”. The pilot wire is a control protocol dedicated to French electrical heaters.
I had always known it existed, but had never realised that it wasn’t used abroad. World, meet “fil pilote”.

Pilot wire uses a “distorted” copy of the mains voltage to transmit six different commands: fully on aka “Comfort”, fully off, and four intermediate heating modes.
Each electrical heater embed its own temperature sensor, and its own local target temperature selection.
They often also come with a switch for selecting some of these modes. Mine has Comfort, Eco, Off, and a mystery mode, probably Hors-Gel. “Hors-Gel” is Frost Protection, it heats up to 7°C.

The heating modes are often found on standalone heater units. Turn the switch to Normal mode, turn the temperature selector to 22°C, it heats until its sensor reaches 22°C, and stops.
The sensor is usually integrated somewhere into the heater casing, so the temperature readings are very, very optimistic. After lots of trial and error, I found that setting this unit to around 35°C worked best for achieving a room temperature around 20°C. My boyfriend, on the other hand, decided that the right setting was 25°C, resulting in a room temperature of around -5°C.

The pilot wire makes it possible to control all the heaters throughout a home using a single wire. The idea is to connect all pilot wires to a master thermostat.
“Fil pilote” to wireless
In my case, the heater module adds the capability to control pilot wire with wireless connectivity.
The control circuit works as follows:




- The mains voltage passes through a voltage divider and a 3.3 V diode clamp, and goes to an STM32 ADC GPIO, which reads its polarity. It divides by 500, we get approximately 0.5 Vpeak.
- The mains voltage passes through a second voltage divider, another clamp, and goes to an STM32 interrupt input GPIO. This circuit detects the zero crossings. The divider (the sine wave signal is clamped so heavily that it looks like a square wave now).
- There’s a circuit with a triac and a triac controller, allowing a GPIO output to control whether the live voltage is transmitted to the pilot wire line or not.
- The pilot wire also connects to a voltage divider and a clamping circuit, allowing its voltage to be measured by a second STM32 ADC GPIO. It divides by 250, we get approximately 0.9 Vpeak.


Using these signals, the software can decide whether to send the positive half-cycle, the negative half-cycle, the full waveform, or nothing at all. It can also time the transmission to create the -1 and -2 modes.
The board’s ground and neutral are directly connected, meaning there is no galvanic isolation between primary and secondary circuits. There is no way to connect any wire or probes or anything to the module once it’s connected to mains, all communications have to be RF.
In the process, the manufacturer adds its own secret sauce: a login, an app, a dependency on the manufacturer, copies of private data sent to a third party cloud somewhere… everything we love about modern technologies. This is why we are moving on to changing the firmware to make it local-only.
Cooking a Zephyr firmware
Now the digital part. As with my previous reverse-engineering projects, I spent some quality time with a multimeter figuring out where each pin went. After an awful lot of beeps, I identified most of the signals: SWD testpoints, an UART TX testpoint (not the RX counterpart, sadly), the flash communication interface, the Wi-Fi module, the Zigbee module, and pilot wire GPIOs. I had Claude check them against the datasheet because off-by-one errors are easy to make.
The reset pin wasn’t available on any testpoint, which was super annoying. I started flashing firmware with a DuPont wire to short two pins together, but I did not want to keep doing that every time Claude asked me to. I eventually found a BOOT0 testpoint that allowed me to put the STM32 into bootloader mode, which is probably how they flashed the firmware at the factory.


Once I had identified all the pinouts and soldered all the wires, the software part was super easy. The machine had access to a debug probe, a UART TX connection, and my computer’s Wi-Fi and Bluetooth adapters. I simply asked it to create a Zephyr firmware, flash it, and test it. And it did.
The STM32 was in protection mode BB, which meant I had to nuke the firmware. I had the robots take care of it, but if you are curious about the manual steps to switch off protection mode BB, I detailed them here in a previous firmware nuking experience.
After that, I desoldered everything, put the board back in its casing for safety, and connected it to a real heater. Thanks to the Shell over BLE capability, I had a way to interact with the firmware. I could verify that it was able to detect zero crossings and transmit pilot wire signals.
Then I let it sit there for a while, to see if my heater would start doing weird things. Nothing weird happened, I now own a good open-source “fil pilote” to Bluetooth interface.
Thermostats are actually not so bad
I already had everything connected for my tests, so I asked the robots to set up Home Assistant. I reworked my CoffeeCaller Zigbee temperature sensor interface to integrate it with Home Assistant, and created a virtual thermostat with a Yaml file somehow. I can now set and program the room temperature precisely.

I hate domotics, I also hate IoT
The goal is to install the setup in a home with no Internet access, so the next step will be to get the IoT connectivity working. I have a Nordic Thingy with NB-IOT and LTE-M capabilities. My plan is to set up an MQTT broker using Mosquitto server, connect everything to the Thingy, and install an MQTT app.
Conclusion
Everything, including plenty of slop, is available in the GitHub repository: https://github.com/everedero/ignuvi
With the Great FR4 Shortage of 2027 already upon us, and LLM tokens still pretty much an open bar, these kinds of upcycling projects might become very trendy. Find yourself a nice board to hack and hop on the hype train!



