Closed royco2 closed 1 year ago
Hey.
I only see "debug" and "status" on the topic, no adv messages
Any way to debug what the nodemcu see's? mac wise?
If it does see adv, it will transmit it to MQTT. It is very simple. But then you'd actually see it in logs.
You may try Tasmota gateway, to check if that one is working for you.
I do see adv data in NRFConnect, however, I do get the BLE message in the ESPHome logs..
and here is home assistant:
I am using ESP32 Dev Kit V1/V4.
Open to suggestions here
Yup, looks like either this chip can't handle active scan simultaneously with WiFi, or something is wrong with Bluetooth stack on it.
I'd suggest trying Tasmota gateway to verify, if it's working. Or trying another ESP32. I used Chinese ESP32-MINI, some generic wroom32 dev boards from Amazon, even ESP32-C3 - all work good.
When you say Tasmota you mean the custom firmware you have?
I have this running now on the same ESP32
This is what the device shows:
This is what the logs show:
This is what the MQTT integration in HASS shows:
And this is what I see when I set up the integration in general:
@formatBCE , What is wrong in the setup that it doesn't show me the controls?
Thanks!
@sdimitrov-sms well, it looks like adv is empty. Old custom firmware is sending empty string even when adv data can't be read. And of course, HA integration will show everything as unavailable, because there's empty strings from gateway, so no data received.
Check "more" section in nRFConnect, while scanning and meanwhile operate the lock manually - you should see changing payload (see screenshots). If it's there - then the problem is 99% in bad ESP chip.
Okay, so the problem was simple, it was a PEBCAK issue. Used an O instead of a 0 in the MAC address config. sorry for the hassle....
Oh geez... I guess we should have some error logs for cases like this.
Glad you found it though.
P.S. wait a sec, but you don't have 0 in your lock MAC!
"XX:XX:XX:XX:0E:XX". did a O instead of a 0.... Yeah an error log would be great!
Hi,
As it says in the title. Running this on a NodeMCU ESP-32S (ESP-WROOM-32)
I have installed ESPHOME with the MQTT Open Gateway on it. Have configured the MAC address is Upper case and put the MQTT password in config (can see it on MQTT explorer)
Unfortunately, it seems to be stuck on "[D][airbnk_mqtt:105]: BLE scan heartbeat" as an endless loop. It seems it never does a scan? Never sees my M531, though I see it fine with my phone using the WeHere app.
Any thoughts?