Still the code in the lib can be very helpful. Maybe it states something about the detection process. The datasheet spends some text on the detection process.
SEARCH ROM [F0h]
When a system is initially powered up, the master must identify the ROM codes of all slave devices on the bus, which allows the master to determine the number of slaves and their device types. The master learns the ROM codes through a process of elimination that requires the master to perform a Search ROM cycle (i.e., Search ROM command followed by data exchange) as many times as necessary to identify all of the slave devices. If there is only one slave on the bus, the simpler Read ROM command (see below) can be used in place of the Search ROM process. For a detailed explanation of the Search ROM procedure, refer to the iButtonĀ® Book of Standards at Mixed-signal and digital signal processing ICs | Analog Devices. After every Search ROM cycle, the bus master must return to Step 1 (Initialization) in the transaction sequence.