Can I have both spi and i2c enabled on the same Esphome node?

I am trying to have a thermocouple and a ssd1306 display on the same Esphome Node. Is this possible? I am using a D1 min pro

spi:
  miso_pin: D6
  clk_pin: D7

i2c:
  sda: D1
  scl: D2
  scan: false

time:
  - platform: homeassistant
    id: esptime

font:
  - file: "amiko-regular.ttf"
    id: font1
    size: 10
    
  - file: "amiko-regular.ttf"
    id: font2
    size: 30
    
  - file: "amiko-regular.ttf"
    id: font3
    size: 14

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64" #SSD1306  SH1106 
    reset_pin: D0
    address: 0x3C

How is the thermocouple connected?

I am using the info found below. The only difference is that I am using the pins specified on my code (D6, D7, and D8) instead of D0, D1, and D2 because I am using those with the ssd1306 display. Thanks for you interest in helping.

I changed my configuration as follows and now both components are working. although temperature is not correct. :frowning:


spi:
  miso_pin: D6
  clk_pin: D5

i2c:
  sda: D1
  scl: D2
  scan: false 


display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64" 
    reset_pin: D0
    address: 0x3C

sensor:

  - platform: max6675
    name: "Temperature"
    cs_pin: D8
    update_interval: 30s
    id: 'temperature'
1 Like

I have same problem, when i2c and spi enabled then can’t see the thermocouples, only the i2c sensor. if i2c disabled then thermocouples are ok

Have you tried the fix?

seems like fix is:
i2c:
scan: false

Dunno, you’ll have to compare his settings.