Dallas sensors on multiple pins

Hi!

I’m new in esphome things. Sorry if this question asked already. I didn’t find similar topic. In my house have lot of ds18b20 sensor with long wires. All of the wires goes into a box. I made a pcb with 5 protected circuit channel for the sensors to avoid the problems of too long wires. So I have 5 pins, where can be read the sensors. Is it possible to read dallas sensors on multiple channels?
Thank you!

Smerli

Sorry. I’ve asked too fast. This solution works:

dallas:
- id: "dallas_hub_1"
  pin: GPIO0
- id: "dallas_hub_2"
  pin: GPIO2

sensor:
- platform: dallas
  address: 0xA90316A2795EB828
  name: "Living room"
  dallas_id: dallas_hub_2
- platform: dallas
  address: 0xA1051684EB11FF28
  name: "Radiator bedroom"
  dallas_id: dallas_hub_1

5 Likes

Hello.

sensor:
- platform: dallas
  index: 0
  name: "Living room"
  dallas_id: dallas_hub_2
- platform: dallas
  index: 0
  name: "Radiator bedroom"
  dallas_id: dallas_hub_1
1 Like

thanks! this is not descripted on esphome.io :frowning: