Amadeo's website

Smart thermostat lets you easily adjust heating schedule, turn the heat up when someone is in the room, and warm up the place ahead of coming back from a trip. The smart thermostat expects to be plugged into a 24V AC HVAC wiring.

I followed these instructions: Using an Ecobee Thermostat with a Millivolt Heating System

Main pieces

The gas stove uses a combination valve, which has a thermopile and thermocouple.

Thermopile

When heated by the pilot light, thermopile produces a sustained voltage that’s connected to thermostat. When thermostat is cold, it connects theat voltage to the valve, opening the flow of gas. It takes just a few millivolts to actuate the valve, and so the signal from the thermopile suffices to control the stove.

Thermocouple

In the combination valve, it shuts off the gas flow when no longer heated by the pilot light. It provides a layer of safety, so that the gas does not flow when there’s no flame to burn it.

Aside: If pilot light won’t stay on after lighting, most likely the thermocouple is broken. They have a lifespan of 20 years. You may get lucky cleaning it, but most likely you’ll need a new combination valve. These are standard components, don’t believe a company charging you through the roof for “manufacturer part” that needs to be “ordered”. Go with the tech who has the part in the truck.

Relay

For purposes of this note, a relay is a device which connects two wires when it detects a signal across two other wires. It’s triggered by the 24V AC signal that the thermostat sends to turn on heating. In this case, it completes the millivolt circuit and causes the voltage from the thermopile to open the flow of gas. I used RIBU1C Enclosed Pilot Relay, 10 Amp Spdt with 10-30 Vac/Dc/120 Vac Coil

Result

Ecobee learns the response of the heating system, and keeps it on for as little time as possible to maintain the temperature (blue line). It keeps the energy use low by not overshooting the target. Here, it lights the fire very briefly (orange highlight), enough to bring the room temperature above threshold (yellow line), a few minutes after turning off the fire. Heating chart