Fork me on GitHub

pimatic-owjs by Mikeš (m.spetik) | github | npm

pimatic-owjs-plugin

This plugin basic for Pimatic

Install

You install owserver

sudo apt-get install owserver ow-shell

Edit file /etc/owfs.conf and change lines

server: port = localhost:4304

to access only from localhost

server: port = 127.0.0.0:4304

or access from all addresses

server: port = 0.0.0.0:4304

Configuration

{ 
  "plugin": "owjs",
  "active": true,
  "host": "127.0.0.1",
  "port": 4304
}

OwjsSwitch Device

Tested with device DS2405,DS2406,DS2408

{
  "address": "12.54F81BE8E78D",      "pio": "A",
  "id": "onewire-switch",
  "name": "onewire switch",
  "class": "OwjsSwitch",
  "interval": 2500
}

OwjsSensor Device

Tested with device DS18B20

{
  "address": "28.54F81BE8E78D",
  "pio": "fasttemp",
  "attributeName": "temperature",
  "id": "owjs-one-sensor",
  "name": "onewire sensor",
  "class": "OwjsSensor"
}

OwjsPresenceSensor Device

Tested with device DS2405,DS2406,DS2408

{
  "address": "12.54F81BE8E78D",
  "pio": "B",
  "id": "onewire-presence",
  "name": "onewire presence",
  "class": "OwjsPresenceSensor"
}

For device configuration options see the device-config-schema file.

Plugin Config Options

owjs config options
OptionDescriptionDefault
host
string
IP address or hostname of owserver
"127.0.0.1"
port
number
Port of the owserver
4304

Device Config Options

pimatic-owjs device config schemas

OwjsSwitch

OwjsSwitch config options
OptionDescriptionDefault
address
string
The address chip [28.1234567890]
pio
string
The pio pin type DS2408 set pio 0-7 , DS2406,DS2413 set pio A,B
inverted
boolean
active is low?
false
uncached
boolean
Use uncached data
true
interval
integer
Get state switch. 250ms is default update automaticaly
250

OwjsPresenceSensor

OwjsPresenceSensor config options
OptionDescriptionDefault
address
string
The address chip [12.1234567890]
pio
string
The pio pin
inverted
boolean
active low?
false
uncached
boolean
Use uncached data
true
interval
integer
Get state switch. 250ms is default update automaticaly
250

OwjsSensor

Owjs config options
OptionDescriptionDefault
address
string
The address chip [28.1234567890]
pio
string
The pio pin
uncached
boolean
Use uncached data
false
interval
integer
the time in ms, the command gets executed to get a new sensor value
5000
attributeName
string
the name of the attribute the sensor is monitoring
"owsensor"
attributeType
string
the type of the attribute the sensor is monitoring
"number"
attributeUnit
string
this unit of the attribute the sensor is monitoring
""
attributeAcronym
string
this acronym of the attribute the sensor is monitoring
""
discrete
boolean
Should be set to true if the value does not change continuously over time.
pimatic-owjs is written by Mikeš (m.spetik)