npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-th10-fridge-freezer-alarm

v1.0.5

Published

HomeBridge Plugin to create a HomeKit Freezer Alarm using a Sonoff TH10 Smart WiFi Switch running Tasmota firmware and with an attached DS18B20 temperature sensor.

Downloads

15

Readme

Fridge or Freezer Alarm Plugin using Sonoff TH10 Smart WiFi Switch

This HomeBridge plugin provides a simple, low-cost way to receive alerts on your iPhone or Apple Watch if a fridge or freezer door has been left open. It adds a ContactSensor with embedded Temperature Sensor to HomeKit, and the ContactSensor state will raise alerts within HomeKit:

To use this plugin, you will need a £10 Sonoff TH10 Smart WiFi Switch running Tasmota firmware ('sensors' build) with an attached DS18B20 temperature sensor, and the sensor physically installed within the appliance somewhere.

Preparing the TH10

Flashing the Tasmota firmware on the device is straight-forward - you will need to download Tasmotizer for Windows and get a £5 serial programmer with wires such as WINGONEER CP2104 serial converter. The Sonoff must be opened (the case lid just pulls apart once the terminal cover screw has been removed) - ** IMPORTANT ** note that there are exposed components carrying mains electricity when the cover is removed - and solder on a 4-pin header. Connect up the serial interface (RX to TX and TX to RX), and press-and-hold the TH10 button whilst providing 3V3 power and keep holding for 10 seconds. Next load of Tasmotizer, select the 'sensors' release and hit program.

Once Tasmota has been installed, it must be configured to attach to your WiFi and so it knows it is running on a TH10 and has a DS18B20 sensor attached. This is done by through a browser and using a profile - see the Tasmotizer docs. It can take a couple of gos for these settings to 'stick' for some reason. Once working, the device will be reporting the sensor temperature in it's WebUI:

Note: Supports a single attached DS18B20 sesnor currently. These devices follow a one-wire protocol so it may be possible to connect two sensors, e.g. in a Fridge Freezer type appliance, to monitor both cavities in future.

Mounting the Sensor

Mounting the sensor in the appliance will depend on the appliance design and how permanent you want the sensor to be. This might be as simple as passing the sensor into the appliance on the door hinge side, and taping it in against the side, or you might decide to go further and drill a hole to enable permanent mounting.

In the particular freezer this was developed for, there is a temperature control knob inside that is little more than a vaiable resistor. The cavity this mounts in made an ideal installation point, with a single hole drilled through the back of the cavity through the side of the freezer, the wire passed in and the outside bunged up with a 20mm rubber gromit.

These pictures show the sensor within the appliance, and the wire tacked along the outside of the appliance (which in this case, is against a wall anyway) and finally the TH10 itself simply stuck to the back with double-sided foam sticky pads.

However the sensor is mounted, it must be within the thermal envolope within the freezer and have some air flow across it. Mounted behind the control knob as described, it is also necessary to drill some ventilation holes to ensure the interior temperature can be accurately metered through that case:

Contact and support

If find a problem or have any suggestions, please create an issue on the GitHub project page at: https://github.com/J1mbo/homebridge-TH10-Fridge-Freezer-Alarm/issues