- Purpose: Drive multiple
dallas_tempsensors in sequence from a single OneWire bus (including DS2484 I2C OneWire bridge). Useful when you want the component to trigger updates avoiding bus jamming and to let placeholder sensors (address = 0x000...0) be auto-assigned from discovered devices on the bus.
- In
external_componentsadd this REPO - It also needs this specific PR that updates the sensor's address
external_components: - source: github://MaxPlap/DallasTemperatureSequencer components: [ dallas_temperature_sequencer ]' - source: github://pr#12150 components: [one_wire]
-
Define your
dallas_tempsensors as usual. If you want the sequencer to drive measurements, setupdate_interval: never. If you want the sequencer to auto-assign an address to a sensor, configure that sensor with a zero address (all zeros):sensor: - platform: dallas_temp address: 0x7c00000083ae9e28 id: fixed name: "Fixed-temp" resolution: 12 update_interval: never # DallasTemperatureSequencer will trigger the update - platform: dallas_temp address: 0x0000000000000000 # placeholder -> allows auto-assignment id: floating name: "Floating-temp" resolution: 12 update_interval: never
-
Add the
dallas_temperature_sequencerblock and point it at your configuredone_wireinstance and sensors.intervalcontrols the time between sensor measurements (per sensor). Example frombirrino.yaml:dallas_temperature_sequencer: onewire: my_ds2484 sensors: - fixed - floating interval: .5s
-
Notes:
onewire:should reference yourone_wireplatform entry (DS2484, gpio-based, etc.).intervalis the delay between reading successive sensors. Choose a value that matches your sensor responsiveness and the bus speed (e.g.0.5sis a good starting point).
- The sequencer repeatedly updates each sensor in the
sensors:list. It callscomponent.updateon eachdallas_tempsensor and waits for a valid value (the component code handles waiting and rechecks the bus). This lets you useupdate_interval: neveron the sensors and have the sequencer control timing. - Sensors declared with a zero address (
0x0000000000000000) act as placeholders. On boot or during rechecks the sequencer scans the bus and will assign discovered addresses to placeholder sensors (in-memory mapping). This keeps placeholders interchangeable and avoids touching protected internals of the core Dallas sensor objects.
Accessing assigned address/name in display lambdas
-
The
dallas_tempsensor exposesget_address_name()which returns the configured or assigned address string. You can show this in a display lambda, for example:it.printf(0, 16, id(font1), "%.1f %s", id(generic).state, id(generic)->get_address_name().c_str());
-
If placeholder sensors are not getting assigned:
- Confirm the OneWire bus is functional and that the DS2484 or GPIO bus is configured correctly.
- Check logs for the sequencer assignment messages (the component logs when it scans and assigns addresses).
- If you need persistent assignments across reboots, consider adding text_sensors or implementing storage of assigned names in preferences/NVS (not implemented by default).
-
If
get_address_name()returns an empty string, ensure the sequencer scanned the bus and/or the sensor has been updated at least once by the sequencer. Did your added github://pr#12150 in external components?