esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

ESP keeps disconnecting #1050

Closed terencefaul closed 3 years ago

terencefaul commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

ESP (ESP32/ESP8266, Board/Sonoff):

Affected component:

Description of problem: The esp keeps dropping packets on a ping and the logs so it disconnecting from the api. Especially may be crashing but I am not sure where it is coming from

Problem-relevant YAML-configuration entries: `esphome: name: irrigation2 platform: ESP8266 board: nodemcuv2

wifi: networks:

Enable logging

logger: level: VERY_VERBOSE

Enable Home Assistant API

api:

ota:

sensor:

- platform: adc

pin: VCC

name: "Irrigation 2 Voltage"

- platform: dht

model: AM2302

pin: D4

temperature:

name: "Irrigation 2 Temperature"

humidity:

name: "Irrigation 2 Humidity"

update_interval: 60s

dallas:

status_led: pin: GPIO2

binary_sensor:

switch:


**Logs (if applicable):**
<!--
Please copy the debug log here. If possible, also connect to the ESP over USB and copy those logs into the backticks.
-->

PASTE DEBUG LOG HERE

`3:57:56] key: 1682762411 [13:57:56] state: NO [13:57:56]} [13:57:56][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:57:56] key: 1682762408 [13:57:56] state: NO [13:57:56]} [13:57:56][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:57:56] key: 1709438994 [13:57:56] state: NO [13:57:56]} [13:58:09][VV][api.service:250]: on_ping_request: PingRequest {} [13:58:09][VV][api.service:035]: send_ping_response: PingResponse {} [13:58:14][V][api.connection:668]: Error: Disconnecting Home Assistant 0.101.3 (192.168.1.4) [13:58:14][D][api:067]: Disconnecting Home Assistant 0.101.3 (192.168.1.4) [13:58:14][D][binary_sensor:036]: 'Irrigation 2 Status': Sending state OFF [13:58:16][VV][scheduler:131]: Running interval 'update' with interval=60000 last_execution=41265 (now=101265) [13:58:16][VV][scheduler:025]: set_timeout(name='0xD50316002C9DFF28', timeout=750) [13:58:17][VV][scheduler:131]: Running timeout '0xD50316002C9DFF28' with interval=750 last_execution=101268 (now=102018) [13:58:17][VV][dallas.sensor:249]: Scratch pad: D1.01.4B.46.7F.FF.7F.10.DA (DA) [13:58:17][D][dallas.sensor:148]: 'Outside Temperature': Got Temperature=29.1°C [13:58:17][V][sensor:013]: 'Outside Temperature': Received new state 29.062500 [13:58:17][D][sensor:092]: 'Outside Temperature': Sending state 29.06250 °C with 1 decimals of accuracy [13:58:21][VV][scheduler:131]: Running interval 'update' with interval=60000 last_execution=45544 (now=105544) [13:58:21][V][sensor:013]: 'Uptime Sensor': Received new state 105.544998 [13:58:21][D][sensor:092]: 'Uptime Sensor': Sending state 105.54500 s with 0 decimals of accuracy [13:58:23][D][binary_sensor:036]: 'Irrigation 2 Status': Sending state ON [13:58:23][VV][api.service:222]: on_hello_request: HelloRequest { [13:58:23] client_info: 'Home Assistant 0.101.3' [13:58:23]} [13:58:23][V][api.connection:563]: Hello from client: 'Home Assistant 0.101.3 (192.168.1.4)' [13:58:23][VV][api.service:010]: send_hello_response: HelloResponse { [13:58:23] api_version_major: 1 [13:58:23] api_version_minor: 3 [13:58:23] server_info: 'irrigation2 (esphome v1.14.2)' [13:58:23]} [13:58:23][VV][api.service:229]: on_connect_request: ConnectRequest { [13:58:23] password: '' [13:58:23]} [13:58:23][D][api.connection:579]: Client 'Home Assistant 0.101.3 (192.168.1.4)' connected successfully! [13:58:23][VV][api.service:015]: send_connect_response: ConnectResponse { [13:58:23] invalid_password: NO [13:58:23]} [13:58:23][VV][api.service:264]: on_device_info_request: DeviceInfoRequest {} [13:58:23][VV][api.service:040]: send_device_info_response: DeviceInfoResponse { [13:58:23] uses_password: NO [13:58:23] name: 'irrigation2' [13:58:23] mac_address: '80:7D:3A:3C:5B:4B' [13:58:23] esphome_version: '1.14.2' [13:58:23] compilation_time: 'Feb 13 2020, 13:55:18' [13:58:23] model: 'PLATFORMIO_NODEMCUV2' [13:58:23] has_deep_sleep: NO [13:58:23]} [13:58:24][VV][api.service:271]: on_list_entities_request: ListEntitiesRequest {} [13:58:24][VV][api.service:051]: send_list_entities_binary_sensor_response: ListEntitiesBinarySensorResponse { [13:58:24] object_id: 'outside_box_door' [13:58:24] key: 1204846219 [13:58:24] name: 'Outside box Door' [13:58:24] unique_id: 'irrigation2binary_sensoroutside_box_door' [13:58:24] device_class: 'door' [13:58:24] is_status_binary_sensor: NO [13:58:24]} [13:58:24][VV][api.service:051]: send_list_entities_binary_sensor_response: ListEntitiesBinarySensorResponse { [13:58:24] object_id: 'irrigation_2_status' [13:58:24] key: 2311610255 [13:58:24] name: 'Irrigation 2 Status' [13:58:24] unique_id: 'irrigation2binary_sensorirrigation_2_status' [13:58:24] device_class: 'connectivity' [13:58:24] is_status_binary_sensor: YES [13:58:24]} [13:58:24][VV][api.service:113]: send_list_entities_sensor_response: ListEntitiesSensorResponse { [13:58:24] object_id: 'irrigation_2_wifi_signal_sensor' [13:58:24] key: 1541241102 [13:58:24] name: 'Irrigation 2 WiFi Signal Sensor' [13:58:24] unique_id: '807d3a3c5b4b-wifisignal' [13:58:24] icon: 'mdi:wifi' [13:58:24] unit_of_measurement: 'dB' [13:58:24] accuracy_decimals: 0 [13:58:24] force_update: NO [13:58:24]} [13:58:24][VV][api.service:113]: send_list_entities_sensor_response: ListEntitiesSensorResponse { [13:58:24] object_id: 'uptime_sensor' [13:58:24] key: 683514054 [13:58:24] name: 'Uptime Sensor' [13:58:24] unique_id: '807d3a3c5b4b-uptime' [13:58:24] icon: 'mdi:timer' [13:58:24] unit_of_measurement: 's' [13:58:24] accuracy_decimals: 0 [13:58:24] force_update: NO [13:58:24]} [13:58:24][VV][api.service:113]: send_list_entities_sensor_response: ListEntitiesSensorResponse { [13:58:25] object_id: 'outside_temperature' [13:58:25] key: 2259435129 [13:58:25] name: 'Outside Temperature' [13:58:25] unique_id: 'dallas-D50316002C9DFF28' [13:58:25] icon: 'mdi:thermometer' [13:58:25] unit_of_measurement: '°C' [13:58:25] accuracy_decimals: 1 [13:58:25] force_update: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_1' [13:58:25] key: 1682762415 [13:58:25] name: 'Irrigation 2 - Zone 1' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_1' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_2' [13:58:25] key: 1682762412 [13:58:25] name: 'Irrigation 2 - Zone 2' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_2' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_3' [13:58:25] key: 1682762413 [13:58:25] name: 'Irrigation 2 - Zone 3' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_3' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_4' [13:58:25] key: 1682762410 [13:58:25] name: 'Irrigation 2 - Zone 4' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_4' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_5' [13:58:25] key: 1682762411 [13:58:25] name: 'Irrigation 2 - Zone 5' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_5' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation2-_zone_6' [13:58:25] key: 1682762408 [13:58:25] name: 'Irrigation 2 - Zone 6' [13:58:25] unique_id: 'irrigation2switchirrigation2-_zone_6' [13:58:25] icon: '' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:127]: send_list_entities_switch_response: ListEntitiesSwitchResponse { [13:58:25] object_id: 'irrigation_2' [13:58:25] key: 1709438994 [13:58:25] name: 'Irrigation 2' [13:58:25] unique_id: 'irrigation2switchirrigation_2' [13:58:25] icon: 'mdi:restart' [13:58:25] assumed_state: NO [13:58:25]} [13:58:25][VV][api.service:045]: send_list_entities_done_response: ListEntitiesDoneResponse {} [13:58:25][VV][api.service:278]: on_subscribe_states_request: SubscribeStatesRequest {} [13:58:25][VV][api.service:328]: on_subscribe_homeassistant_services_request: SubscribeHomeassistantServicesRequest {} [13:58:25][VV][api.service:058]: send_binary_sensor_state_response: BinarySensorStateResponse { [13:58:25] key: 1204846219 [13:58:25] state: YES [13:58:25]} [13:58:25][VV][api.service:349]: on_subscribe_home_assistant_states_request: SubscribeHomeAssistantStatesRequest {} [13:58:25][VV][api.service:058]: send_binary_sensor_state_response: BinarySensorStateResponse { [13:58:25] key: 2311610255 [13:58:25] state: YES [13:58:25]} [13:58:25][VV][api.service:120]: send_sensor_state_response: SensorStateResponse { [13:58:25] key: 1541241102 [13:58:25] state: -21 [13:58:25]} [13:58:25][VV][api.service:120]: send_sensor_state_response: SensorStateResponse { [13:58:25] key: 683514054 [13:58:25] state: 105.545 [13:58:25]} [13:58:25][VV][api.service:120]: send_sensor_state_response: SensorStateResponse { [13:58:25] key: 2259435129 [13:58:25] state: 29.0625 [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762415 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762412 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762413 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762410 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762411 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1682762408 [13:58:25] state: NO [13:58:25]} [13:58:25][VV][api.service:134]: send_switch_state_response: SwitchStateResponse { [13:58:25] key: 1709438994 [13:58:25] state: NO [13:58:25]} [13:58:27][VV][scheduler:131]: Running interval 'update' with interval=60000 last_execution=51783 (now=111784) [13:58:27][V][sensor:013]: 'Irrigation 2 WiFi Signal Sensor': Received new state -25.000000 [13:58:27][D][sensor:092]: 'Irrigation 2 WiFi Signal Sensor': Sending state -25.00000 dB with 0 decimals of accuracy [13:58:27][VV][api.service:120]: send_sensor_state_response: SensorStateResponse { [13:58:27] key: 1541241102 [13:58:27] state: -25 [13:58:27]} [13:58:35][I][ota:046]: Boot seems successful, resetting boot loop counter. [13:58:35][VV][preferences:051]: SAVE 32: 0=0x00000000 1=0x0DEFE4E3 (Type=233825507, CRC=0x0DEFE4E3) Serial port closed!``

Additional information and things you've tried:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.