adafruit / Wippersnapper_Components

Component Description Models for Adafruit IO Wippersnapper Beta.
MIT License
9 stars 39 forks source link

[REQ] Component Request: Multiple DS18X20 on same 1-wire bus #122

Open collosi opened 1 year ago

collosi commented 1 year ago

What's the full name of the component you'd like to see in Adafruit.io WipperSnapper? DS18X20 (basic support is included already)

What type of component is this (i.e.: Pin, I2C)? 1-wire

Additional context Since these devices are 1-Wire devices, they can be configured as a bus on the same IO pin. However, I think the component is currently only set up to read the temperature from the first of these devices. It would be nice for the component to report all of them.

brentru commented 1 year ago

The way the API is configured, there is only one OneWire device allowed per pin. You can use multiple DS18x20 devices by using multiple pins.

collosi commented 1 year ago

Understood. And that is a reasonable workaround. I think it still would be good not to require eating up IO pins unnecessarily.

brentru commented 1 year ago

Absolutely! It was too difficult at the time, possibly we'll revisit this. I am leaving this issue open and have marked it as an enhancement.

tyeth commented 3 months ago

Mentioning this as a reminder for our API V2 rewrite, to allow multiple DS18b20 / OneWire devices on the same addresses (currently a pin only component in API v1). This also extends to include the idea of I2C OneWire mux chips, like the DS2484 being added in #228, which would also ideally support multiple OneWire devices on their buses. (There is also a multi-one-wire-bus version being considered, possibly the DS2482-800 )