Closed MikeHotel0815 closed 11 months ago
Sorry, the CODE Tag is not working!?
I have the same problem. Anyone an idea ?
I have the same problem. Anyone an idea ?
`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:
platform: template name: distance id: distance min_value: 0 max_value: 1350 initial_value: 315 optimistic: true step: 15 restore_value: true unit_of_measurement: cm set_action:
platform: template name: latency id: latency min_value: 0 max_value: 65000 initial_value: 12500 optimistic: true step: 25 restore_value: true unit_of_measurement: ms set_action:
button:
platform: restart name: Restart $device_name
platform: template name: "factory_reset_sensor" id: "factory_reset_sensor" on_press:
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:
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:
12:37:41 | [D] | [api:102] | Accepted 192.168.178.xxx
12:37:46 | [W] | [api.connection:080] | raspi-bridge (192.168.178.xxx): Connection closed
And in the log of the iobroker:
esphome.0 2022-08-07 12:37:45.635 warn Client 192.168.178.yyy Timeout, connection Lost, will reconnect automatically when device is available!
esphome.0 2022-08-07 12:37:40.672 error ESPHome client 192.168.178.yyy TypeError: Cannot read properties of undefined (reading 'deserializeBinary')
esphome.0 2022-08-07 12:37:40.655 error ESPHome client 192.168.178.yyy TypeError: Cannot read properties of undefined (reading 'deserializeBinary')
When I switch to degug-output of the instance, I get the following befor each "cannot read properties...":
esphome.0 2022-08-07 12:47:06.967 error ESPHome client 192.168.178.yyy TypeError: Cannot read properties of undefined (reading 'deserializeBinary')
esphome.0 2022-08-07 12:47:06.966 debug 192.168.178.yyy client data �T9�
esphome.0 2022-08-07 12:47:06.934 error ESPHome client 192.168.178.yyy TypeError: Cannot read properties of undefined (reading 'deserializeBinary')
esphome.0 2022-08-07 12:47:06.933 debug 192.168.178.yyy client data �L��
The strange bytes seem to vary over time.
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
Same problem
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
ota:
logger:
api:
esp32_ble_tracker:
ble_client:
jk_bms_ble:
binary_sensor:
button:
number:
sensor:
switch:
platform: jk_bms_ble charging: name: "${name} charging" discharging: name: "${name} discharging" balancer: name: "${name} balancer"
platform: ble_client ble_client_id: client0 name: "${name} enable bluetooth connection"
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!