![]() |
|
![]() |
|
I use Home Assistant for doing most of what you're asking for. This integration works great for adjusting light level and temperature: https://github.com/basnijholt/adaptive-lighting. My home has an ERV and I use a couple Shelly relays (one for power and the other to boost airflow) integrated into HA to modulate the amount of fresh air I bring in, currently based on indoor/outdoor temperature and humidity. I don't have an air quality sensor, but if I had one I could easily integrate that into my automations. |
![]() |
|
Woah. That looks awesome. A red flag, relative to what I would do is: "Frequency to adapt the lights, in seconds." I would like to be able to make tight feedback loops, which means much less than seconds. I use HA + ESPHome as well, and that's on my list of issues I'd like to see resolved. To understand why this matters for a lot of controllers: https://en.wikipedia.org/wiki/Gain%E2%80%93bandwidth_product Audio amplifiers are often in the 50MHz range, in order to achieve good performance in the <20kHz range. Add to that, in this case, the desire for steady transitions so I don't have sudden light or noise changes (stepping through 255 states takes . That said, holistically, this does what I want better than how I was going to do it. The other major issue I have with HA is reliability. About 10% of the time, some automations don't work. I'd really like to be able to set state (blinds are down after 8pm) rather than actions (blinds go down at 8pm). If you have suggestions.... |
![]() |
|
RS-485 is a shared bus, so you need to use some kind of a protocol to arbitrate access, and to make sure you don't flash unintended devices. BACnet is one example, but other protocols can work too. |
![]() |
|
Hmm I don't know. It could be but it's very intermittent. Sometimes it happens a lot, sometimes it doesn't. I'll try to find out the sleep settings though, thanks for the tip! |
![]() |
|
I already got my ESP gadgets to tinker, what's missing is the time. It's super fun, and looking so forward for it, but my to-do list cannot give me a break. Great job what you guys are doing!
|
![]() |
|
Same here, plus a dozen or so random ESP32 variants just sitting in my electronics parts box because they're so cheap. It's incredibly freeing to just have all that hardware available at arms reach whenever you have an idea. They're surprisingly reliable and with modules like the sprinkler controller, they can be programmed to be independent so that they keep running as long as they have power. It took me months to realize that HomeAssistant microSD card had failed last time because all of my hydroponics gear just kept running. By far the biggest time consumer has been wiring them up to DC/DC converters to drive relays in a waterproof Sockitbox. Another really useful part to keep around are wire terminal breakout boards: https://www.amazon.com/whiteeeen-Development-Expansion-ESP-W... Also CloudFree is great for off the shelf IoT parts that can be reprogrammed with ESPHome: https://cloudfree.shop/ |
![]() |
|
I am a VERY low-effort hardware person (even soldering is um, not my favorite) but for years my approach has been: 1) Go to Amazon and buy a three pack of ESP32 dev boards with headers[0]. They're always some random seller, etc but I've probably had one DoA/failure after buying dozens from random sellers over the years. 2) Get a dupont wires variety pack[1]. 3) Optionally (but good to have) get some breadboards [2]. 4) Familiarize yourself with various supported temperature/motion/humidity/relays/etc. Esphome has a supported list[3]. 5) Search for the chip name, etc on Amazon. Example[4]. 6) Familiarize yourself with the ESP32 dev board pins, GPIO, etc. Most sellers will include a picture that looks something like this[5] and most of them are pretty "standard" these days. 7) Wire stuff up, configure with esphome. 8) Once you have things up and running, shove everything in an old box (iPhone boxes are especially sturdy). Other options are various project boxes[6], 3D printing, etc. It's usually easy enough to cut out/drill whatever you need. At the end of the day you can do some pretty impressive things like directly combining temperature sensors, humidity, presence detection, PIR motion, air particulate, relays, etc even on a single board thanks to ample GPIO and esphome. All for (typically) something like $10 per "location" where you need the stuff. Even less if you buy from Aliexpress, etc. Of course for "install" you'll need power supplies and (typically) USB-A to micro-USB power cables but most of us have drawers full of these things from old phones, etc. Good news is ESP32 boards absolutely sip power (something like 100mW or less) even with all of your "stuff" attached. [0] - https://www.amazon.com/ESP-WROOM-32-Development-Microcontrol... [1] - https://www.amazon.com/EDGELEC-Breadboard-Optional-Assorted-... [2] - https://www.amazon.com/Breadboards-Solderless-Breadboard-Dis... [3] - https://esphome.io/index.html [4] - https://www.amazon.com/Teyleten-Robot-Digital-Temperature-Hu... [5] - https://lastminuteengineers.com/esp32-pinout-reference/ [6] - https://www.amazon.com/LeMotech-Plastic-Electrical-Junction-... |
![]() |
|
Fair points but with all due respect completely misses the point and context. My comment was a reply to a new user interested in esphome on a post about esphome. You're talking about CircuitPython, 35KB web replies, PSRAM, UF2 bootloader, etc. These are comparatively very advanced topics and you didn't mention esphome once. The comfort and familiarity of Amazon for what is already a new, intimidating, and challenging subject is of immeasurable value for a novice. They can click those links, fill a cart, and have stuff show up tomorrow with all of the usual ease, friendliness, and reliability of Amazon. If they get frustrated or it doesn't work out they can shove it in the box and get a full refund Amazon-style. You're suggesting wandering all over the internet, ordering stuff from China (or Amazon for roughly 3x the cost of what I suggested), multiple vendors, etc while describing a bunch of things that frankly just won't matter to them. I say this as someone who has been an esphome and home assistant user since day one. The approach I described has never failed or remotely bothered me and over the past ~decade I've seen it suggested to new users successfully time and time again. In terms of PSRAM to my knowledge the only thing it is utilized for in the esphome ecosystem is higher resolution displays and more advanced voice assistant scenarios that almost always require -S3 anyway and are a very advanced, challenging use cases. I'm very familiar with displays, voice, the S3, and PSRAM but more on that in a second... > live with one less LX7 core and no Bluetooth I'm the founder of Willow[0] and when comparing Willow to esphome the most frequent request we get is supporting bluetooth functionality i.e. esphome bluetooth proxy[1]. This is an extremely popular use case in the esphome/home assistant community. Not having bluetooth while losing a core and paying more is a bigger issue than pin spacing. It's also a pretty obscure board and while not a big deal to you and I if you look around at docs, guides, etc, etc you'll see the cheap-o boards from Amazon are by far the most popular and common (unsurprisingly). Another plus for a new user. Speaking of Willow (and back to PSRAM again) even the voice assistant satellite functionality of Home Assistant doesn't fundamentally require it - the most popular device doesn't have it either[2]. Very valuable comment with a lot of interesting information, just doesn't apply to context. [0] - https://heywillow.io/ [1] - https://esphome.io/components/bluetooth_proxy.html [2] - https://www.home-assistant.io/voice_control/thirteen-usd-voi... |
![]() |
|
I did exactly this with WLED over the weekend, just to see what the ecosystem was like and what the capabilities are. That flow from soldered hardware to HA integration is astonishingly slick.
|
![]() |
|
You can buy off-the-shelf modules that take a lithium ion cell and provide charging, overcurrent and overdischarge protection; just search your Chinese online retailer of choice for "TP4056 module" and you will find plenty of them. There is a Hackaday article [1] that goes in depth on how to use them properly. If you'd rather not wire it up yourself there are also ESP32 dev boards with built-in battery management functionality, such as the LoLin32 Lite and Sparkfun ESP32 Thing. I haven't had much luck with the former (possibly due to its lack of RF shielding) but the latter seems to be pretty solid. I think Adafruit sells similar boards as well. [1] https://hackaday.com/2022/10/10/lithium-ion-battery-circuitr... |
![]() |
|
I agree with everything here, except the $10 of hardware. You must be running some very fancy chips! For extra savings the ESP8266 might be as low as $4us. It really is amazing. |
![]() |
|
I'm not sure where you're buying your ESP8266, but mine run less than a buck (on a little dev board). Aliexpress -> From $0.99 -> four-pack of ESP8266 for $3.19. Even less when they have a sale. |
![]() |
|
You can get a three pack of esp32 dev boards (with headers) for $6 from Aliexpress. For that you get: 1) Wifi. 2) Much more robust ecosystem, including esphome (the subject of this post). |
![]() |
|
Yeah that's overkill. But PIR and esp32s would work for the most part. (don't rule out the radar, it's only $50 bucks at Sparkfun lol I just got it working the other day, it's pretty awesome)
|
![]() |
|
For things that need to be stand-alone I'd first check if there's an existing off-the-shelf option first which generally would be more cost-effective to buy and look better than anything I could make myself. For temp sensors specifically I generally just go with whatever off-the-shelf stuff is supported by this firmware: https://github.com/pvvx/ATC_MiThermometer - as a bonus they can run on battery for a year or more. |
![]() |
|
I 3D print enclosures for my projects. Usually I find an already designed one on Thingiverse that fits close enough. If you're using common components you're likely to find an exact match.
|
![]() |
|
Made a time clock with ESPHome and a M5StickC. Clock in and out. Home Assistant sends the time to a Google Sheet. Super reliable.
|
![]() |
|
Solid state relay is probably a bad idea with all the extra heat-sinking, extra cost, and chance of getting counterfeits. I do this with ESPHome & a J115F21C12VDCS.9 relay (note only the NO side is rated for 40A resistive): https://i.imgur.com/MqqOkoY.png Choose any of the temperature sensors here for air temperature sensing: https://esphome.io/ Configuration is so easy. For the sensor, just copy the config from here, for example: https://esphome.io/components/sensor/bme280. Add a gpio output (https://esphome.io/components/output/gpio) and a bang-bang climate controller (https://esphome.io/components/climate/bang_bang.html) Here's the kicad footprint for that relay (Relay_SPDT_CIT-J115F2.kicad_mod) if you need it:
|
![]() |
|
Maybe fewer bugs and need to make changes with this? I have a fair number of esp devices with temp probes around the house, and I’ve been meaning to switch to esp home so I have less code to maintain |
![]() |
|
You should give it a try. ESPHome is super convenient. Especially the fact that you can flash them from a browser initially and over the air after that
|
![]() |
|
I've had good luck buying from the Wemos and Lilygo official stores on AX. Have had no problems in many years and dozens of orders. Other sellers are a gamble.
|
![]() |
|
I'm jist getting started with home automation and have a couple of ESP32 running tasmota.
How do they compare? Thr site explains how I can migrate bit not why or under which circumstances I should...
|
![]() |
|
Tasmota is firmware you can configure on-device[0] while ESPHome is a YAML-driven construction kit for compiling firmware specific to a device's configuration. Every change to the YAML is a compile-and-flash cycle. Tasmota is only for Espressif platforms. ESPHome has expanded to support BK72xx, RTL87xx, and the Pico W, but good luck figuring out what's actually implemented on those platforms. ESPHome supports more sensors/peripherals. Some ESPHome Components[1] simplify the combination of multiple sensors and peripherals to accomplish a task to basic YAML (check out the different Cover components). Tasmota on ESP32 has an embedded scripting engine with REPL (Berry). ESPHome is... complicated[2]. Triggers, Actions, and Conditions can accomplish very simple automations in pure YAML. For more complicated tasks, you'll be writing C/C++ code. ESPHome releases frequently. If you're using it with Home Assistant, it will constantly nag you to update ESPHome and all of your ESPHome devices. Tasmota releases every few months. Tasmota suggests not upgrading a device unless you have a particular need[3]. [0] Pre-compiled Tasmota binaries work for most purposes, but there are situations where you might need to compile your own to support less common features or devices. [1] https://esphome.io/components/ |
![]() |
|
Anyone got this to replace their thermostat? Like sensors in zoneA signal and a device connected to the HVAC triggers ON? Maybe they're on WiFi or Ethernet connection?
|
It allows you to turn a cheap microcontroller into a voice assistant, bluetooth proxy or media player directly from your browser.