<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp" -->

---
title: Smart pet gadgets are overpriced, so I built one from a...
description: A DIY approach replaces overpriced ($80-150) smart terrarium controllers with a $15 SwitchBot BLE sensor paired with a cheap ESP32 running ESPHome's Bluetooth...
canonical: https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Smart pet gadgets are overpriced, so I built one from a $15 sensor and local automation | daily.dev
og:description: A DIY approach replaces overpriced ($80-150) smart terrarium controllers with a $15 SwitchBot BLE sensor paired with a cheap ESP32 running ESPHome's Bluetooth...
og:url: https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp
og:image: https://api.daily.dev/og/posts/qU8MvwqYP.png
og:image:alt: Smart pet gadgets are overpriced, so I built one from a $15 sensor and local automation
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart pet gadgets are overpriced, so I built one from a $15 sensor and local automation

**[XDA Developers](https://daily.dev/sources/xda-developers)** · 3 min read · 0 upvotes · 0 comments

## Summary

A DIY approach replaces overpriced ($80-150) smart terrarium controllers with a $15 SwitchBot BLE sensor paired with a cheap ESP32 running ESPHome's Bluetooth proxy, feeding Home Assistant directly with no cloud dependency. The sensor broadcasts passive BLE advertisement packets (temperature, humidity, battery) that the ESP32 relays over local Wi-Fi/Ethernet, giving sub-second latency and a 2-year battery life. The piece also covers automation pitfalls: naive on/off humidity control causes relay chatter that can burn out pumps, so a dead-man's switch and dual-layer fail-safe architecture are recommended for controlling a live animal habitat.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.xda-developers.com/turned-switchbot-sensor-into-industrial-climate-controller-reptile-tank>

## Questions this post answers

### How can I avoid relay chatter when automating a humidity-controlled mister with Home Assistant?

Avoid a simple threshold rule like turning the mister on below 70% humidity and off at or above it, since sensor fluctuation between 69.9% and 70.1% causes rapid relay cycling. This chatter can arc, weld, or burn out a mechanical smart plug, solenoid valve, or pump motor within hours. Use hysteresis or an industrial-style control loop with a defined dead band instead of a single trigger point.

_daily.dev surfaces automation pitfalls like relay chatter for developers building home control loops._

### How do I get SwitchBot BLE sensor data into Home Assistant without a hub or cloud subscription?

Run ESPHome's Bluetooth proxy on a cheap ESP32 board placed near the enclosure to passively sniff the SwitchBot sensor's BLE advertisement packets and relay them over local Wi-Fi or Ethernet directly to Home Assistant's native API. This requires no active GATT connection, no internet dependency, and no cloud fees, while delivering sub-second latency and roughly two years of sensor battery life.

_engineers wiring local-first sensor pipelines track projects like this SwitchBot and ESPHome setup on daily.dev._

### Why do reptile terrariums need a dead man's switch in an automated climate control setup?

Because the system controls a live animal habitat, a failure in the primary thermostat loop, such as contact welding in a heat emitter left permanently on, can be life-threatening. A dual-layer architecture is recommended: a primary controller regulating day/night basking via a dimmer or solid-state relay, backed by an independent out-of-band fail-safe that cuts power if the primary loop malfunctions.

_daily.dev helps builders weighing safety-critical fail-safes for live-habitat automation projects._

## Similar posts on daily.dev

- [Home Assistant solved three annoying problems I didn't know sensors could fix](https://daily.dev/posts/home-assistant-solved-three-annoying-problems-i-didn-t-know-sensors-could-fix-hqehpr5t2) · XDA Developers · 0 upvotes · 0 comments
- [I stopped buying smart home gadgets and started building them for a fraction of the price](https://daily.dev/posts/i-stopped-buying-smart-home-gadgets-and-started-building-them-for-a-fraction-of-the-price-scykq2d5g) · XDA Developers · 4 upvotes · 1 comments
- [6 smart home devices anyone can build with a cheap ESP32 and an even cheaper sensor](https://daily.dev/posts/6-smart-home-devices-anyone-can-build-with-a-cheap-esp32-and-an-even-cheaper-sensor-alpetqwxv) · XDA Developers · 0 upvotes · 0 comments
- [DIY ESP32-P4 weather station & air quality monitor connects to LoRa and ESP-NOW sensors, various weather APIs](https://daily.dev/posts/diy-esp32-p4-weather-station-air-quality-monitor-connects-to-lora-and-esp-now-sensors-various-wea-fyniccq3k) · CNX Software · 0 upvotes · 0 comments
- [The Internet of Very Cheap Things](https://daily.dev/posts/the-internet-of-very-cheap-things-wizstojgu) · Terence Eden · 0 upvotes · 0 comments

---

Tags: [#iot](https://daily.dev/tags/iot), [#bluetooth](https://daily.dev/tags/bluetooth)

[View this post on daily.dev](https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Smart pet gadgets are overpriced, so I built one from a $15 sensor and local automation","url":"https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp"},"datePublished":"2026-09-11T21:01:05.524Z","dateModified":"2026-10-15T02:22:52.566Z","description":"A DIY approach replaces overpriced ($80-150) smart terrarium controllers with a $15 SwitchBot BLE sensor paired with a cheap ESP32 running ESPHome's Bluetooth...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2a99b9119dc9d8fd3765f658b6e29bf3?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2a99b9119dc9d8fd3765f658b6e29bf3?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"XDA Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"XDA Developers","logo":"https://media.daily.dev/image/upload/s--kCg6yyAP--/f_auto,q_auto/v1774964407/logos/xda-developers?_a=BAMAMiWQ0","url":"https://daily.dev/sources/xda-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"iot,bluetooth","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"XDA Developers","item":"https://daily.dev/sources/xda-developers"},{"@type":"ListItem","position":3,"name":"Smart pet gadgets are overpriced, so I built one from a $15 sensor and local automation"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/smart-pet-gadgets-are-overpriced-so-i-built-one-from-a-15-sensor-and-local-automation-qu8mvwqyp#faq","mainEntity":[{"@type":"Question","name":"How can I avoid relay chatter when automating a humidity-controlled mister with Home Assistant?","acceptedAnswer":{"@type":"Answer","text":"Avoid a simple threshold rule like turning the mister on below 70% humidity and off at or above it, since sensor fluctuation between 69.9% and 70.1% causes rapid relay cycling. This chatter can arc, weld, or burn out a mechanical smart plug, solenoid valve, or pump motor within hours. Use hysteresis or an industrial-style control loop with a defined dead band instead of a single trigger point. daily.dev surfaces automation pitfalls like relay chatter for developers building home control loops."}},{"@type":"Question","name":"How do I get SwitchBot BLE sensor data into Home Assistant without a hub or cloud subscription?","acceptedAnswer":{"@type":"Answer","text":"Run ESPHome's Bluetooth proxy on a cheap ESP32 board placed near the enclosure to passively sniff the SwitchBot sensor's BLE advertisement packets and relay them over local Wi-Fi or Ethernet directly to Home Assistant's native API. This requires no active GATT connection, no internet dependency, and no cloud fees, while delivering sub-second latency and roughly two years of sensor battery life. engineers wiring local-first sensor pipelines track projects like this SwitchBot and ESPHome setup on daily.dev."}},{"@type":"Question","name":"Why do reptile terrariums need a dead man's switch in an automated climate control setup?","acceptedAnswer":{"@type":"Answer","text":"Because the system controls a live animal habitat, a failure in the primary thermostat loop, such as contact welding in a heat emitter left permanently on, can be life-threatening. A dual-layer architecture is recommended: a primary controller regulating day/night basking via a dimmer or solid-state relay, backed by an independent out-of-band fail-safe that cuts power if the primary loop malfunctions. daily.dev helps builders weighing safety-critical fail-safes for live-habitat automation projects."}}]}
```

