ESP32 based Home Automation Bridge that is easy to upload and simple to use.
A very simple implementation of the bridge to work with Echo devices (Alexa). I've been running HA Bridge on Raspbery PI for years, using lots of ESP devices that i linked with many routines in my home. Things like relays for watering, garage doors opening, Satel alarm integration with their ETHM1, and others.
After several PI crashes caused by the SD card, faulty upgrades and never-ending-command line actions i decided to get rid of this setup and migrate to something simple, low power, and always available - zero downtimes. That's when i wrote my own implementation for the ultra low power device which is ESP32.
Today i am running this hub on the M5 AtomU device, without any hassle.
Feel free to play with the code, modify and update it as you wish, just remember to give some shout outs somewhere 🤝
ESPRIDGE will respond to SSDP queries that will happen when you ask Alexa discover devices
.
-
After the devices are discovered, you can say :
Alex turn on your_device
orAlexa turn off your_device
. -
When you ask to
turn on
the device, ESPRIDGE will call a URL you have provided forON
action for your light. -
Similarily when you ask
turn off
, ESPRIDGE will call a URL forOFF
action for your light.
When creating lights, you can provide these two urls in the form:
Simply put your WiFi credentials in the code:
#define WIFI_A ""
#define WIFI_P ""
Compile, Upload and you're ready to go 🍪
- Access the panel via a simple url
http://espbridge/
- By default
OTA
is turnedON
, you can change that with#ifdef OTA_SUPPORT
- You can also add ARMING/DISARMING of your SATEL System just add another device and instead of URL use:
SATEL,ip_address,your_pin,partition_to_arm/disarm
Adding new/editing lights
Background Discovery process
Alexa visibility and control
MIT License
Copyright (c) 2023 invpe
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.