As per the topic. I am using an ESP32 with ESPHome uploaded. The board collects data from the BLE sensors and sends over MQTT to the rabpberry where the data is then displayed in Homebridge (I don't use HA).
The main problem is that the board has huge connection stability issues..From observing the logs on the router, the board is disconnected for a few seconds once every 15 mins. However, it happens that after disconnection it does not log on again for many hours, which makes it difficult to use the data displayed in the sensor statuses. For example, it was last seen by the router on Thursday at around 13:00.
I know that ESPHome reboots the connection when it does not detect a connection to the HA API for 15 minutes - is there any way to disable this?
Trying to add the following to the coniguration was getting a compile error about invalid settings:
.
Currently the full configuration looks like this:
.
The main problem is that the board has huge connection stability issues..From observing the logs on the router, the board is disconnected for a few seconds once every 15 mins. However, it happens that after disconnection it does not log on again for many hours, which makes it difficult to use the data displayed in the sensor statuses. For example, it was last seen by the router on Thursday at around 13:00.
I know that ESPHome reboots the connection when it does not detect a connection to the HA API for 15 minutes - is there any way to disable this?
Trying to add the following to the coniguration was getting a compile error about invalid settings:
power_save_mode: none
Currently the full configuration looks like this:
esphome:
name: esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "a04a2e757cbb2995xxxxxxxxxxx"
wifi:
ssid: INEA
password: xxxxxxxx
reboot_timeout: 0s
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32 Fallback Hotspot"
password: "xthfyuutyj"
captive_portal:
# Enable Bluetooth scanning for this ESP32
esp32_ble_tracker:
scan_parameters:
window: 200ms
sensor:
- platform: xiaomi_lywsd03mmc
mac_address: "58:xx:xx:xx:xx:xx"
bindkey: "yuiuyiiuiuiuyyuiuiy"
temperature:
name: "LYWSD03MMC_AN Temperature"
humidity:
name: "LYWSD03MMC_AN Humidity"
battery_level:
name: "LYWSD03MMC_AN Battery Level"
- platform: xiaomi_lywsd03mmc
mac_address: "58:xx:xx:xx:xx:xx"
bindkey: "yuiuyiiuiuiuyyuiuiy"
temperature:
name: "LYWSD03MMC_K1 Temperature"
humidity:
name: "LYWSD03MMC_K1 Humidity"
battery_level:
name: "LYWSD03MMC_K1 Battery Level"
- platform: xiaomi_lywsd03mmc
mac_address: "58:xx:xx:xx:xx:xx"
bindkey: "yuiuyiiuiuiuyyuiuiy"
temperature:
name: "LYWSD03MMC_K2 Temperature"
humidity:
name: "LYWSD03MMC_K2 Humidity"
battery_level:
name: "LYWSD03MMC_K2 Battery Level"
- platform: xiaomi_cgg1
mac_address: "58:xx:xx:xx:xx:xx"
bindkey: "yuiuyiiuiuiuyyuiuiy"
temperature:
name: "CGG1 Temperature"
humidity:
name: "CGG1 Humidity"
battery_level:
name: "CGG1 Battery Level"
mqtt:
broker: 192.168.0.101