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

Device rename does not stick #2321

Open
Imwithstupid007 opened this issue Jan 1, 2025 · 16 comments
Open

Device rename does not stick #2321

Imwithstupid007 opened this issue Jan 1, 2025 · 16 comments

Comments

@Imwithstupid007
Copy link

Hi,

I use a BBQKees gateway E32 V2 (EMS-ESP V3.7.1) to monitor my boiler (Nefit Trendline II). In EMS-ESP the boiler shows up as "CBS/GB*72, Trendline, Cerapur, Greenstar Si".

Screenshot 2025-01-01 192456

I renamed the device several times to "Nefit Trendline II".

Screenshot 2025-01-01 193804

However, after some time (days-weeks) it defaults back to the standard.
The rename "survives" a normal reboot indicating that it is stored properly.

Why is it defaulting back to the standard?

@MichaelDvP
Copy link
Contributor

The name is stored in the customization file, you can check in settings->download the file and the name.
Have you restored an older custoization?
Can you specify what have triggert the reset to default name? A crash of ems-esp? Are other data, especially in customization are affected?
We have not seen something like that before, but for mqtt settings there is a similar report that settings are cleared after some time (with unspecified conditions).

@Imwithstupid007
Copy link
Author

I have not restored an older customization.
Only thing i have done after receiving/connecting the device is to select a few favorites and rename the device (and made a mqtt connection).
The first few times this happened I assumed it was a result of "playing around" with the device. But the last time the ESP-EMS was operational for maybe 1-2 weeks and from one day to another the device name was default again. Other changes I made seem to be unaffected (mqtt functions, favorites are accounted for).

The device is restarted yesterday and I will check daily if the name is still correct.

@Imwithstupid007
Copy link
Author

PS: I assume a device restart is effectively the same as a power cycle?

@tp1de
Copy link
Contributor

tp1de commented Jan 2, 2025

I recognized the same behavior while updating between different versions.
This happens only on very rare times ... I can't find any logic when and why

@MichaelDvP
Copy link
Contributor

The rename option is added a few versions ago, using an older version (and changing customizations) will erase the setting. Also the logic for reading and display the internal name from telegram 0x1 has changed and effects the custom name.

PS: I assume a device restart is effectively the same as a power cycle?

Mostly, power cycle is a cold start, all registers are in powerup state, restart is a soft reset, u-ram values and some registers are not reseted. But this should not affect the values saved in filesystem like the custom name.

@proddy
Copy link
Contributor

proddy commented Jan 4, 2025

The device is restarted yesterday and I will check daily if the name is still correct.

Has the happened again since?

@Imwithstupid007
Copy link
Author

No, name is still correct, even after a few power cycles.

@Imwithstupid007
Copy link
Author

Speak of the devil. I just disconnected and reconnected the power and the device name was back to standard.
Together with the EMS-ESP the boiler was disconnected too (maybe of some use).

@proddy
Copy link
Contributor

proddy commented Jan 4, 2025

that is weird. When it happens can you

  • download the customization file and attach it here (Settings->Download/Upload->Customizations). See if your custom name is in it.
  • look at the Status->Hardware->Application and note the partition, as it may be switching. it's app0 or app1

@Imwithstupid007
Copy link
Author

OK, this is the customization file as it is now (with device name changed). The partition is app0.

emsesp_customizations.json

Screenshot 2025-01-04 171149

I will upload the corresponding items when the device defaults again.

BTW; Shouldn't the changed device name already be in this customization file?

@proddy
Copy link
Contributor

proddy commented Jan 4, 2025

Yes, it should be and called custom_name. My emsesp_customizations.json file has this part:

.....
....
 "masked_entities": [
      {
        "product_id": 123,
        "device_id": 8,
        "custom_name": "Trendline",
        "entity_ids": [
          "08heatingactive",
          "08tapwateractive",
          "08selflowtemp|<90",
          "08curflowtemp",
          "08syspress"
        ]
      }
]

and if none is set it should show "custom_name": ""

@Imwithstupid007
Copy link
Author

Custom name is definitely set.....

Screenshot 2025-01-04 174703

As a test I changed the name again (to "TrendLine II") and now it shows up in the customization file.

"masked_entities": [
{
"product_id": 123,
"device_id": 8,
"custom_name": "TrendLine II",
"entity_ids": [
"08heatingactive",
"00selflowtemp|<90",
"08curflowtemp",

@mattreim
Copy link
Contributor

mattreim commented Jan 4, 2025

For me there have been a few times with a new firmware where an entity has changed (change of name or translation). The emsesp_customizations.json was always reset and I had to enter it manually.

And my BC400 no longer has a manufacturer.
Brand

@proddy
Copy link
Contributor

proddy commented Jan 5, 2025

@mattreim was the previous a 'brand' shown for your BC400?
And when you say the customization file was reset, what do you mean exactly? All the customizations are gone or just the custom name of the device?

@mattreim
Copy link
Contributor

mattreim commented Jan 5, 2025

@mattreim was the previous a 'brand' shown for your BC400?

Sorry, I researched again and the "brand" was never displayed on the thermostats.

And when you say the customization file was reset, what do you mean exactly? All the customizations are gone or just the custom name of the device?

The custom names look like this again: "custom_name": "" and the order.

@mattreim
Copy link
Contributor

mattreim commented Jan 6, 2025

v3.7.2-dev.8 - 1 -> App1
rename boiler to native -> I think because #2320

v3.7.2-dev.8 - 2-> App0
No name changes

v3.7.2-dev.8 - 3-> App1
No name changes -> Thanks, it looks much better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants