define <name> OWServer <protocol>
You need OWNet.pm from owfs.org on Sourceforge, which is normally deployed with FHEM. As at 2012-12-23 the OWNet module on CPAN has an issue which renders it useless for remote connections.
The ow* version 2.9 packages provided with Debian Jessie in combination with OWNet.pm as deployed with FHEM have issues.
For Debian Jessie please either unzip
owfs_2.8p17-1_all.zip and install
owserver, dependencies and what else you require with dpkg -i <package>.deb
or use the latest OWNet.pm from Sourceforge.
The ow* version 3.1 packages provided with Debian Stretch are fine.
A typical working configuration file /etc/owfs.conf
looks as follows:
# server uses device /dev/onewire
server: device = /dev/onewire
# clients other than server use server
! server: server = localhost:4304
# port
server: port = 4304
# owhttpd
http: port = 2121
# owftpd
ftp: port = 2120
The actual 1-wire devices are defined as OWDevice devices.
If autocreate is enabled, all the devices found are created at
start of FHEM automatically.
This module is completely unrelated to the 1-wire modules with names all in uppercase.
Examples:
define myLocalOWServer OWServer localhost:4304
define myRemoteOWServer OWServer raspi:4304
localhost
and the FQDN of your owserver as server directives
to the owserver configuration file
on the remote host.
set <name> <value>
value
is one ofreopen
timeout/directory
timeout/ftp
timeout/ha7
timeout/network
timeout/presence
timeout/serial
timeout/server
timeout/stable
timeout/uncached
timeout/usb
timeout/volatile
timeout/w1
units/pressure_scale
units/temperature_scale
get <name> <value>
value
is one ofdevices
errors
/settings/timeout/directory
/settings/timeout/ftp
/settings/timeout/ha7
/settings/timeout/network
/settings/timeout/presence
/settings/timeout/serial
/settings/timeout/server
/settings/timeout/stable
/settings/timeout/uncached
/settings/timeout/usb
/settings/timeout/volatile
/settings/timeout/w1
/settings/units/pressure_scale
/settings/units/temperature_scale
/uncached/alarm
attr <name> nonblocking 1
nonblocking
if you experience lockups of FHEM.
define <name> OWServer <protocol>
Auf dem Computer, an dem der 1-Wire- Bus angeschlossen ist, muss die Software "owserver" installiert sein. Zusätzlich sollte auf diesem Rechner die Konfigurationsdatei "owfs.conf" eingesehen bzw. angepasst werden. Einen WIKI- Artikel dazu gibt es hier.
Die ow*-Pakete in der Version 2.9 von Debian Jessie haben Probleme. Bitte entpacke für Debian Jessie entweder
owfs_2.8p17-1_all.zip und installiere
owserver, Abhängigkeiten und was Du sonst noch brauchst mit dpkg -i <package>.deb
, oder benutze die neueste Version von OWNet.pm von Sourceforge.
Die ow*-Pakete in der Version 3.1 von Debian Stretch sind in Ordnung.
Eine typische funktionierende Konfigurationsdatei /etc/owfs.conf
sieht so aus:
# server uses device /dev/onewire
server: device = /dev/onewire
# clients other than server use server
! server: server = localhost:4304
# port
server: port = 4304
# owhttpd
http: port = 2121
# owftpd
ftp: port = 2120
Die vorhandenen 1-Wire- Busteilnehmer werden als OWDevice -Geräte definiert.
Wenn autocreate aktiviert ist, werden beim Start von FHEM alle Geräte automatisch erkannt und eingerichtet.
Achtung: Dieses Modul ist weder verwandt noch verwendbar mit den 1-Wire Modulen, deren Namen nur aus Großbuchstaben bestehen!
Beispiele für die Einrichtung:
define myLocalOWServer OWServer localhost:4304
define myRemoteOWServer OWServer 192.168.1.100:4304
define myRemoteOWServer OWServer raspi:4304
localhost
und einen mit dem "FQDN", bzw. dem Hostnamen, oder der IP-Adresse des Computers, auf dem die Software "owserver" läuft.
set <name> <value>
value
für einen der folgenden Befehle steht:reopen
timeout/directory
timeout/ftp
timeout/ha7
timeout/network
timeout/presence
timeout/serial
timeout/server
timeout/stable
timeout/uncached
timeout/usb
timeout/volatile
timeout/w1
units/pressure_scale
units/temperature_scale
get <name> <value>
value
für einen der folgenden Befehle steht:devices
errors
/settings/timeout/directory
/settings/timeout/ftp
/settings/timeout/ha7
/settings/timeout/network
/settings/timeout/presence
/settings/timeout/serial
/settings/timeout/server
/settings/timeout/stable
/settings/timeout/uncached
/settings/timeout/usb
/settings/timeout/volatile
/settings/timeout/w1
/settings/units/pressure_scale
/settings/units/temperature_scale
/uncached/alarm
attr <name> nonblocking 1
nonblocking
wieder deaktiviert werden.