[miio] Add support for viomi S9 vacuum (v18) (#9878)
* [miio] Add support for viomi S9 vacuum (v18) * [miio] improved translations & wider columns readme * [miio] Apply review suggestions Signed-off-by: Marcel Verpaalen marcel@verpaalen.com
This commit is contained in:
parent
6b4fc99164
commit
40dbd50943
File diff suppressed because it is too large
Load Diff
@ -176,6 +176,7 @@ public enum MiIoDevices {
|
||||
VIOMI_VACUUM_V6("viomi.vacuum.v6", "Viomi Cleaning Robot V-RVCLM21B", THING_TYPE_BASIC),
|
||||
VIOMI_VACUUM_V7("viomi.vacuum.v7", "Mi Robot Vacuum-Mop P", THING_TYPE_BASIC),
|
||||
VIOMI_VACUUM_V8("viomi.vacuum.v8", "Mi Robot Vacuum-Mop P", THING_TYPE_BASIC),
|
||||
VIOMI_VACUUM_V18("viomi.vacuum.v18", "Viomi S9", THING_TYPE_BASIC),
|
||||
VIOMI_WATERHEATER_E1("viomi.waterheater.e1", "VIOMI Internet electric water heater 1A (60L)", THING_TYPE_BASIC),
|
||||
XIAOMI_AIRCONDITION_MA1("xiaomi.aircondition.ma1", "Mi Inverter Air Conditioner (1.5HP)", THING_TYPE_BASIC),
|
||||
XIAOMI_AIRCONDITION_MA2("xiaomi.aircondition.ma2",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -139,16 +139,18 @@ public class ReadmeHelper {
|
||||
String link = device.getModel().replace(".", "-");
|
||||
sw.write("### " + device.getDescription() + " (" + "<a name=\"" + link + "\">" + device.getModel()
|
||||
+ "</a>" + ") Channels\n" + "\n");
|
||||
sw.write("| Channel | Type | Description | Comment |\n");
|
||||
sw.write("|------------------|---------|-------------------------------------|------------|\n");
|
||||
sw.write(
|
||||
"| Channel | Type | Description | Comment |\n");
|
||||
sw.write(
|
||||
"|----------------------|----------------------|------------------------------------------|------------|\n");
|
||||
|
||||
for (MiIoBasicChannel ch : dev.getDevice().getChannels()) {
|
||||
if (UPDATE_OPTION_MAPPING_README_COMMENTS
|
||||
&& ch.getReadmeComment().startsWith("Value mapping")) {
|
||||
ch.setReadmeComment(readmeOptionMapping(ch, device.getModel()));
|
||||
}
|
||||
sw.write("| " + minLengthString(ch.getChannel(), 16) + " | " + minLengthString(ch.getType(), 7)
|
||||
+ " | " + minLengthString(ch.getFriendlyName(), 35) + " | "
|
||||
sw.write("| " + minLengthString(ch.getChannel(), 20) + " | " + minLengthString(ch.getType(), 20)
|
||||
+ " | " + minLengthString(ch.getFriendlyName(), 40) + " | "
|
||||
+ minLengthString(ch.getReadmeComment(), 10) + " |\n");
|
||||
}
|
||||
sw.write("\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user