DanTheMan827 / homebridge-ds18b20

27 stars 10 forks source link

Multiple sensors not working #19

Closed spfunnell closed 3 years ago

spfunnell commented 3 years ago

Has anyone else found that with multiple sensors, one of them does not work?

In my HomeBridge config I have the following;

    {
        "accessory": "DS18B20",
        "name": "Conservatory Temperature",
        "device": "28-8000001e9075"
    },
    {
        "accessory": "DS18B20",
        "name": "Fish Tank Temperature",
        "device": "28-8000001e95bc"
    },

and in my /boot/config.txt I have;

dtoverlay=w1-gpio,gpiopin=4 #conservatory
dtoverlay=w1-gpio,gpiopin=22 #fish tank

The device on gpio 22 shows up correctly, however the device on gpio 4 cannot be found by homebridge. I see; Error : Could not fine 1-wire temperature sensor for deviceID = 28-8000001e9075 and homebridge reports 0 deg C

However both devices appear in /sys/bus/w1/devices correctly and report the correct temperatures so as far as the pi is concerned, they are working.

If I change my /boot/config.txt to just dtoverlay=w1-gpio, then the device on gpio 4 that wasn't showing, now appears in homebridge. So the problem appears to only be present with two devices.

Any thoughts? Cheers Simon

spfunnell commented 3 years ago

Seems I misunderstood the 1-wire wiring. Please ignore me :)