The firmware supports up to 8 sensors on one line. If you didn’t specify the sensor ID in the settings, the firmware sends values from all auto-detected sensors to one endpoint with a description field like “C,00-00-00-00-00” (unit, comma, device ID). The high-level system should analyze incoming data and place a sensor’s value in the necessary place.

Multiple sensors on one endpoint
Multiple sensors on one endpoint

If you have multiple sensors on one bus, it is better to specify the sensor ID in the firmware settings and link it to a specific endpoint. For this, you should specify the same pin, sensor type, and your unique sensor ID on different endpoints (see an example below). In this case, the firmware will send the sensor value to the corresponding endpoint. So, the sensor will be hard-linked to one endpoint.

Multiple sensors on one bus but with fixed ID
Multiple sensors on one bus but with fixed ID

If you can connect one sensor per pin, it will give you more flexibility. You can replace broken sensors without re-flashing a device.

Single autodetected sensor on pin
Single autodetected sensor on pin

Here is the great tutorial with four DS18B20 sensors and HA integration.


Comments
Harvey Specter
Posted at 11:26 August 22, 2024
Glenn
Reply
Author

Thanks for making this available. I’ve followed the linked tutorial and have it working, reading three sensors. However, one of the sensors reads very low. Eg. currently it is reading 2.625 while the others are reading 21 degrees. i.e. very close to 1/8 of the correct temperature.
For extra context — this sensor was bought years ago, and I suspect is an older variant.
Why it matters is because I need to read older sensors that are already emplaced in my floor (and I have tried reading them with this firmware, they also read 2-3 degrees).
I know with these sensors you used to be able to read the temperature in one of three resolutions, the highest resolution read 3 more bits. Is that what needs to happen here?

    Harvey Specter
    Posted at 05:55 August 26, 2024
    Owner
    Reply
    Author

    If you used this DS18B20 sensor in other projects. It can be configured to use a non-standard (non-default) precision settings. My firmware does not change the sensor configuration (precision), and you can get a wrong value. You can use Arduino and simple sketch to change precision.

Harvey Specter
Posted at 19:02 June 15, 2024
Fernando
Reply
Author

Hello, I have only one ds18b20 connected, the problem is that the temperature is not automatically renewed, in order for it to take a new reading I have to turn off the light and turn it on again.
Has anyone had the same ????

    Harvey Specter
    Posted at 06:22 June 19, 2024
    Owner
    Reply
    Author

    It seems you disabled periodic reports in the firmware settings on the Expert tab. Or your higher level system changes the interval of these reports.

      Harvey Specter
      Posted at 20:32 June 23, 2024
      Fernando
      Reply
      Author

      problem solved, set StatusLED P00 Periodic 5 seconds,
      Input1 P01 GPIO Pull-UP On/Off,
      with Input 01 connected to negative for about 10 seconds until the connected LED P00 stops flashing, I disconnect the negative from Input 01 and when the LED starts flashing quickly every 1 second, I reconnect input 01 to negative for about 10 seconds. and with that it starts giving me readings from the 2 DS18b20 probes connected to Output1 P07 and Output2 P06..

Harvey Specter
Posted at 07:56 August 2, 2023
Destman
Reply
Author

Is it possible to make a thermostat logic with this sensor?

    Harvey Specter
    Posted at 13:08 August 2, 2023
    Owner
    Reply
    Author

    No, the firmware does not have these features.

Harvey Specter
Posted at 21:01 December 30, 2022
Daniel
Reply
Author

Hi. in the description you write that there can be up to 4 sensors on a bus. in the comment you write but there can be up to 7 sensors. are 7 sensors allowed on one pin or do i have to put 4 sensors on one pin and the other 3 on another pin? I am a bit confused. thank you.

    Harvey Specter
    Posted at 13:43 January 2, 2023
    Owner
    Reply
    Author

    Yes, you can add up to 8 sensors on one pin. I’ve changed the information on the page.

Harvey Specter
Posted at 15:48 January 20, 2022
Ken
Reply
Author

Hi

I am a little confused.
Why are you configuring the sensors as outputs, should it be input on the CC2530?

    Harvey Specter
    Posted at 03:35 January 21, 2022
    Owner
    Reply
    Author

    Input/output does not matter for sensors. It is just a place for the settings.

Harvey Specter
Posted at 17:35 December 15, 2021
Thomas
Reply
Author

Hi, i would like to build 3 devices with 6 sensors and 1 with 4 sensors. Is that possible or do only 4 sensors always work?
I once designed a PCB and presented it in the ioBroker forum
https://forum.iobroker.net/topic/49755/ds18b20-mit-cc2530

    Harvey Specter
    Posted at 07:32 December 16, 2021
    Owner
    Reply
    Author

    You can add up to seven DS18B20 to your configuration.

      Harvey Specter
      Posted at 19:46 December 16, 2021
      Thomas
      Reply
      Author

      But I need the premium version for the number of devices and then 4 times, right?

        Harvey Specter
        Posted at 07:09 December 17, 2021
        Owner
        Reply
        Author

        No, the free version allows you to add 7 sensors too. Please note, that all sensors should be on one bus, or you should specify the sensor ID in the settings for each channel.

Harvey Specter
Posted at 14:51 November 27, 2021
Gabriel
Reply
Author

Hi. I’m using Home Assistant with ZHA instead of Zigbee2Mqtt. Using the firmware as proposed here, device is connected (message received in log) but there is no “Entity” showing the Actual Value. Do you think I’m doing something wrong?

    Harvey Specter
    Posted at 09:47 November 28, 2021
    Owner
    Reply
    Author

    It seems that ZHA has limited support for DIY devices, and I cannot help here.

Harvey Specter
Posted at 12:46 August 19, 2021
Tomas
Reply
Author

Hi, I try connect 6 sensors like inputs, each sensor on own pin, but i receive data only from first sensor. I chose this solution because I want change sensor time to time so can’t set sensors IDs and use one pin (bus).

Is this configuration possible/supported?

Anyway, thank you a lot for great work, Tomas

Harvey Specter
Posted at 16:45 May 18, 2021
Wacsy LEE
Reply
Author

Can DS18B20 used in the PSM, please?

    Harvey Specter
    Posted at 03:56 May 19, 2021
    Owner
    Reply
    Author

    Yes, you can. But you should connect the VCC line of the sensor to P10 or P11 pins and configure External power control for this sensor.

Leave a Reply