Communication failed?

Hey everyone!
I’m trying to get an ESP8266 with my CSS811 sensor running.

First step was soldering the pins to the board. Then I connected it successfully (or at least I hope so) to the pins D2, D1, the GND and the 3V3.

When I want to start it, this line appears in the logs:

(Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)

as well as

[W][ccs811:124]: Communication failed! Is the sensor connected

Here’s (a part of) the log:

 [18:49:45][I][app:100]: ESPHome version 1.14.3 compiled on Dec 13 2019, 18:48:58
 [18:49:45][C][wifi:415]: WiFi:
 [18:49:45][C][wifi:283]:   SSID: 'MYID'[redacted]
 [18:49:45][C][wifi:284]:   IP Address: MYIP
 [18:49:45][C][wifi:286]:   BSSID: MYBSSID[redacted]
 [18:49:45][C][wifi:287]:   Hostname: 'esp1'
 [18:49:45][C][wifi:291]:   Signal strength: -63 dB ▂▄▆█
 [18:49:45][C][wifi:295]:   Channel: 6
 [18:49:45][C][wifi:296]:   Subnet: 255.255.255.0
 [18:49:45][C][wifi:297]:   Gateway: MYGATEWAY
 [18:49:45][C][wifi:298]:   DNS1: MYDNS1
 [18:49:45][C][wifi:299]:   DNS2: MYDNS2
 [18:49:45][C][i2c:028]: I2C Bus:
 [18:49:45][C][i2c:029]:   SDA Pin: GPIO4
 [18:49:45][C][i2c:030]:   SCL Pin: GPIO5
 [18:49:45][C][i2c:031]:   Frequency: 50000 Hz
 [18:49:45][C][logger:175]: Logger:
 [18:49:45][C][logger:176]:   Level: DEBUG
 [18:49:45][C][logger:177]:   Log Baud Rate: 115200
 [18:49:45][C][logger:178]:   Hardware UART: UART0
 [18:49:45][C][dht:017]: DHT:
 [18:49:45][C][dht:018]:   Pin: GPIO13 (Mode: INPUT)
 [18:49:45][C][dht:024]:   Model: DHT22 (or equivalent)
 [18:49:45][C][dht:027]:   Update Interval: 30.0s
 [18:49:45][C][dht:029]:   Temperature 'Temperature Room'
 [18:49:45][C][dht:029]:     Unit of Measurement: '°C'
 [18:49:45][C][dht:029]:     Accuracy Decimals: 1
 [18:49:45][C][dht:029]:     Icon: 'mdi:thermometer'
 [18:49:45][C][dht:030]:   Humidity 'Humidity Room'
 [18:49:45][C][dht:030]:     Unit of Measurement: '%'
 [18:49:45][C][dht:030]:     Accuracy Decimals: 0
 [18:49:45](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
 [18:49:46][C][ccs811:111]: CCS811
 [18:49:46][C][ccs811:112]:   Address: 0x5A
 [18:49:46][C][ccs811:113]:   Update Interval: 30.0s
 [18:49:46][C][ccs811:114]:   CO2 Sensor 'CCS811 eCO2 Value'
 [18:49:46][C][ccs811:114]:     Unit of Measurement: 'ppm'
 [18:49:46][C][ccs811:114]:     Accuracy Decimals: 0
 [18:49:46][C][ccs811:114]:     Icon: 'mdi:periodic-table-co2'
 [18:49:46][C][ccs811:115]:   TVOC Sensor 'CCS811 Total Volatile Organic Compound'
 [18:49:46][C][ccs811:115]:     Unit of Measurement: 'ppb'
 [18:49:46][C][ccs811:115]:     Accuracy Decimals: 0
 [18:49:46][C][ccs811:115]:     Icon: 'mdi:radiator'
 [18:49:46][C][ccs811:119]:   Baseline: NOT SET
 [18:49:46][W][ccs811:124]: Communication failed! Is the sensor connected?
 [18:49:46][C][captive_portal:169]: Captive Portal:
 [18:49:46][C][ota:029]: Over-The-Air Updates:
 [18:49:46][C][ota:030]:   Address: esp1.local:8266
 [18:49:46][C][api:095]: API Server:
 [18:49:46](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
 [18:49:48][D][api.connection:583]: Client 'Home Assistant 0.102.2 (192.168.0.13)' connected successfully!
 [18:50:15][D][dht:048]: Got Temperature=22.6°C Humidity=44.7%
 [18:50:15][D][sensor:092]: 'Temperature Room': Sending state 22.60000 °C with 1 decimals of accuracy
 [18:50:15][D][sensor:092]: 'Humidity Room': Sending state 44.70000 % with 0 decimals of accuracy

Does anyone know what to do? Thanks!

Post your yaml?

esphome:
name: votair
substitutions:
hostname: ‘VOTAIR:’
esp8266:
board: nodemcuv2

Enable logging

logger:

Enable Home Assistant API

api:

ota:
password: “626e3ee26f586edd01aca7253ec33cfa”

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “Votair Fallback Hotspot”
password: “KmqpoQJOWO6B”

captive_portal:

web_server:
port: 80

sensor:

  • platform: wifi_signal
    name: $hostname WiFi Signal
    id: rssi_value
    update_interval: 60s

  • platform: uptime
    name: $hostname Uptime
    id: uptime_s
    update_interval: 15s

  • platform: template
    name: $hostname WiFi
    lambda: |-
    return id(rssi_value).state * 2 + 200.0;
    icon: mdi:wifi
    unit_of_measurement: ‘%’
    update_interval: 60s

  • platform: ccs811
    eco2:
    name: “CCS811 eCO2 Value”
    tvoc:
    name: “CCS811 Total Volatile Organic Compound”
    address: 0x5A
    update_interval: 60s

switch:

  • platform: restart
    name: EspHome Node Restart
    binary_sensor:

  • platform: status
    name: $hostname Status
    text_sensor:

  • platform: wifi_info
    ssid:
    name: $hostname WiFi SSID
    ip_address:
    name: $hostname IP Address
    bssid:
    name: $hostname Connected BSSID
    mac_address:
    name: $hostname Mac Wifi Address
    scan_results:
    name: $hostname Latest Scan Results

  • platform: version
    name: $hostname ESPHome Version

  • platform: wifi_info

  • platform: template
    name: $hostname Uptime (formatted)
    lambda: |-
    uint32_t dur = id(uptime_s).state;
    int dys = 0;
    int hrs = 0;
    int mnts = 0;
    if (dur > 86399) {
    dys = trunc(dur / 86400);
    dur = dur - (dys * 86400);
    }
    if (dur > 3599) {
    hrs = trunc(dur / 3600);
    dur = dur - (hrs * 3600);
    }
    if (dur > 59) {
    mnts = trunc(dur / 60);
    dur = dur - (mnts * 60);
    }
    char buffer[17];
    sprintf(buffer, “%ud %02uh %02um %02us”, dys, hrs, mnts, dur);
    return {buffer};
    icon: mdi:clock-start
    update_interval: 15s

i2c:
sda: D1
scl: D2

that’s never going to work, it isn’t yaml

esphome:
  name: votesp32

esp32:
  board: nodemcu-32s
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "66cefde8fd367f82897835a868150afd"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Votesp32 Fallback Hotspot"
    password: "NoGblSXsoV4W"

captive_portal:
i2c:
  sda: 21
  scl: 22
  scan: true

sensor:
  - platform: ccs811
    eco2:
      name: "eCO2"
      filters:
        - median
        - throttle: 60s
        - heartbeat: 60s
    tvoc:
      name: "TVOC"
      filters:
        - median
        - throttle: 60s
        - heartbeat: 60s
    address: 0x5A
    update_interval: 60s
# Example configuration entry
esp32_ble_tracker:

switch:
  - platform: gpio
    pin: GPIO2
    id: led

script:
  - id: start_led
    then:
      - switch.turn_on: led
      - delay: 1min
      - switch.turn_off: led

exposure_notifications:
  on_exposure_notification:
    then:
      - lambda: |
          ESP_LOGD("main", "Got notification:");
          ESP_LOGD("main", "  RPI: %s", hexencode(x.rolling_proximity_identifier).c_str());
          ESP_LOGD("main", "  RSSI: %d", x.rssi);

      # Stop existing timer so that turn_off doesn't get called
      - script.stop: start_led
      - script.execute: start_led

Are you taking the piss?