Multiple ADS1115 on ESPHome

Hi,

I´m using an NodeMCU with 4 SDA1115 attached.
All 4 are working (tested wir Tasmota-firmware).
With ESPHome I´m only able to get information of one ADS115 with its 4 channels,
because I don´t know how to build the correct configuration.

Can anyone please help me to get the other three ADS1115 to work?

Kind regards

Frank

My configuration file is:

i2c:
  id: bus_a
  sda: D2
  scl: D1
  scan: True

ads1115:
  i2c_id: bus_a
  address: 0x48
#  continuous_mode: on
  id: ads1115_48
  


sensor:
# ads1115-48
  - name: "ADS1115 48 Channel A0-GND"
    id: ads1115_a0
    ads1115_id: ads1115_48
    multiplexer: 'A0_GND'
    gain: 6.144
    platform: ads1115
  - name: "ADS1115 48 Channel A1-GND"
    id: ads1115_a1
    ads1115_id: ads1115_48
    multiplexer: 'A1_GND'
    gain: 6.144
    platform: ads1115
  - name: "ADS1115 48 Channel A2-GND"
    id: ads1115_a2
    ads1115_id: ads1115_48
    multiplexer: 'A2_GND'
    gain: 6.144
    platform: ads1115
  - name: "ADS1115 48 Channel A3-GND"
    id: ads1115_a3
    ads1115_id: ads1115_48
    multiplexer: 'A3_GND'
    gain: 6.144
    platform: ads1115    

I have the same problem, is there a solution?

Hi Patrick,
as a got no answer here, I decided to try get a solution by myself.

Here is my working configuration as an example
You have to complete missing items
Notice to connect the adresses of each ads-hardware as discribed in the manufacture guide

ESPHome-Config:

# example ads1115
ads1115:
  #  continuous_mode : on
 - address: 0x48
   id: ads1115_48
   
 - address: 0x49
   id: ads1115_49
   
 - address: 0x4A
   id: ads1115_4A
   
# - address: 0x4B
#   id: ads1115_4B
   


sensor:
# ads1115-48
  - name: "Akku 01"
    id: ads1115_48_a0
    ads1115_id: ads1115_48
    multiplexer: 'A0_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.129 -> 0.000
         - 0.132 -> 0.001
         - 0.135 -> 0.002
         - 3.051 -> 34.54
#         - 0.64200 -> 9.968
#         - 0.96600 -> 14.941
#         - 1.29000 -> 20.019
#         - 1.61700 -> 25.03
#         - 1.95900 -> 30.36

#    filters:
#      - calibrate_polynomial:
#         degree: 2
#         datapoints:
#          # Map 0.0 (from sensor) to 0.0 (true value)
#          - 0.0 -> 0.0
#          - 0.129 -> 0.0
#          - 3.051 -> 34.54
          
  - name: "Akku 02"
    id: ads1115_48_a1
    ads1115_id: ads1115_48
    multiplexer: 'A1_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.132 -> 34.57
    
    
  - name: "Akku 03"
    id: ads1115_48_a2
    ads1115_id: ads1115_48
    multiplexer: 'A2_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.129 -> 0.000
         - 3.051 -> 34.59
     
  - name: "Akku 04"
    id: ads1115_48_a3
    ads1115_id: ads1115_48
    multiplexer: 'A3_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.060 -> 34.55
     
    
# ads1115-49
  - name: "Akku 05"
    id: ads1115_49_a0
    ads1115_id: ads1115_49
    multiplexer: 'A0_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.093 -> 34.54
     
  - name: "Akku 06"
    id: ads1115_49_a1
    ads1115_id: ads1115_49
    multiplexer: 'A1_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.129 -> 0.000
         - 2.994 -> 34.60
     
  - name: "Akku 07"
    id: ads1115_49_a2
    ads1115_id: ads1115_49
    multiplexer: 'A2_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132-> 0.000
         - 3.111 -> 34.59
     
  - name: "Akku 08"
    id: ads1115_49_a3
    ads1115_id: ads1115_49
    multiplexer: 'A3_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.138 -> 0.000
         - 3.153 -> 34.57
     
# ads1115-4A
  - name: "Akku 09"
    id: ads1115_4A_a0
    ads1115_id: ads1115_4A
    multiplexer: 'A0_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.096 -> 34.54
     
  - name: "Akku 10"
    id: ads1115_4A_a1
    ads1115_id: ads1115_4A
    multiplexer: 'A1_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.132 -> 0.000
         - 3.021 -> 34.55
     
  - name: "Akku 11"
    id: ads1115_4A_a2
    ads1115_id: ads1115_4A
    multiplexer: 'A2_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 0.135 -> 0.000
         - 3.132 -> 34.56
     
  - name: "Powerwall Strom"
    id: ads1115_4A_a3
    ads1115_id: ads1115_4A
    multiplexer: 'A3_GND'
    gain: 6.144
    platform: ads1115
    unit_of_measurement: "V"
    icon: "mdi:gauge"
    accuracy_decimals: 2
    filters:
      - calibrate_linear:
         - 1.038 -> 10.06
         - 1.659 -> 0.00
         
     
# ads1115-4B
#  - name: "Powerwall Strom"
#    id: ads1115_4B_a0
#    ads1115_id: ads1115_4B
#    multiplexer: 'A0_GND'
#    gain: 6.144
#    platform: ads1115
#    unit_of_measurement: "V"
#    icon: "mdi:gauge"
#    accuracy_decimals: 2
    
#  - name: "Reserve 01"
#    id: ads1115_4B_a1
#    ads1115_id: ads1115_4B
#    multiplexer: 'A1_GND'
#    gain: 6.144
#    platform: ads1115
#    unit_of_measurement: "V"
#    icon: "mdi:gauge"
#    accuracy_decimals: 2
    
#  - name: "Reserve 02"
#    id: ads1115_4B_a2
#    ads1115_id: ads1115_4B
#    multiplexer: 'A2_GND'
#    gain: 6.144
#    platform: ads1115
#    unit_of_measurement: "V"
#    icon: "mdi:gauge"
#    accuracy_decimals: 2
    
#  - name: "Reserve 03"
#    id: ads1115_4B_a3
#    ads1115_id: ads1115_4B
#    multiplexer: 'A3_GND'
#    gain: 6.144
#    platform: ads1115
#    unit_of_measurement: "V"
#    icon: "mdi:gauge"
#    accuracy_decimals: 2
6 Likes

Thanks for this. Worked perfectly for me once I got through the trials of getting a Wemos D1 Mini Pro to flash with ESPHome. I never have problems with nodemcu’s but I needed the external antenna for this job.

Thanks for sharing. works perfectly with wemos d1 mini and 2 ADS1115.