Skip to content
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

Well... did i kill it? NSPanel died after update and change the bluetooth settings #2069

Open
TeDeVPrime opened this issue Apr 20, 2024 · 29 comments
Labels
Bug Identifies an issue where the system is not functioning as expected. Customization Suggests features or modifications tailored to specific user groups.

Comments

@TeDeVPrime
Copy link

TFT Version

4.3.2

ESPHome Version

4.3.2

Blueprint Version

4.3.2

Panel Model

EU

What is the bug?

i spent a few hours trying to update my nspanel to the latest 4.3.2.
long story short... i had to download the tft locally so that i could actually work.

right when i said "finally!" i decided to try and enable the ble_tracker...

i included these lines

esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms

then i pressed installed in the ESPHome....
the installation finished.... and then it died.... it doesn't boot up.... i tried turning the power off and on again ... nothing. it's a brick device.

i know that it doesn't make sense... but this is my story. any ideas?

Steps to Reproduce

No response

Your Panel's YAML

No response

ESPHome Logs

No response

Home Assistant Logs

No response

@TeDeVPrime TeDeVPrime added the Bug Identifies an issue where the system is not functioning as expected. label Apr 20, 2024
@edwardtfn
Copy link
Collaborator

Flash it using TTL adapter and without the Bluetooth and it should work.

By the way, it will probably work with Bluetooth if you use v4.3.4. 😉

@edwardtfn
Copy link
Collaborator

The idea is to have a BLE Tracker add-on in experimental mode with v4.3.5.

@TeDeVPrime
Copy link
Author

@edwardtfn hi. what do you mean it will work with bluetooth? i had the latest version installed 4.3.4.
then i tried the above config and it died on me. nothing works.

@edwardtfn
Copy link
Collaborator

It should work with v4.3.4. Do you have any other component added in your yaml?

@TeDeVPrime
Copy link
Author

It should work with v4.3.4. Do you have any other component added in your yaml?

no i don't. this is the only one i installed. so you believe that it is not bricked? i should remove it from the wall and try to connect it with the usb adapter again?

@edwardtfn
Copy link
Collaborator

edwardtfn commented Apr 20, 2024

Yes, I got to this situation a few times when playing with different components and it's just about compile the firmware with just the basics, then install using TTL and the panel is back to life.

@edwardtfn
Copy link
Collaborator

The issue is about getting out of RAM during the boot, then the panel stops it even before turning on the display or starting support to OTA flashing.
Flashing with a firmware which didn't take all the memory should work, but will require TTL adapter as OTA is out.

@edwardtfn edwardtfn added the Customization Suggests features or modifications tailored to specific user groups. label Apr 21, 2024
@TeDeVPrime
Copy link
Author

The issue is about getting out of RAM during the boot, then the panel stops it even before turning on the display or starting support to OTA flashing. Flashing with a firmware which didn't take all the memory should work, but will require TTL adapter as OTA is out.

ok i will try it next weekend because i don't have time for that right now. i also ordered a new nspanel just to be sure. they came out as an offer yesterday for 30 euros!

@edwardtfn
Copy link
Collaborator

Where did you found this price?

@Mauricewillemstein
Copy link

ok i will try it next weekend because i don't have time for that right now. i also ordered a new nspanel just to be sure. they came out as an offer yesterday for 30 euros!

I also want to know wehere you found it for 30 euros :)

@TeDeVPrime
Copy link
Author

it's on offer here in Greece for this week. i ordered two
https://www.e-shop.gr/sonoff-nspanel-smart-scene-wall-switch-black-p-PER.941903

@edwardtfn
Copy link
Collaborator

How is the panel where you got the black screen? Flashing via ttl recovered that one?

@TeDeVPrime
Copy link
Author

TeDeVPrime commented Apr 24, 2024

How is the panel where you got the black screen? Flashing via ttl recovered that one?

i will try it this weekend. i didn't have time to take it out because of work.

what are the latest optimal esp config that i should use in order to flash my nspanel again?

@TeDeVPrime
Copy link
Author

How is the panel where you got the black screen? Flashing via ttl recovered that one?

ok i just managed to get it back into working again.
how should i enable the bluetooth?

