Channel subscriptions vanished [was: Ability to switch the driver gone?]

ST didn’t cause the translation issue, a community developer inadvertantly overwrote the translations. Perhaps we in the community should consider helping that developer in getting them restored?

7 Likes

I am surprised the developer didn’t have the translation files in a Github repo.

2 Likes

I’m surprised there was time to make those changes (English as default to Spanish) but there’s no time to fix it.

1 Like

If they are not modifying configurations on the device tile in the app there should be no problem.

Try picking a light color, brightness, or blink pattern without being able to read anything. Good luck!

1 Like

I am well aware, but I also don’t see the ST team bending over backwards to try to help resolve these issues and bugs. I have probably said it before, but their silence screams volumes.

@Mariano_Colmenarejo has already done enough to shoulder the weight for the ST team’s shortcomings and blunders. I am not surprised he needed a break, and maybe (lord save us all) he has even thrown in the towel completely (like @TAustin and others who have kept it alive). And now, the community is stuck with the responsibility of picking up where Mariano left off, with hardly a peep from the ST team on how they can be a good stewards and help.

Although they are gone, @Mariano_Colmenarejo and @TAustin’s drivers run about 75% of my smart home, and, as someone once said, your mother has a brother named Bob! Of course, this only continues to help if the community picks up where they left off, because the ST team isn’t going to do it.

Call me skeptical here… but, it seems the ship is sinking and the ST team could give a rat’s behind!

And with that, I bid you all adieu! So long, and thanks for all the fish!

I too had this issue a bit over a week ago before this thread was started. i thought it was just me and fumbled around till i realised the driver channels were gone. re linked and back working but would be nice to know what actually caused this and how they will prevent it happening again !

1 Like

This fix sounds like a lot of work and man hours to fix.

Is there any scope to crowd source and automate this ?
Some thoughts

How standardised are the formats of the json or yml files?
1 Are the English versions that are needed a clone of existing Spanish ones with translations to English?
2 Could a script (Perl for eg) be written to parse out the Spanish text to build a Spanish to English mapping file (with the English versions blank)
3 Could we get some Spanish speakers to translate the Spanish to English and update the mapping file, or even use Google translate as a last resort ?
4 could a separate script be used to process the Spanish files and generate English versions of the json files, using the mapping translation files to substitute the text?

Failing all that is there any scope for doing some of the heavy work of this using AI, either directly or using it as a code generator?

I fear I may have over simplified the problem, and I have had complex issues oversimplified to me in the past, so feel free to tell its way more complex than this.

Most capabilities are just a title and some options, for instance “Circadian rhythm. Enabled / Disabled”. Or “Blink effect. Custom per settings / Fast / Disabled / Slow” or “Signal metrics”. That’s three random capabilities I’ve opened that were in Spanish.

It’s not really “complex”, just time consuming because you have to identify the overwritten capabilities first (the developer would know that looking at the last modified date of the files, but we do not), download each translation file with the CLI and translate the few words in it. Even if it takes few minutes per capability, multiply it by 50.

Even if we translate the files, the developer has to use the CLI to update each translation in his custom capabilities because nobody else can update his capabilities but the dev, but doesn’t look like he’s available now.

1 Like

Understood, which is why I was suggesting scripting it.
Re the last bit using the cli to update the capabilities, could that be done with a powershell or similar script (if necessary using another script to generate the powershell script.?)

One-liner in Bash (Linux command line). Doing it manually would take a few minutes - replacing parts of the previous command.

The whole job is just tedious and annoying.

And yes, you could feed the yaml file for English to ChatGPT and tell it to translate the strings to French. It’s that good nowadays.

Going to try it later with GitHub Copilot in VSCode. This thing is just crazy…


Took the example file from here:

… and asked ChatGPT to translate it to French. Result:

{
  "tag": "fr",
  "label": "Porte de Garage Personnalisée",
  "attributes": {
    "door": {
      "label": "État de la Porte de Garage",
      "displayTemplate": "{{attribute}} de {{device.label}} est {{value}}",
      "i18n": {
        "value": {
          "closing": {
            "label": "Fermeture..."
          },
          "closed": {
            "label": "Fermée"
          },
          "opening": {
            "label": "Ouverture..."
          },
          "partial": {
            "label": "Partiellement ouverte"
          },
          "open": {
            "label": "Ouverte"
          }
        }
      }
    }
  }
}

German (took another 2 seconds):

{
  "tag": "de",
  "label": "Benutzerdefiniertes Garagentor",
  "attributes": {
    "door": {
      "label": "Garagentorstatus",
      "displayTemplate": "{{attribute}} von {{device.label}} ist {{value}}",
      "i18n": {
        "value": {
          "closing": {
            "label": "Schließt..."
          },
          "closed": {
            "label": "Geschlossen"
          },
          "opening": {
            "label": "Öffnet..."
          },
          "partial": {
            "label": "Teilweise geöffnet"
          },
          "open": {
            "label": "Geöffnet"
          }
        }
      }
    }
  }
}

See how awesome it is? Took seconds.

This is what AI was made for.

1 Like

I’m surprised it didn’t translate the whole file to French, how did it know which English bits to leave?
Eg opening, closed etc for the attribute names were left untouched?

1 Like

And if you had the luxury of a bash shell you could do stuff like

find . -name “*.yml” -print | xargs perl -ne ‘print “clicmd -flags en_$_” ‘ > myscript.sh

Or similar, this is from memory, I haven’t tried it, clicmd would be the command to execute
It would pipe them all to myscript.sh to inspect before running

Because it’s AI:

You’d be surprised what the GitHub Copilot can do. It’s constantly analyzing your whole code base and when you start to type something, it auto completes even whole functions. It really understands what you’re doing, the whole project.

I have ~30 years of software development under my belt and I wish we had that earlier. So much time wasted…

And if you had the luxury of a bash shell you could do stuff like

I have - since Bash exists.

1 Like

Me too, over 30 in fact :flushed:, although latter years more management than development.
However given the choice between doing something “manually, by hand” or writing a script to automate it that would take just as much effort as the manual approach I always went for the automation. Cos then I’d have the script if it needed run again, or modified.

1 Like

Hi, everyone.

As some of you have noticed, the engineering team solved the issue with the channels.

About the issue with Mariano’s capabilities, it is correct that only the developer can make changes, I think you can ask in Mariano’s post if he needs help and how you can collaborate.

8 Likes

Hy @nayelyz ,
Do we need to manually reenroll in every “lost” channel?
I don’t see some of my channels in the hub driver list, including @Mariano_Colmenarejo, but my capabilities continue to be displayed in English. I’m afraid that when I reenroll with his channel, the capabilities will be changed to display in Spanish.

In all my Hubs’ SmartThings channel is still empty.

Still same as this earlier picture

Only a part of the translations were overwritten and that’s why you are not affected.

You can safely subscribe to the channel again.

1 Like

Mine have always looked like that. In order to look up the name of a channel you need to be subscribed to it and most users aren’t subscribed to the default channel as you don’t need to be.