this post was submitted on 04 Jan 2024
17 points (100.0% liked)

homeassistant

12139 readers
9 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I was wondering if someone has done something similar:

I want to detect if one of the kitchen burners have been running for a long time. Gas sensors won't work because the fires are running.

I was thinking that a solution could be to have a wifi-enabled thermostat that sends the temperature to home assistant and if it is above > X for Y minutes, send an alarm/email/notification. The sensor could be hidden below the burners and connected via a cable to measure the temperature.

Does this make sense? Does anybody have some idea how to implement this (maybe using a ESP8266)?

Is there other alternative?

cc @[email protected] @[email protected] @[email protected] @[email protected] @[email protected]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (2 children)

Sounds like a simple enough job using a DS18B20 sensor on a cable. They're digital ambient temperature sensors with ±0.5°C accuracy, and can usually be picked up quite cheaply.

Aside from GND and 5V, they only use a single GPIO pin. As each one has s unique 64-bit address, you can wire more than one to the same GPIO pin without any issues. The only other thing you'll need is a 4.7K resistor on the 3.3V to the GPIO.

Here in Australia, I got these from Amazon, and wired three up on a single GPIO pin for our lizard's enclosure. I then wrote a quick and dirty Python script that publishes the temps into MQTT four times a minute, and load them as sensors in HA, to do things with. Admittedly, I'm running them on a Raspberry Pi, but that's only because I'm also hosting a couple of webcams on it, to keep an eye on the lizard.

You could absolutely do this with an ESP board - esphome has you covered.

Edit: this tutorial will help you get started on how to wire it up.

[–] [email protected] 2 points 11 months ago (1 children)

@[email protected] Thanks! Yes, I was looking into ESP8266 + DS18B20, thanks!

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

No worries - I've found them to be very effective. Just make sure you buy genuine ones. I bought a pack of (very) cheap ones and they were shit. Kept dropping after an hour or so, needing me to restart the service.

I edited my comment above with a link to a tutorial on how to wire them up on an ESP board. Have fun! Things like this are great weekend projects.

[–] glimse 2 points 11 months ago (1 children)

You can't just post all that and not show the lizzy! I love pet-related automations

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (1 children)

Lol - he's been quite reclusive right now. Here's some video of him eating, soon after we brought him home.

[–] glimse 1 points 11 months ago (1 children)

He's nomming hard lol what kind of lizard is that?

[–] [email protected] 2 points 11 months ago

Yeah - we've discovered he likes dog food! He's an Eastern Blue Tongue skink. They're native to my part of Australia (but still have to be purchased through licensed dealers).