feat(multi_lang): add English and Swedish translations for viomi.vacuum.v18#1747
Open
Johan-Claesson wants to merge 1 commit into
Open
feat(multi_lang): add English and Swedish translations for viomi.vacuum.v18#1747Johan-Claesson wants to merge 1 commit into
Johan-Claesson wants to merge 1 commit into
Conversation
…um.v18 Signed-off-by: Johan Claesson <81742448+Johan-Claesson@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full English (
en) and Swedish (sv) translations inmulti_lang.jsonfor the Viomi S9 robot vacuum (
viomi.vacuum.v18).Previously three vendor-specific services were displayed with their original
Chinese names in Home Assistant:
扫地机→ Robot Cleaner / Robotdammsugare地图相关→ Map / Karta声音相关→ Voice / RöstValue-list values (status, fault, mode, etc.) were also shown as raw integers
instead of readable text.
Changes
urn:miot-spec-v2:device:vacuum:0000A006:viomi-v18incustom_components/xiaomi_home/miot/specs/multi_lang.jsonstatus,fault,sweep-type,wdr-mode,door-state,mop-state,suction-grade,water-grade,mop-route,direction,clean-mode,clean-way, and moreStatusandErrornow render human-readabletext (e.g.
Charging,Dust Bin Full, Please Empty) instead of raw integersNote on
sv(Swedish)Swedish is currently not in the integration's UI language list. The
svblock is included preemptively — happy to move it to a separate PR or drop
it if maintainers prefer. Please let me know your preference!
Verification
Tested locally on Home Assistant Core with a physical Viomi S9
(firmware
1.6.5_2254). Entities now render with human-readable names andenum sensors display text values in the Home Assistant UI.
CLA
I have read and agree to the CLA.