home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

85.0 esphome first node connects to api, but second will not #19941

Closed JAAlperin closed 5 years ago

JAAlperin commented 5 years ago

When compiling and loading:

INFO Successfully compiled program.
INFO Connecting to 192.168.0.137
INFO Uploading /config/esphomeyaml/nodemcu01/.pioenvs/nodemcu01/firmware.bin (346672 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.0.137 using esphomelib API
INFO Connecting to 192.168.0.137:6053 (192.168.0.137)
WARNING Couldn't connect to API (Error connecting to 192.168.0.137: timed out). Trying to reconnect in 1 seconds
INFO Connecting to 192.168.0.137:6053 (192.168.0.137)
WARNING Couldn't connect to API (Error connecting to 192.168.0.137: [Errno 111] Connection refused). Trying to reconnect in 2 seconds
INFO Connecting to 192.168.0.137:6053 (192.168.0.137)
WARNING Couldn't connect to API (Error connecting to 192.168.0.137: [Errno 111] Connection refused). Trying to reconnect in 4 seconds

When creating second integration get error message:

Can't connect to ESP. Please make sure your YAML file contains an 'api:' line.

YAML file is:

esphomeyaml:
  name: nodemcu01
  platform: ESP8266
  board: nodemcuv2
  esphomelib_version:
    repository: https://github.com/OttoWinter/esphomelib.git
#   branch: master
    tag: v1.10.0
  arduino_version: latest

logger: {}

api:
  password: 'redacted'

ota:
  password: 'redacted'
  safe_mode: true

wifi:
  ssid: ddwrt2G
# ssid: redacted
  password: 'redacted'
# domain: .local
  domain: redacted
# Optional manual IP
  manual_ip:
    static_ip: 192.168.0.137
    gateway: 192.168.0.1
    subnet: 255.255.255.0

sensor:
  - platform: dht
    model: DHT11
    pin: D2
    temperature:
      name: "Bedroom Temperature"
      filters:
        - offset: 2.0
        - filter_nan:
      expire_after: 1800s
    humidity:
      name: "Bedroom Humidity"
      expire_after: 1800s
      filters:
        - multiply: 0.55
        - filter_nan:
    update_interval: 300s
OttoWinter commented 5 years ago

This is an ESPHome issue, not Home Assistant. Please report the issue over at https://github.com/OttoWinter/esphomelib