-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected behaviour of successful flash #67
Comments
This is normal. If the startup doesn't succeed multiple times (= the boot loop counter exceeds
It's always safe to reboot the ESP. If you reset/reboot the ESP manually 10 times in a row the recovery mode kicks in (see above).
No it doesn't need to be connected. The custom component polls the BMS (with a single request) periodically. The BMS responds with a full status report. You can decide by adding sensors how much data of the status report is published as sensor data. |
Could you provide the BMS type + hardware & software version you are using? I would like to extend the list of supported devices if your device version is missing. |
Model: JK-BD6A24S10P This doesn't seem to be on your supported list and may explain why I'm not seeing any data. :/ |
It should be supported because the device pretty new. Could you provide a photo of your wiring? |
Are you sure the green cable is connected to GND? It looks like |
Alright! Did you try to swap RX and TX just for testing? Your setup looks fine. The BMS is up and running (blinks)? |
Not tried swapping, but I can if you think it's worth a try. BMS defo up and running. |
Where did you buy the BMS? |
It's worth a try! Can be done via config yaml (no resoldering required). |
|
No luck? |
Right, so swapping the TX/RX GPIO around didn't help. Swapped them back to their original states and ran the debug. I'm clearly getting data from the BMS but I'm not seeing anything at the MQTT listener. I'm not running HomeAssistant - I'm using the MQTT listener in node-red which I've used before successfully. Should I be seeing MQTT related messages in the debug output? Because I'm not... |
Perfect! You are able to retrieve the data from the BMS. The next step is to debug the MQTT connection. I don't know node-red in details. Is there a mosquitto broker or something like that? Could you take a look at the mosquitto.log? Is the ESPHome able to connect? Gets the connection dropped/disconnected because of failed authorization or something? |
Ok I was subscribing to:
instead of
#facepalm |
Can you verify the expected behaviour of a successful flash?
Looking at the log output after reboot it seems to be establishing a configuration then saving it to flash.
Is it normal to take ~3 minutes after establishing the sensor config to save preferences to flash?
Once the saving preferences to flash message appears, is it safe to power off the device at this point?
Does the ESP32 device need to be connected to the BMS when it's adding sensors on first boot?
Apologies for the noob questions, I'm still waiting for it to click for me :)
The text was updated successfully, but these errors were encountered: