Anyone else notice English labels changed using Mariano's drivers?

I was making some changes to some routines yesterday and noticed my IKEA devices using @Mariano_Colmenarejo driver’s have started showing labels in Spanish. Below are some examples:

Today I am seeing similar for some other devices using Mariano’s zigbee driver for zigbee switches:

Has something changed that would have caused me to lose the information in English? Or is there a new option I need to change to view the devices in English?

Might be related to this post from a couple days ago:

1 Like

Hi @jkp is there a change being made to fix the English translation? If there is, can we get an approximate time line for the changes to be completed?

Thank you for the update and confirmation of the issue.

Dev said the original translations were overwritten by mistake in some drivers and can’t fix it so I would not expect it.

More precisely, he said reverting the changes required a substantial amount of work that he doesn’t have the time to perform right now.

@kajoyce Please read Mariano’s post. I don’t know if there is a way for any of us in the community to help him out or not. @nayelyz?

2 Likes

Yeah, translation files for English are apparently lost forever and there are no backups. No fix possible other than creating each translation file again from scratch and update the capabilities one by one which is indeed time consuming.

The only way the community could help is by translating the overwritten files to save part of the work so he can use the CLI to update them. Even then, it’s some work multiplied by 50 capabilities so I would not expect it at the moment.

Edit: Was looking at github and apparently last week deleted all the presentations and capabilities for many drivers. Translations were not there though, so there’s no history to recover from, quite unfortunate.

2 Likes

I think he meant to tag @kajoyce .

3 Likes

Does anyone know if it is possible to create a custom Edge Driver using some of the files in GitHub? I have some coding/scripting experience. Based on the details, it sounds like the label text was changed but underlying code functionality was not modified or broken.

I would want to update the labels to English on the couple of drivers I am using since I am only using about 4 of Mariano’s drivers for my IKEA devices and a couple of other devices in my SmartThings environment.

I suspect that might be a quicker solution than waiting to see if the drivers are going to be corrected.

Assuming in github there’s updated code you can… but it’s going to be so cumbersome that maybe it’s better to live with a few phrases in Spanish. High level steps would be:

  • Get the code of the driver in his repo
  • Find the custom capabilities used with the wrong translation, they all start with legendabsolute60149
  • Retrieve the capability definition, the presentation and the translation using the SmartThings CLI.
  • Fix the translation and create your own custom capabilities using the files, uploading the capability, the presentation and the translation.
  • Last step, replace the references to legendabsolute60149 in the code with the identifier assigned to you, but only for the capabilities you translated.

By the way, doing that all your routines using his custom capabilities will break and you’ll have to recreate them using your capabilities.

For completeness, these would be the CLI commands to retrieve the needed files other than the code, taking signalMetrics as example:

> smartthings capabilities legendabsolute60149.signalMetrics -o signalMetrics-capability.json
> smartthings capabilities:presentation legendabsolute60149.signalMetrics -o signalMetrics-presentation.json
> smartthings capabilities:translations legendabsolute60149.signalMetrics en -o signalMetrics-english.json
4 Likes

The general workflow is described here:

You have to git clone the repository first, package the driver and so on. That way, you have a forked driver on your hub.

Don’t hesitate to use ChatGPT if you don’t know how it all works! Ask the right questions and it’ll tell you more than you wanted to know.

And here’s how to create translations for capabilities:

3 Likes

Some people can repeat what the AI searches for, but their natural intelligence is zero.

Anyone following this post, the fix is being worked on or maybe done.

My labels are back to English. I am only using about 4 of Mariano’s drivers.

Thanks to everyone who helped resolve this.

2 Likes

Thank you @Mariano_Colmenarejo . Device labels are back in English.

2 Likes