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:
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?
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.
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: