DanTheMan827 / homebridge-ds18b20

25 stars 10 forks source link

Homebridge cannot find temp for DS18B20 #14

Open gregor-git opened 4 years ago

gregor-git commented 4 years ago

I downloaded your script by >>sudo npm install -g homebridge-ds18b20<< but when I started homebridge I got the error >>Error: Could not find 1-Wire temperature sensor for deviceId = 28-01344f000003<<. To be sure its not a connection mistake by my wirering I checkt it manually with w1_slave and I got the right temp. (>>pi@raspberrypi:/sys/bus/w1/devices $ ls 28-01344f000003 w1_bus_master1<<, >>pi@raspberrypi:/sys/bus/w1/devices $ cat 28-01344f000003/w1_slave 79 00 17 0f 7f ff 07 10 7e : crc=7e YES 79 00 17 0f 7f ff 07 10 7e t=7562<<) Anny idea what the problem might be?

sachasmart commented 3 years ago

Same problem.... 3 years later :(

Status error:

Error: Could not find 1-Wire temperature sensor

I can find the DS18b20 with sys/bus/w1/devices

{
    "bridge": {
        "name": "HomeBridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "",
    "accessories": [
        {
            "accessory": "DS18B20",
            "name": "",
            "device": "28-00000912a17d",
            "pollInterval": 5000,
            "offsetC": 0
        }
    ],
    "platforms": [],
    "name": "TEST TEMPERATURE",
    "accessory": "DS18B20"
}
toshibochan commented 3 years ago

First do what say in “ENABLE THE ONE-WIRE INTERFACE”

https://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/

sachasmart commented 3 years ago

First do what say in “ENABLE THE ONE-WIRE INTERFACE”

https://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/

`

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=i2s=on

dtparam=spi=on

Uncomment this to enable infrared communication.

dtoverlay=gpio-ir,gpio_pin=17

dtoverlay=gpio-ir-tx,gpio_pin=18

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

Enable audio (loads snd_bcm2835)

dtparam=audio=on

[pi4]

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d max_framebuffers=2

[all]

dtoverlay=vc4-fkms-v3d

dtoverlay=w1-gpio `

toshibochan commented 3 years ago

sudo modprobe w1-gpio

sudo modprobe w1-therm

lsmod

sudo nano /etc/modules Add: w1_gpio w1_therm

Reboot cd /sys/bus/w1/devices/ ls

sachasmart commented 3 years ago

sudo modprobe w1-gpio

sudo modprobe w1-therm

lsmod

sudo nano /etc/modules Add: w1_gpio w1_therm

Reboot cd /sys/bus/w1/devices/ ls

pi@mypi:/sys/bus/w1/devices $ ls
28-00000912a17d  w1_bus_master1
toshibochan commented 3 years ago

Still error in homebridge?

sachasmart commented 3 years ago

Restarted both pi and homebridge:

[3/15/2021, 7:26:24 PM] [RPi] mypi: Raspberry Pi 4B v1.4 (BCM2711, 2GB) - 1000000050AB73ED Error: Could not find 1-Wire temperature sensor Error: Could not find 1-Wire temperature sensor

Still error in homebridge?

sachasmart commented 3 years ago

Restarted both pi and homebridge:

[3/15/2021, 7:26:24 PM] [RPi] mypi: Raspberry Pi 4B v1.4 (BCM2711, 2GB) - 1000000050AB73ED Error: Could not find 1-Wire temperature sensor Error: Could not find 1-Wire temperature sensor

Still error in homebridge?

pi@mypi:/sys/bus/w1/devices/28-00000912a17d $ cat w1_slave 9f 01 4b 46 7f ff 01 10 40 : crc=40 YES 9f 01 4b 46 7f ff 01 10 40 t=25937

gregorFeigel commented 3 years ago

Correct me if I´m wrong, but I think the error is in the homebridge-ds18b20 package and not in the way the pi reads the value (one wire protocol ect.), cause with other HomeKit implementations it works fine for me. (I swapped over to an other implementation 3 years ago)

toshibochan commented 3 years ago

Did you update all your homebridge?

sachasmart commented 3 years ago

Did you update all your homebridge?

Screen Shot 2021-03-15 at 3 58 35 PM

Correct me if I´m wrong, but I think the error is in the homebridge-ds18b20 package and not in the way the pi reads the value (one wire protocol ect.), cause with other HomeKit implementations it works fine for me. (I swapped over to an other implementation 3 years ago)

Hmm, thank you. Any suggestions for setting up Ds18b20 in different rooms and monitoring them?

toshibochan commented 3 years ago

You have to use more raspberry and Try dht22