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-owfs

v1.5.5

Published

A HomeBridge plugin for based on OWSERVER protocol

Downloads

57

Readme

verified-by-homebridge npm npm

homebridge-owfs

This is a plugin for 1-Wire temperature and humidity sensors (DS18B20, for example) as well as the DS2408 and DS2403 (switches). As Pre-requisite, you need to have OWFS installed on your RPi. From version 1.1.0, this plugin relies on OWSERVER protocol to poll 1-wire devices (previous versions used owfs directly through fs access). Historical display of temperature and humidity data is available via HomeKit apps thats support graphing.

The following 1-Wire Sensors (types) are pre-configured:

  • OWFS_DS18B20 : temperature
  • OWFS_DS2438 : temperature, humidity
  • OWFS_EDS0064 : temperature
  • OWFS_EDS0065 : temperature, humidity
  • OWFS_EDS0066 : temperature
  • OWFS_EDS0067 : temperature
  • OWFS_EDS0068 : temperature

Any 1-Wire sensor that provides temperature or humidity should be configurable. It is also possible to pull alternate temperature and humidity values supplied by some devices.

Installation

sudo npm install -g homebridge-owfs

Sample HomeBridge Configuration

{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },

  "description": "",

  "accessories": [
    {
      "accessory": "OWFS_Sensor",
      "type": "OWFS_DS2408",
      "name": "GardenSwitch",
      "device": "29.67C6697351FF",
      "switches": [
         { "name": "Main Light", "port" : "1" },
         { "name": "water", "port" : "2" },
         { "name": "Barbecue", "port" : "3" }
      ],
      "host_ip": "raspberrypi.local or whatever IP address, can be omitted if local board is used",
      "host_port: "4304 can be omitted if default 4304 port is used"
    },
    {
      "accessory": "OWFS_Sensor",
      "type": "OWFS_DS18B20",
      "name": "Temperature Sensor",
      "device": "28.0000063f4ead",
      "host_ip": "raspberrypi.local or whatever IP address, can be omitted if local board is used",
      "host_port: "4304 can be omitted if default 4304 port is used"
    },
    {
      "accessory": "OWFS_Sensor",
      "capabilities": {
            "temperature": "EDS0065/temperature", 
            "humidity": "EDS0065/humidity"
      },
      "name": "Downstairs",
      "device": "34.0000063f4eaa",
      "host_ip": "raspberrypi.local or whatever IP address, can be omitted if local board is used",
      "host_port": "4304 can be omitted if default 4304 port is used"
    }
  ],

  "platforms": []
}

Adding sensors

Set accessory to OWFS_Sensor.

  • type - Use a pre-configured sensor type. If the type does not exist, you must specify the capabilities, or it will default to a simple temperature sensor setup.
  • capabilities - This represents the capabilities of the device
    • temperature - Add this key if the 1-Wire sensor supports temperature. The value is the owfs target for the value. In the example above for the sensor named Downstairs, the owfs full path would be /34.0000063f4eaa/EDS0065/temperature.
    • humidity - Same as temperature, but for humidity.

If both capabilities and type are omitted, the default of a simple temperature sensor will be used.

Other settings

  • update_interval - time, in minutes, between automatic updates to HomeKit (default: 2)
  • log_days - number of days of historical data to keep (default: 365)

For switches sensors, set type to OWFS_DS2408 or other switch device

Version history

  • 1.5.5-beta1 : homebridge 2.0 compliance
  • 1.5.4 : fix #15 => negative value for temperature saturated to 0
  • 1.5.3 : fix #14 => configuratin with OWFS_DS18B20 not properly handled
  • 1.5.2 : fix something
  • 1.5.1 : adding verified tag #13
  • 1.5.0 : fix #12 : change in the config format in order to ease schema verification (from this version, only use OWFS_Sensor as accessory and specify type field to give the device type
  • 1.4.3 : adding required verification features
  • 1.4.2 : fix #11 : error message during init (without functionnal impact)
  • 1.4.1 : fix #10
  • 1.4.0 : add historical data, timed push to homekit, flexible sensor configuration fix #9
  • 1.3.4 : fix #4 issue -> negative value for 18B20
  • 1.3.2 : fix #2 issue -> use of remote owfs server
  • 1.3.1 : remove fs dependency not anymore necessary (install from npm was not working)
  • 1.3.0 : migrate to owjs lib (there were an issue in 1.2.0 when trying to write on DS2408 using owfs)
  • 1.2.0 : add ds2403 and ds2408 management (switches)
  • 1.1.0 : add owserver management
  • 1.0.0 : ds18b20 management through access through FS