i have the latest TFT and version installed

@edwardtfn
Copy link
Collaborator

I'd like to know if the add on Bluetooth proxy works for you. That worked fine on all my tests, so I really wanna know if that is working or not.
I will fully understand if you don't wanna give a try, as the chance of having to flash via TTL exists, but if you wanna try that, please let us know your results.

@TeDeVPrime
Copy link
Author

I'd like to know if the add on Bluetooth proxy works for you. That worked fine on all my tests, so I really wanna know if that is working or not. I will fully understand if you don't wanna give a try, as the chance of having to flash via TTL exists, but if you wanna try that, please let us know your results.

well i have closed everything again so if i need to flash via ttl again i will cry, since taking the panel off is a real pain the butt.
i will probably try it on another nspanel that i have.
what configuration do i need to add in the esp in order for the bluetooth to work?

@Ierlandfan
Copy link

Maybe dumb side question: I I flashed Pre-built firmware update: 8833784908 which addds th BT functionality. Just be sure I have flashed it via TTL (Successfully) I also see a BT icon in the display (gray, just like wireless)
But how to check whether it is working? Shouldn't I get a "new device"inside Home assistant?

@edwardtfn
Copy link
Collaborator

It is a BLE proxy, so if you have BLE devices nearby, those will use your panel to communicate to Home Assistant, and the creation of new entities will depend on the integration supporting those devices (via BLE) and won't be inside the panel's page.
I can try to create a sensor for counting the number of devices using your panel as a proxy... Will that be any useful?
Maybe we should have controls to disable BLE and to select between active/passive, but I'm not sure we will find much more to see or control.

@Ierlandfan
Copy link

Ierlandfan commented Jun 4, 2024 via email

@TeDeVPrime
Copy link
Author

what are the best settings for enable BLE on the nspanel?

@edwardtfn
Copy link
Collaborator

@edwardtfn
Copy link
Collaborator

Make sure you are not enforcing arduino (it requires esp-idf).

@TeDeVPrime
Copy link
Author

can i do it wirelessly or do i need to flash with TTL again?

@edwardtfn
Copy link
Collaborator

Wirelessly should be fine.

@TeDeVPrime
Copy link
Author

can i get some help with this?
i managed to install ble_tracker (i am still not sure about the differences between the tracker and the proxy.)

in the long run first i would like to be able to track my smart watch in the house.
secondly i would like to add bluetooth devices into home assistant like the xiaomi mi scale that i have for example.

after installing the ble_tracker, there is nothing that i can see in my integrations. am i doing something wrong here?

@edwardtfn
Copy link
Collaborator

edwardtfn commented Jun 9, 2024

in the long run first i would like to be able to track my smart watch in the house.

This is BLE Tracker. You have to setup your watch as a BLE Client Sensor depending on what you wanna do with that.

secondly i would like to add bluetooth devices into home assistant like the xiaomi mi scale that i have for example.

This is where BLE proxy helps.

@edwardtfn
Copy link
Collaborator

If your scale is supported by Home Assistant, use that very same integration as if the scale was close to home assistant host. What proxy is doing is extending the Bluetooth coverage using your panel's Bluetooth antena, but it is quite transparent, as if your scale was close to Home Assistant server.

You can also set the integration directly as a customization on ESPHome using the native component: https://esphome.io/components/sensor/xiaomi_miscale.html (this is probably the way I woukd go).
This requires Bluetooth tracker, not proxy.

@TeDeVPrime
Copy link
Author

TeDeVPrime commented Jun 9, 2024

so in the esp configuration of the nspanel i need to add the following...

sensor:
  - platform: xiaomi_miscale
    mac_address: '5C:CA:D3:70:D4:A2'
    weight:
      name: "Xiaomi Mi Scale Weight"
    impedance:
      name: "Xiaomi Mi Scale Impedance"

but how do i get the mac_address from the scale?

@TeDeVPrime
Copy link
Author

i installed the bluetooth proxy and it discovered the devices.
now i am just trying to figure out how to track my watch with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected. Customization Suggests features or modifications tailored to specific user groups.
Projects
None yet
Development

No branches or pull requests

4 participants