Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107836

Esp8266 air sensor project - issues flashing node - yaml never finishes

$
0
0

I am attempting to build an an air quality sensor using 2 websites Home Tech Hacker and Pieter Brinkman as a guide.

I’ve made it to the point where I need to install/flash the software on the ESP8266. When I do, it never finishes. It runs, and runs, and runs…

I’ve waited over an hour before thinking, something is wrong.

That all being said, this is my first time trying this or anything similar I’ve only had a HA server for a week. I managed to get this Shelly garage door switch working so I was feeling good about my odds for this air sensor!

Some info:

I have the ESP8266 plugged directly into a USB3 port on the HA server

HA is installed on a Intel NUK with a 4-Core I-3 and 12G

  • Core 2025.5.1
  • Supervisor 2025.04.1
  • Operating System 15.2
  • Frontend 20250509.0

I’ve tried:

Searching the internet for the same issue. Found similar but not the same.
Deleting and creating a new yaml file
Flashing using wireless

It “appears” the sensor is working as the logs show sensor readings similar to the picture above.

When i look for the sensor data under devices or entities, i dont see anything.

In ESP home, it shows the sensor is offline.

.yaml file

esphome:
  name: basement-air-sen1
  friendly_name: basement-air-sen1

esp8266:
  board: nodemcu

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "runEQWBWuZotyBKo6GwzKsRR3V3rTwd4OMOvF9y1474="

ota:
  - platform: esphome
    password: "3ab4db8da2a3d6ad81feca514f180aa2"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Basement-Air-Sen1"
    password: "xxxxx"

captive_portal:
    
uart:
  tx_pin: D6
  rx_pin: D7
  baud_rate: 9600

sensor:
  - platform: pmsx003
    type: PMSX003
    pm_1_0:
      name: "Particulate Matter <1.0µm Concentration"
    pm_2_5:
      name: "Particulate Matter <2.5µm Concentration"
    pm_10_0:
      name: "Particulate Matter <10.0µm Concentration"
    update_interval: 60s

switch:
  - platform: gpio
    pin:
      number: D3
    id: measure_aq
    name: "Start AQS Sensor 1"

interval:
  - interval: 120s
    then:
      - switch.turn_on: measure_aq
      - delay: 30s
      - switch.turn_off: measure_aq

What have I done wrong?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107836


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>