powersync-plugins/onewire
Boernsman ac4cdaf917 onewire: added io types 2020-11-09 09:06:04 +01:00
..
translations added german translation 2020-08-19 21:49:52 +02:00
README.md updated readme 2020-08-19 21:54:36 +02:00
integrationpluginonewire.cpp only setup temperature sensor is owfs setup was successfull 2020-10-28 20:09:26 +01:00
integrationpluginonewire.h fixed w1 temperature sensor setup 2020-10-28 19:30:00 +01:00
integrationpluginonewire.json onewire: added io types 2020-11-09 09:06:04 +01:00
meta.json changed technology to technologies 2020-04-28 14:42:18 +02:00
onewire.png added some more logos 2020-04-24 16:29:56 +02:00
onewire.pro added w1 support for temperature sensors 2020-08-19 17:27:41 +02:00
owfs.cpp added connected state to all one wire devices 2020-08-19 21:17:43 +02:00
owfs.h added w1 support for temperature sensors 2020-08-19 17:27:41 +02:00
w1.cpp added german translation 2020-08-19 21:49:52 +02:00
w1.h added connected state to all one wire devices 2020-08-19 21:17:43 +02:00

README.md

One-Wire

This integration plugin allows to integrate one-wire devices like temperature sensors and switches.

Supported Things

  • OWFS Interface
    • Gateway device
    • Initializes OWFS
  • Temperature Sensors
    • Family Code 10
      • DS18S20
      • DS1820
      • DS18S20-PAR
      • DS1920
    • Family Code 22
      • DS1822
      • DS1822-PAR
    • Family Code 28
      • DS18B20
      • DS18B20-PAR
      • DS18B20X
    • Family Code 3B
      • DS1825
  • Switches
    • Family Code 05
      • Single channel switch
      • DS2405
    • Family Code 12
      • Dual channel switch
      • DS2406
      • DS2407
    • Family Code 3A
      • Dual channel switch
      • DS2413
    • Family Code 29
      • Eight channel switch
      • DS2408

Usage

OWFS Interface

First step is to setup the "One wire interface". During the device setup it is required to enter the OWFS init arguments. Default arguments are "--i2c=ALL:ALL", means OWFS is about to scan for one-wire bus masters on all I2C interfaces.

You can simulate one-wire device with following init argument: "--fake=10,22,28,05"

More about init arguments here: https://www.owfs.org

The "One wire interface" thing has the toggle button to "Auto add one wire devices". Is this activated one-wire devices that get connected to the bus will appear in nymea automatically.

NOTE: As long as the "Auto add one wire devices" feature is activated you won't be able to manually discover devices.

W1 Kernel Driver

Install the kernel driver w1. Raspberry Pi users can use rasp-config to enable 'one wire' which enables W1. There are not further steps necessary, temperature sensors will be discovered if the driver has been loaded successfully.

Requirements

  • The package “nymea-plugin-onewire” must be installed.

More

This plug-in uses "OWFS" the one-wire file system: https://owfs.org