mics_4514 not reporting data
- Dominant language
- No language data
- Stars
- 313
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### The problem
I want to use the `mics_4514` from DFRobot to detect various gasses. I have it hooked up to a firebeetle 2 ESP32-E, and it all seems to be recognized, but I'm not seeing it register any actual detection of gasses in response to those gasses being present. I know there is a warm-up time, but this is the case even 24 hours after it has been online.

### Which version of ESPHome has the issue?
2023.2.4
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2023.2.5
### What platform are you using?
ESP32
### Board
firebeetle 2
### Component causing the issue
mics_4514
### Example YAML snippet
```yaml
esphome:
name: room-esp32
friendly_name: room-esp32
esp32:
board: esp32dev
# Enable logging
logger:
i2c:
# Enable Home Assistant API
api:
encryption:
key: "password"
ota:
password: "password"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "room-Esp32 Fallback Hotspot"
password: "password"
captive_portal:
sensor:
- platform: mics_4514
nitrogen_dioxide:
name: Nitrogen Dioxide
unit_of_measurement: PPM
accuracy_decimals: 2
carbon_monoxide:
name: Carbon Monoxide
unit_of_measurement: PPM
accuracy_decimals: 2
hydrogen:
name: Hydrogen
unit_of_measurement: PPM
accuracy_decimals: 2
ethanol:
name: Ethanol
unit_of_measurement: PPM
accuracy_decimals: 2
methane:
name: Methane
unit_of_measurement: PPM
accuracy_decimals: 2
ammonia:
name: Ammonia
unit_of_measurement: PPM
accuracy_decimals: 2
update_interval: 60s
```
### Anything in the logs that might be useful for us?
```txt
INFO Reading configuration /config/esphome/room-esp32.yaml...
INFO Starting log output from room-esp32.local using esphome API
INFO Successfully connected to room-esp32.local
[09:26:59][I][app:102]: ESPHome version 2023.2.4 compiled on Feb 26 2023, 20:29:59
[09:26:59][C][wifi:504]: WiFi:
[09:26:59][C][wifi:362]: Local MAC: 08:3A:J1:14:2A:DC
[09:26:59][C][wifi:363]: SSID: [redacted]
[09:26:59][C][wifi:364]: IP Address: 192.168.1.2
[09:26:59][C][wifi:366]: BSSID: [redacted]
[09:26:59][C][wifi:367]: Hostname: 'room-esp32'
[09:26:59][C][wifi:369]: Signal strength: -76 dB ▂▄▆█
[09:26:59][C][wifi:373]: Channel: 11
[09:26:59][C][wifi:374]: Subnet: 255.255.255.0
[09:26:59][C][wifi:375]: Gateway: 192.168.1.1
[09:26:59][C][wifi:376]: DNS1: 1.1.1.1
[09:26:59][C][wifi:377]: DNS2: 0.0.0.0
[09:26:59][C][logger:293]: Logger:
[09:26:59][C][logger:294]: Level: DEBUG
[09:26:59][C][logger:295]: Log Baud Rate: 115200
[09:26:59][C][logger:296]: Hardware UART: UART0
[09:26:59][C][i2c.arduino:052]: I2C Bus:
[09:26:59][C][i2c.arduino:053]: SDA Pin: GPIO21
[09:26:59][C][i2c.arduino:054]: SCL Pin: GPIO22
[09:26:59][C][i2c.arduino:055]: Frequency: 50000 Hz
[09:26:59][C][i2c.arduino:058]: Recovery: bus successfully recovered
[09:26:59][I][i2c.arduino:068]: Results from i2c bus scan:
[09:26:59][I][i2c.arduino:074]: Found i2c device at address 0x75
[09:26:59][C][mics_4514:035]: MICS 4514:
[09:26:59][C][mics_4514:036]: Address: 0x75
[09:26:59][C][mics_4514:037]: Update Interval: 60.0s
[09:26:59][C][mics_4514:038]: Nitrogen Dioxide 'Nitrogen Dioxide'
[09:26:59][C][mics_4514:038]: State Class: 'measurement'
[09:26:59][C][mics_4514:038]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:038]: Accuracy Decimals: 2
[09:26:59][C][mics_4514:039]: Carbon Monoxide 'Carbon Monoxide'
[09:26:59][C][mics_4514:039]: State Class: 'measurement'
[09:26:59][C][mics_4514:039]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:039]: Accuracy Decimals: 2
[09:26:59][C][mics_4514:040]: Methane 'Methane'
[09:26:59][C][mics_4514:040]: State Class: 'measurement'
[09:26:59][C][mics_4514:040]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:040]: Accuracy Decimals: 2
[09:26:59][C][mics_4514:041]: Ethanol 'Ethanol'
[09:26:59][C][mics_4514:041]: State Class: 'measurement'
[09:26:59][C][mics_4514:041]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:041]: Accuracy Decimals: 2
[09:26:59][C][mics_4514:042]: Hydrogen 'Hydrogen'
[09:26:59][C][mics_4514:042]: State Class: 'measurement'
[09:26:59][C][mics_4514:042]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:042]: Accuracy Decimals: 2
[09:26:59][C][mics_4514:043]: Ammonia 'Ammonia'
[09:26:59][C][mics_4514:043]: State Class: 'measurement'
[09:26:59][C][mics_4514:043]: Unit of Measurement: 'PPM'
[09:26:59][C][mics_4514:043]: Accuracy Decimals: 2
[09:26:59][C][captive_portal:088]: Captive Portal:
[09:26:59][C][mdns:108]: mDNS:
[09:26:59][C][mdns:109]: Hostname: room-esp32
[09:26:59][C][ota:093]: Over-The-Air Updates:
[09:26:59][C][ota:094]: Address: room-esp32.local:3232
[09:26:59][C][ota:097]: Using Password.
[09:26:59][C][api:138]: API Server:
[09:26:59][C][api:139]: Address: room-esp32.local:6053
[09:26:59][C][api:141]: Using noise encryption: YES
```
### Additional information
I have a FireBeetle 2 ESP32-E - the `firebeetle32` board type does not work (won't build), and the `dfrobot_firebeetle2_esp32s3` board type doesn't work with i2c (esp32s3 isn't supported...but I think this board is an ESP32-E anyway). Because of this, I use the `esp32dev` board type. The gas sensor board is the Gravity: MEMS Gas Sensor (CO, Alcohol, NO2 & NH3) - I2C - MiCS-4514.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.