Cd74hc4067 + ds18b20

Hello !
Here is a special case where it is necessary to replace a damaged DS18B20 (one of many) without changing the configuration. My idea is to switch them with a CD74HC4067 (analpg/digital mux) and read all senosrs, one by one, without specifying the dallas address.
Unfortunately
cd74hc4067:

  • id: cd74hc4067_1
    pin_s0: GPIO12
    pin_s1: GPIO14
    pin_s2: GPIO15
    pin_s3: GPIO17

dallas:

  • pin: 32

sensor:

  • platform: dallas
    id: dallas_sensor_01
    index: 0
    name: “Dallas sensor”

  • platform: cd74hc4067
    id: mux_0
    number: 0
    sensor: dallas_sensor_01

report an error.
‘dallas_sensor_01’ of type dallas::DallasTemperatureSensor doesn’t inherit from voltage_sampler::VoltageSampler. Please double check your ID is pointing to the correct value.

Maybe there are some ideas how to work around it.

1 Like