Hi everybody!
I need to edit translation in HA (thermostat card in russian contains “Cooling / Heating” inscription, that is quite long, it prevents from reading sensor names). I need to cut text a little bit, but was unable to find “ru.json” file in SSH browser.
Thank you!
It’s stored with the front end. You need to find the installation folder for home-assistant, then look for home-assistant-polymer. From there its in the translations folder.
EDIT: Theres also a chance it’s not in the home-assistant installation folder. I might be beside it. Either way, start there.
I can’t find the file.
Maybe relevant directory is not accessible via SSH?
How is home assistant installed?
Installed on Raspberry Pi3
Right but is it Home Assistant, or just Home Assistant Core? What’s the operating system?
Yes, it’s Home Assistant
Then you most likely don’t have access to do this. It’s running in a docker container and you’d need to make a custom build of home assistant to do that.
EDIT: You could only modify these files if you just run HomeAssistant Core inside or outside a venv. And even then, every update of HomeAssistant Core would overwrite the file.
Could you please instruct me on how I can run HomeAssistant Core inside or outside a venv and edit “ru.json”?
I understand I will need to modify json after every update.
I’ve never done this outside the dev version. Also, be warned. You will not be able to use any Add-On provided by HomeAssistant (hassio).
This guide shows you how to do it
Also, this is not for the feint of heart. This method will require alot of hand holding to setup and get to a point where it automatically does things that you want.
You should understand that going this route gives you the most control, but it comes with the drawback that requires you to set EVERYTHING up by hand.
No Hassio/Supervisor Add ons. No docker, i.e. everything needs to be updated together, including python versions. All done through CLI.
Personally, I’d investigate just changing the strings in the UI for that particular device. Using a custom lovelace card.
Thanks! I’d prefer simpler method (custom lovelace card). Will start searching of HOWTO with custom lovelace cards.
Yeah, there’s a number of different paths to do this. Custom row or custom card.
@petro
I have installed Hass.io via Docker under Ubuntu server now.
This setup is much more stable compared to Raspberry.
But I cannot SSH into Docker container via WinSCP and find the .json file.
Would you be so kind to advise on how I can find it under the existing configuration?
Thank you!
Use the ssh addon, it will allow you to ssh into hassio.
EDIT: This still won’t get you what you want by the way. You still won’t be able to access the language files.
The only way you can adjust the language files is if you install home assistant core only. Not hassio.
Yes, which is why I keep telling you to use custom lovelace cards to change the label.