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 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 to Thomas
Cancel Reply