C++ home-automation

Open-source C++ projects categorized as home-automation | Edit details

Top 15 C++ home-automation Projects

  • esphome

    ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.

    Project mention: ESP-01 I2C Arduino slave | reddit.com/r/Esphome | 2022-01-26

    In general, it is easier to go the esphome.io (or the corresponding GitHub page) and search for your components (if you know them) than to search via Google.

  • OpenMQTTGateway

    MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.

    Project mention: ESP8266 Adventures | dev.to | 2021-12-31

    What I didn't know is that the ESP8266 is not just a Wifi module, it can be programmed and even run a web server inside. Of course there was a community leveraging this for IOT, and they led me to OpenMQTTGateway. This project collects various signals and sensor from IOT devices and sends it to a queue to be used by HomeAutomation services such as Home Assistant. Given my astonishment of the capacity of this module of course I didn't have any tools that would make my life easier in programming it.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • IRremoteESP8266

    Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/

    Project mention: Small IR gateway with ESP01 | reddit.com/r/esp8266 | 2022-01-18

    So I have Samsung AC units. Each use a IR remote. The way this unit works as is the same with many other ACs is that each time a command is sent it sends all the commands. So say you turn it on and the temp was 25C and it is on swing mode then it turns it on to 25C and swing mode on. So if you read the codes it can be easy or complicated depending on what you want. I tried reading all my codes and was using a raspberry pi but it was clunky to me then I got more in to ESPs and it was smaller footprint that a pi so I got some d1 minis which were cheap and IR LEDs and set out to find an easy way to do it. I ended up using this IRemoteESP8266. They have some examples IRserver is what I used it has the option to do MQTT so I used that with Home Assistant (HA) to connect it together. so now in my HA I have it in my config.yaml I can turn the modes between off, cool, auto, and dry. Turn the temp up or down, and turn the swing mode on or off. I am not sure what is needed to change this code to work on an 8285 maybe nothing? I am not that well versed in ESP. But back to IRemote. The IRServer example creates a web interface and you select which model your AC is (hopefully it has it) if not you can use the IR receiver example to try and make your own codes and it can send them. I haven't gone down that rabbit hole much other than a stand fan I got from Costco that had a IR remote that I got all the codes for. If you want more info let me know. One thing to note that I am not sure if the board talked about earlier has is an NPN Bipolar Transistors (PN2222). I used to make it more powerful. Here is another example that might be helpful

  • deconz-rest-plugin

    deCONZ REST-API plugin to control ZigBee devices

    Project mention: Downgrade Firmware on Lutron Aurora Dimmer Switch | reddit.com/r/homebridge | 2022-01-25
  • esp8266_milight_hub

    Replacement for a Milight/LimitlessLED hub hosted on an ESP8266

    Project mention: ZigBee-RF USB bridge for Mi-Light White? | reddit.com/r/GLEDOPTO_Support | 2022-01-19

    If someone could specifically confirm/deny that the Gledopto bridge works with White bulbs would be great. People have created custom controllers for the White bulbs/remotes (e.g., here) - so I assume the protocol is known or the same.

  • HomeSpan

    HomeKit Library for the Arduino-ESP32

    Project mention: esp32 Halloween app suggestions | reddit.com/r/esp32 | 2021-10-24

    If you have an iPhone or iPad you can even do it through apple's HomeKit using the HomeSpan library for ESP32-Arduino. It's really well documented and that way you don't have to program a new app for your phone in addition to the esp32 code.

  • dscKeybusInterface

    An Arduino/esp8266/esp32 library to directly interface with DSC security systems.

    Project mention: If your alarm system is no longer being monitored by a company and you set the alarm off, would it still dial to the old company? | reddit.com/r/homesecurity | 2021-07-17

    I'm wondering because I'm planning to run this project on the system to recover the installer code. I'm a little worried that doing so will start dialing to the old alarm company.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • Temper-ESP8266

    Temper is a compact temperature sensor based on ESP8266 and SHT30 with large 13x7 pixel led display.

    Project mention: I just had to share! | reddit.com/r/nixie | 2021-04-19
  • esphome-mitsubishiheatpump

    ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection

    Project mention: Multi Split Heating/Cooling with Home Automation? | reddit.com/r/homeautomation | 2021-10-05

    If you can add homeassistant, you should look at https://github.com/geoffdavis/esphome-mitsubishiheatpump -- we're using it with 5 split units. It works great, is faster than infrared, and cheaper than the wired or wireless control options from Mitsubishi.

  • Hugo-ESP8266

    Hugo is a 4-button ESP8266 Wi-Fi Remote, Arduino compatible and simple to use.

    Project mention: ESP32 Wifi Remote | reddit.com/r/esp32 | 2021-06-09
  • sensor

    Sensor by Metriful | Indoor environment monitoring | Documentation and code samples

    Project mention: ESP-IDF I2C Communication Failure: "i2c null address error" | reddit.com/r/esp32 | 2021-07-11

    https://github.com/metriful/sensor/blob/master/Arduino/Metriful_Sensor/Metriful_sensor.cpp and https://github.com/metriful/sensor/blob/master/Arduino/Examples/cycle_readout/cycle_readout.ino

  • CQC

    CQC (Charmed Quark Controller) a commercial grade, full featured, software based automation system. CQC is built on our CIDLib C++ development system, which is also available here on GitHub.

    Project mention: What are some bad c++ habits you know or have seen while maintaining code? | reddit.com/r/cpp | 2021-12-02
  • cloxie_nixie_clock

    Schematics and code for Cloxie: my Nixie Tube Clock.

  • ESPHome-Arduino-Port-Expander

    An Arduino Port Expander for ESPHome with added Arduino Mega 2560 support

    Project mention: Esphome with Arduino mega with built-in esp8266 | reddit.com/r/Esphome | 2021-09-16

    Longer answer: Maybe? With a lot of extra effort. It looks like someone has modified the ESPHome port expander code to be compatible, but from what I can gather, you would have to modify the source for ESPHome to replace those components with the modified versions and then rebuild it from source. That's a lot of effort for something that can be solved with multiple ESPHome boards or just using compatible port expander hardware.

  • esphome-rotary-dial

    A custom ESPHome component that sends the dialed number to Home Assistant.

    Project mention: Creative Ways to Control HA | reddit.com/r/homeassistant | 2021-02-24

    I use ESPHome and a Wemos D1 for the software. I should probably document the wiring at some point, though it isn’t terribly complex.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-26.

C++ home-automation related posts


What are some of the best open-source home-automation projects in C++? This list will help you:

Project Stars
1 esphome 4,459
2 OpenMQTTGateway 2,462
3 IRremoteESP8266 1,996
4 deconz-rest-plugin 1,585
5 esp8266_milight_hub 766
6 HomeSpan 336
7 dscKeybusInterface 317
8 Temper-ESP8266 160
9 esphome-mitsubishiheatpump 107
10 Hugo-ESP8266 94
11 sensor 91
12 CQC 50
13 cloxie_nixie_clock 5
14 ESPHome-Arduino-Port-Expander 2
15 esphome-rotary-dial 0
Find remote jobs at our new job board 99remotejobs.com. There are 30 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.