Ankündigung

Einklappen
Keine Ankündigung bisher.

Openhab2 onewire Sensor DS18B20+ auslesen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Openhab2 onewire Sensor DS18B20+ auslesen

    Hallo zusammen,

    ich hoffe ihr könnt mir helfen.

    Folgende Situation: Ich möchte einen onewire-Sensor (DS18B20+ Temperatursensor) über openhab2 auslesen.
    Den Sensor habe normal richtig angeschlossen (wenn ich über die Console "/sys/bus/w1/devices" anschaue wird mir der Sensor angezeigt und ich kann mir auch die aktuelle Temperatur anschauen)

    Wenn ich mir aber den Sensor im owhttpd anschauen möchte, wird er mir dort nicht angezeigt.
    Somit kann ich die Temperatur auch nicht mit openhab abgreifen.

    Ich habe folgende Konfiguration vorgenommen.

    Hardware: Raspberry pi 3 model b
    Image: Openhabian
    Der Sensor hängt direkt an den gpio Pins auf dem Raspi (Pin 1 = 3,3V ; Pin 7 (GPIO 4) = Daten mit Pullup 4,7K ; Pin 6 (GND))

    wie ihr an den files seht, habe ich einiges versucht. Leider wird mir der Sensor im owhttpd nicht angezeigt.

    Bitte um hilfe... Danke

    owfs.cfg
    ######################## SOURCES ########################
    #
    # With this setup, any client (but owserver) uses owserver on the
    # local machine...
    ! server: server = 127.0.0.1:4304
    #
    # ...and owserver uses the real hardware, by default fake devices
    # This part must be changed on real installation
    #server: FAKE = DS18S20,DS2405
    #server: i2c = /dev/i2c-0:ALL
    server: w1 = all
    #server: device = /dev/onewire
    #
    # USB device: DS9490
    #server: usb = all
    #
    # Serial port: DS9097
    #server: device = /dev/ttyS1
    #
    # owserver tcp address
    #server: server = 192.168.10.1:3131
    #
    # random simulated device
    #server: FAKE = DS18S20,DS2405
    #
    ######################### OWFS ##########################
    #
    mountpoint = /mnt/1wire
    allow_other
    #device = /dev/i2c-0
    #Celsius
    #error_print = 0
    #error_level = 0
    #
    ####################### OWHTTPD #########################
    http: port = 2121

    ####################### OWFTPD ##########################

    #ftp: port = 2120

    ####################### OWSERVER ########################

    server: port = 127.0.0.1:4304
    #serverport = localhost:4304
    #server: port = 4303

    ----------------------------------------------------------

    /boot/config.txt

    GNU nano 2.2.6 File: /boot/config.txt


    # uncomment if hdmi display is not detected and composite is being output
    #hdmi_force_hotplug=1

    # uncomment to force a specific HDMI mode (this will force VGA)
    #hdmi_group=1
    #hdmi_mode=1

    # uncomment to force a HDMI mode rather than DVI. This can make audio work in
    # DMT (computer monitor) modes
    #hdmi_drive=2

    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    #config_hdmi_boost=4

    # uncomment for composite PAL
    #sdtv_mode=2

    #uncomment to overclock the arm. 700 MHz is the default.
    #arm_freq=800

    # Uncomment some or all of these to enable the optional hardware interfaces
    dtparam=i2c_arm=on
    dtparam=i2c1=on
    #dtparam=i2s=on
    #dtparam=spi=on

    # Uncomment this to enable the lirc-rpi module
    #dtoverlay=lirc-rpi

    # Additional overlays and parameters are documented /boot/overlays/README

    # Enable audio (loads snd_bcm2835)
    dtparam=audio=on
    gpu_mem=16
    dtoverlay=w1-gpio

    ----------------------------------------------------------

    /etc/modules

    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    w1-gpio
    w1-therm
    #i2c-bcm2708
    #i2c-dev
    #snd-bcm2835

    ---------------
    Zuletzt geändert von Bernd Grossberger; 29.09.2017, 07:27.
Lädt...
X