Detecting Language for Hub

Is there a way to detect the local language within a driver?

I am writing a driver for users of Mitsubishi Electric air conditioners in Europe and the login API call asks for a language setting. I noticed in a Python example I found that the language number being passed in was being looked up from the what I assume is the operating system, so I am expecting the possible language values must be a universal list, not something specific to Mitsubishi.

Any ideas?

Simon

Don’t see anything in the documentation that leads me to believe it is stored. Closest thing may be the TTS voice selected (haven’t found where that’s stored yet though).

1 Like

Yeah, I'd seen the English reference in the TTS setting as well. In the end I'm hedging my bets with posting this question, there's a chance I won't need it, but thought it may be useful for other people to know as well if it is something we can identify. Thanks for the response.

I believe Java manages the country code/language code although groovy could have their own ideas. That is where I'd look.

1 Like