ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

Little help with config to setup sent interval

Open JGeeforce opened this issue 3 years ago • 6 comments

I could use a little help with the config. I want to use your pvvx firmware and type to sent the data to my ESP32 board every minute. As I need this to control a fan in the shower. Which parameter do I need to adjust/set?

I asked this as it seems I have issues receiving data from 3 sensors I have. In HA, I sometimes see that values were updates 2 hours ago......

JGeeforce avatar Apr 10 '22 13:04 JGeeforce

What is the level of RSSI? At default settings, the data is updated every 10 seconds. ESP32 doesn't work well with BLE... In Home Assistant with "Bluetooth Low Energy Monitor" integration, I have 25 BLE devices and all of them are received normally, without dropouts. The cheapest USB BT adapter is used.

pvvx avatar Apr 10 '22 14:04 pvvx

I really don't see any point of changing update interval to longer time, since with default times battery lasts around 1 year... you get nothing but problems.

But, as already stated elsewhere: ESP32 works quite nice with tasmota FW, but not as good with ESPHome. I have currently 8 devices on single ESP32 with tasmota FW. With external antenna it works with all devices in my house and around it. Worst signal gets as low as -95dBm and still works like a rock.

I hope this will change when ESPHome will switch from arduino to esp-idf framework - it's already available for ESP32-C3modules.

Protoncek avatar Apr 10 '22 14:04 Protoncek

I hope this will change when ESPHome will switch from arduino to esp-idf framework - it's already available for ESP32-C3modules.

It is technically impossible to get stability on the same antenna with BLE and WiFi.

pvvx avatar Apr 11 '22 11:04 pvvx

What is the level of RSSI? At default settings, the data is updated every 10 seconds. ESP32 doesn't work well with BLE... In Home Assistant with "Bluetooth Low Energy Monitor" integration, I have 25 BLE devices and all of them are received normally, without dropouts. The cheapest USB BT adapter is used.

So, you don't use a ESP32 board at all? But just a BT usb dongle to receive the signals?

JGeeforce avatar Apr 13 '22 19:04 JGeeforce

So, you don't use a ESP32 board at all? But just a BT usb dongle to receive the signals?

Yes. BT4.0 usb dongle: CSR8510 A10

CSR8510 A10 MSFT100 sm

In other cases I use different BLE modules. Example - AdScanerTrg ... BL702, RTL872x, PHY62x2, W801, nrF52xxx, efr32... Or analog CC2540 USB Dongle BLE sniffer As well as finished products in the form of Smart-Plug for gateway BLE-WiFi. For example LSPA9 (Tuya based, BLE+Wifi) SoC BK7231N...

pvvx avatar Apr 14 '22 22:04 pvvx

As described here https://github.com/pvvx/ATC_MiThermometer/issues/149#issuecomment-1072981933 very good results can be achieved with ESP32 and ESPHome, the default settings need to be tweaked a bit. Best is of course ESP32 with LAN module, with WiFi disabled.

Have 10 Xiaomis around the house and receive all of them with one single ESP32-POE-ISO board, with pvvx default settings. Several sensor updates per minute from each sensor, very good.

RSSI between -90 and -70.

nagyrobi avatar May 02 '22 06:05 nagyrobi