Problems with ZyAura

Hello,

unfortunately, I am unable to integrate my Co2 (ZGm05) sensor into esp home.

esphome:
  name: home
  platform: ESP32
  board: esp32dev

wifi:
  ssid: 
  password: 

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: 
    password: 

captive_portal:

# Enable logging
logger:
  level: VERY_VERBOSE

# Enable Home Assistant API
api:
  password: 

ota:
  password: 
  
sensor:
  - platform: zyaura
    clock_pin: 26
    data_pin: 27
    update_interval: 30s
    co2:
      name: "CO2"
    temperature:
      name: "Temperatur"
    humidity:
      name: "Luftfeuchtigkeit"

Log:

[00:06:48][V][sensor:023]: 'CO2': Received new state nan
[00:06:48][D][sensor:117]: 'CO2': Sending state nan ppm with 0 decimals of accuracy
[00:06:48][VV][api.service:105]: send_sensor_state_response: SensorStateResponse {
  key: 776668964
  state: nan
  missing_state: NO
}
[00:06:48][W][zyaura:086]: Sensor reported invalid data. Is the update interval too small?
[00:06:48][V][sensor:023]: 'Temperatur': Received new state nan
[00:06:48][D][sensor:117]: 'Temperatur': Sending state nan °C with 1 decimals of accuracy
[00:06:48][VV][api.service:105]: send_sensor_state_response: SensorStateResponse {
  key: 1344682989
  state: nan
  missing_state: NO
}
[00:06:48][W][zyaura:086]: Sensor reported invalid data. Is the update interval too small?
[00:06:48][V][sensor:023]: 'Luftfeuchtigkeit': Received new state nan
[00:06:48][D][sensor:117]: 'Luftfeuchtigkeit': Sending state nan % with 1 decimals of accuracy
[00:06:48][VV][api.service:105]: send_sensor_state_response: SensorStateResponse {
  key: 4163663571
  state: nan
  missing_state: NO
}
[00:06:48][W][zyaura:086]: Sensor reported invalid data. Is the update interval too small?
[00:06:49][VV][api.service:220]: on_ping_request: PingRequest {}

If I swap the pins in the config, I only get the following message. So I no longer have access. Flashing works anyway.


WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.1.165: [Errno 111] Connection refused). Re-Trying in 1

How long did you wait?

1 Like

I waited over an hour on both attempts.

I also do not understand why the Esp no longer reacts when I swap the pins.

Try
clock_pin: 27
data_pin: 26