DrozmotiX / ioBroker.esphome

Control your ESP8266/ESP32 with simple yet powerful configuration files created and managed by ESPHome
MIT License
30 stars 23 forks source link

Connection to ioBroker is getting lost after a few seconds. #134

Closed MikeHotel0815 closed 11 months ago

MikeHotel0815 commented 2 years ago

I pushed the following yaml to my ESP32. All went fine and the ESP32 is connecting to ioBroker.

` substitutions: name: jkbms01 device_description: "Monitor and control a JK-BMS via bluetooth" external_components_source: github://syssi/esphome-jk-bms@main mac_address: xx:xx:xx:xx:xx:xx protocol_version: JK02

esphome: name: bms01 comment: "Monitor and control a JK-BMS via bluetooth" project: name: "syssi.esphome-jk-bms" version: 1.1.0

esp32: board: wemos_d1_mini32 framework: type: esp-idf version: latest

external_components:

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

Set this to the IP of the ESP

static_ip: 10.22.22.110
# Set this to the IP address of the router. Often ends with .1
gateway: 10.0.0.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.0.0.0

ota:

logger:

api:

esp32_ble_tracker:

ble_client:

jk_bms_ble:

binary_sensor:

button:

number:

sensor:

switch:

text_sensor:

But after a few seconds. I am getting a

[08:43:30][W][api.connection:080]: iobrokermaster (::FFFF:10.200.200.1): Connection closed

The connection is not coming back at all.

Can anyone give me some help?

Thanx in advance!

MikeHotel0815 commented 2 years ago

Sorry, the CODE Tag is not working!?

Yosh1977 commented 2 years ago

I have the same problem. Anyone an idea ?

Yosh1977 commented 2 years ago

I have the same problem. Anyone an idea ?

That ist my Yaml

`esphome: name: test

esp8266: board: esp01_1m

logger:

api:

ota: password: "58806ed2e79dac18f843ff7f75c227a7"

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

ap: ssid: "Test Fallback Hotspot" password: "nu2Pe4AN9p4g"

substitutions: device_name: test

captive_portal:

web_server: port: 80

binary_sensor:

uart: id: uart_bus tx_pin: GPIO4 rx_pin: GPIO5 baud_rate: 115200 debug: direction: BOTH dummy_receiver: true after: delimiter: "\n" sequence:

number:

button:

An when I reduse it to

esphome: name: test

esp8266: board: esp01_1m

logger:

api:

ota: password: "58806ed2e79dac18f843ff7f75c227a7"

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

ap: ssid: "Test Fallback Hotspot" password: "nu2Pe4AN9p4g"

substitutions: device_name: test

captive_portal:

web_server: port: 80

binary_sensor:

uart: id: uart_bus tx_pin: GPIO4 rx_pin: GPIO5 baud_rate: 115200 debug: direction: BOTH dummy_receiver: true after: delimiter: "\n" sequence:

Than the connection still are connected

stefan-3r commented 2 years ago

I have the same problem -regardless of my yaml-config and my ESP-device (eg a Wemos D1 mini and a seperate NodeMCU V2).

What happens:

I think, this problem was not there for the first few days I installed the ESP-Home-Adapter and occurs since last wednesday (august 3rd). But I am not sure. And I don't know what I changed since then with relation to iobroker...

What I tried since I encountered the problem:

My configuration is:

I attached two of my tested ESPHome-configs, both have this problem, also some different (filename is .yaml.txt instead of .yaml, because github says, .yaml is not allowed) briefkasten.yaml.txt basic.yaml.txt

I like the ESPHome-adapter and the whole concept very much. And even if I switch to direct MQTT-communication because of faster sending of sensor-data after wakeup from deep-sleep, I'd like to get it running via esphome - it's just so easy and fast to get things running (when it's all running ;-) ) So many thanx for your development, @DrozmotiX, and thanx in advance for your kind support!

Stefan

Trrw commented 1 year ago

Same problem