unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
22 stars 0 forks source link

Rename of a remote #188

Open Pebowski opened 8 months ago

Pebowski commented 8 months ago

Is there an existing issue for this?

Description

I named one of my remotes incorrectly Deion in the Configurator. I see this on the remote, go to Webconfigurator an renamed it to Denon. After restarting the remote it was also Denon in the remote, but after a while it changed back to Deion on the remote. In the Webconfigurator it is still Denon. How can I make Denon permanent on the remote?

How to Reproduce

  1. Enter the name of the remote incorrectly, i.e Deion
  2. Use it in a activity
  3. Correct the name in Configurator, i.e. Denon
  4. Restart the remote, name is correct: Denon
  5. Start the activity
  6. Name reverts to Deion on the remote, in Configurator it's OK with Denon

Expected behavior

The name on the remote should stay to Denon

System version

1.4.5

What part of the system affected by the problem?

UI, Web Configurator

Additional context

No response

zehnm commented 8 months ago

I'm trying to reproduce this issue but so far I'm not able to.

@Pebowski some questions:

image
Pebowski commented 8 months ago

4) Yes, restarting the physical remote. It is done to correct the name on the physical remote 6) Yes, it is added to the profile page and changed there. But only on the physical remote. In Configurator all is OK. So I should add 1a) Create an Activity and add activity and remote to Profile

PS: On the physical remote the "Rename" function does not work.

zehnm commented 7 months ago

Found the issue: this occurs for non-english language settings. The remote UI still shows the original English name, whereas the web-configurator shows the language specific text.

How to reproduce:

  1. Set language to another language than English, for example German
  2. Create a remote-entity with the default name of a selected manufacturer IR dataset, e.g. Generic TV 2 Smart Home
  3. Rename remote-entity, e.g. to LG TV
  4. --> web-configurator shows correct name
  5. --> remote-ui still shows original (English) name
  6. Access the remote-entity with the REST-API to show all language strings. Simplified data structure:
    {
        "entity_id": "uc.main.d899d6e4-ba7f-42dd-a586-1ea77b5bd8e3",
        "entity_type": "remote",
        "integration_id": "uc.main",
        "name": {
            "de": "LG TV",
            "en": "Generic TV 2 Smart Home"
        },
        "icon": "uc:remote"
    }

Issues:

We'll fix this!

Pebowski commented 7 months ago

Thank you, Markus. Yes, I have language German.

Pebowski commented 6 months ago

Also when you try to rename an activity on the physical remote, nothing happens, the old name remains. Maybe for the same reason.

heimspielvier commented 6 months ago

Just wanted to confirm that I am seeing the same issue when renaming activities with the language set to German. I can also confirm that renaming an activity directly on the remote does not work either (not sure if this is related to the same root cause).

kennymc-c commented 4 months ago

Unfortunately, even with the current firmware 1.7.5, there are still problems with incorrect resp. old names, although https://github.com/unfoldedcircle/remote-ui/issues/7 has already been closed. The names of the English strings are displayed on the remote after a firmware update. I have noticed this since the last 3-4 updates. By restarting the remote or the remote UI via API, the names of the selected language are displayed again. Because renaming only changes the string of the currently selected language both in the web configurator and via the remote UI, the English string remains unchanged. This seems to affect not only normal entities but also activities and macros. I also don't really understand why there are strings for languages here at all. Shouldn't the name always be the same regardless of the language? This doesn't seem to be the case with profile groups. Here there is only one fixed name. Wouldn't that be a better solution for other elements too?

Pebowski commented 4 months ago

And also the rename of an entity or activity direct on the remote still does not work, when language is German.

kennymc-c commented 4 months ago

On the remote? Because it works with the web configurator and shows the new name at least right after you rename it. If the remote shows the old name it's probably the English name that has not been changed by the rename function

Pebowski commented 4 months ago

Yes, directly on the remote, when you long press on a name and then choose "Rename"