This is a simple controller for a gas fireplace with a low voltage DC wall switch.
The controller uses a Wemos D1 mini Lite with a Wemos Relay Shield. The Relay Shield is wired in parallel with the wall switch so that either can turn on the fireplace. Note that this means if one is on, the other switch cannot turn it off.
![Fireplace controller web UI](/doc/images/web-ui.png?raw=true =100px)
The project should work with the Arduino IDE or Platformio.
- Clone the repository
git clone
- Copy
src/config.h-example
tosrc/config.h
and edit it.
- Set
WIFI_SSID
andWIFI_PASSWORD
to the name and password for the wifi network that the controller will connect to - Set
MDNS_NAME
to the name you'd like to use for web access - I recommendfireplace
, which will let you browse tohttp://fireplace.local
- If you want to use IFTTT, set
IFTTT_EVENT_NAME
andIFTTT_API_KEY
to appropriate values. If you don't want to use IFTTT then delete the#define
lines for them.
- Connect your Wemos D1 mini Lite board to your computer using a USB cable and:
- if you're using Platformio run
platformio run -t upload
- if you're using the Arduino IDE click the build and upload button
This application is built for convenience.
Absolutely do not run this on the public Internet without blocking it at a firewall.