Skip to content

Commit dc6c23a

Browse files
authored
Add program id codes for Miele WQ1000 (#158175)
1 parent 6ec7efc commit dc6c23a

File tree

3 files changed

+86
-20
lines changed

3 files changed

+86
-20
lines changed

homeassistant/components/miele/const.py

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ class ProgramPhaseWashingMachine(MieleEnum, missing_to_none=True):
191191
drying = 280
192192
disinfecting = 285
193193
flex_load_active = 11047
194+
automatic_start = 11044
194195

195196

196197
class ProgramPhaseTumbleDryer(MieleEnum, missing_to_none=True):
@@ -451,19 +452,19 @@ class WashingMachineProgramId(MieleEnum, missing_to_none=True):
451452
"""Program Id codes for washing machines."""
452453

453454
no_program = 0, -1
454-
cottons = 1
455+
cottons = 1, 10001
455456
minimum_iron = 3
456-
delicates = 4
457-
woollens = 8
458-
silks = 9
457+
delicates = 4, 10022
458+
woollens = 8, 10040
459+
silks = 9, 10042
459460
starch = 17
460-
rinse = 18
461-
drain_spin = 21
462-
curtains = 22
463-
shirts = 23
461+
rinse = 18, 10058
462+
drain_spin = 21, 10036
463+
curtains = 22, 10055
464+
shirts = 23, 10038
464465
denim = 24, 123
465-
proofing = 27
466-
sportswear = 29
466+
proofing = 27, 10057
467+
sportswear = 29, 10052
467468
automatic_plus = 31
468469
outerwear = 37
469470
pillows = 39
@@ -472,19 +473,29 @@ class WashingMachineProgramId(MieleEnum, missing_to_none=True):
472473
rinse_out_lint = 48 # washer-dryer
473474
dark_garments = 50
474475
separate_rinse_starch = 52
475-
first_wash = 53
476+
first_wash = 53, 10053
476477
cottons_hygiene = 69
477478
steam_care = 75 # washer-dryer
478479
freshen_up = 76 # washer-dryer
479-
trainers = 77
480-
clean_machine = 91
481-
down_duvets = 95
482-
express_20 = 122
480+
trainers = 77, 10056
481+
clean_machine = 91, 10067
482+
down_duvets = 95, 10050
483+
express_20 = 122, 10029
483484
down_filled_items = 129
484485
cottons_eco = 133
485486
quick_power_wash = 146, 10031
486487
eco_40_60 = 190, 10007
487-
normal = 10001
488+
bed_linen = 10047
489+
easy_care = 10016
490+
dark_jeans = 10048
491+
outdoor_garments = 10049
492+
game_pieces = 10070
493+
stuffed_toys = 10069
494+
pre_ironing = 10059
495+
trainers_refresh = 10066
496+
smartmatic = 10068
497+
cottonrepair = 10065
498+
powerfresh = 10075
488499

489500

490501
class DishWasherProgramId(MieleEnum, missing_to_none=True):

homeassistant/components/miele/strings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@
411411
"cook_bacon": "Cook bacon",
412412
"cool_air": "Cool air",
413413
"corn_on_the_cob": "Corn on the cob",
414+
"cottonrepair": "CottonRepair",
414415
"cottons": "Cottons",
415416
"cottons_eco": "Cottons ECO",
416417
"cottons_hygiene": "Cottons hygiene",
@@ -440,6 +441,7 @@
440441
"custom_program_8": "Custom program 8",
441442
"custom_program_9": "Custom program 9",
442443
"dark_garments": "Dark garments",
444+
"dark_jeans": "Dark/jeans",
443445
"dark_mixed_grain_bread": "Dark mixed grain bread",
444446
"decrystallise_honey": "Decrystallize honey",
445447
"defrost": "Defrost",
@@ -457,6 +459,7 @@
457459
"drop_cookies_2_trays": "Drop cookies (2 trays)",
458460
"duck": "Duck",
459461
"dutch_hash": "Dutch hash",
462+
"easy_care": "Easy care",
460463
"eco": "ECO",
461464
"eco_40_60": "ECO 40-60",
462465
"eco_fan_heat": "ECO fan heat",
@@ -487,6 +490,7 @@
487490
"fruit_streusel_cake": "Fruit streusel cake",
488491
"fruit_tea": "Fruit tea",
489492
"full_grill": "Full grill",
493+
"game_pieces": "Game pieces",
490494
"gentle": "Gentle",
491495
"gentle_denim": "Gentle denim",
492496
"gentle_minimum_iron": "Gentle minimum iron",
@@ -607,6 +611,7 @@
607611
"oats_cracked": "Oats (cracked)",
608612
"oats_whole": "Oats (whole)",
609613
"osso_buco": "Osso buco",
614+
"outdoor_garments": "Outdoor garments",
610615
"outerwear": "Outerwear",
611616
"oyster_mushroom_diced": "Oyster mushroom (diced)",
612617
"oyster_mushroom_strips": "Oyster mushroom (strips)",
@@ -713,8 +718,10 @@
713718
"potatoes_waxy_whole_small": "Potatoes (waxy, whole, small)",
714719
"poularde_breast": "Poularde breast",
715720
"poularde_whole": "Poularde (whole)",
721+
"power_fresh": "PowerFresh",
716722
"power_wash": "PowerWash",
717723
"prawns": "Prawns",
724+
"pre_ironing": "Pre-ironing",
718725
"proofing": "Proofing",
719726
"prove_15_min": "Prove for 15 min",
720727
"prove_30_min": "Prove for 30 min",
@@ -807,6 +814,7 @@
807814
"simiao_rapid_steam_cooking": "Simiao (rapid steam cooking)",
808815
"simiao_steam_cooking": "Simiao (steam cooking)",
809816
"small_shrimps": "Small shrimps",
817+
"smartmatic": "SmartMatic",
810818
"smoothing": "Smoothing",
811819
"snow_pea": "Snow pea",
812820
"soak": "Soak",
@@ -833,6 +841,7 @@
833841
"sterilize_crockery": "Sterilize crockery",
834842
"stollen": "Stollen",
835843
"stuffed_cabbage": "Stuffed cabbage",
844+
"stuffed_toys": "Stuffed toys",
836845
"sweat_onions": "Sweat onions",
837846
"swede_cut_into_batons": "Swede (cut into batons)",
838847
"swede_diced": "Swede (diced)",
@@ -855,6 +864,7 @@
855864
"top_heat": "Top heat",
856865
"tortellini_fresh": "Tortellini (fresh)",
857866
"trainers": "Trainers",
867+
"trainers_refresh": "Trainers refresh",
858868
"treacle_sponge_pudding_one_large": "Treacle sponge pudding (one large)",
859869
"treacle_sponge_pudding_several_small": "Treacle sponge pudding (several small)",
860870
"trout": "Trout",
@@ -935,6 +945,7 @@
935945
"2nd_grinding": "2nd grinding",
936946
"2nd_pre_brewing": "2nd pre-brewing",
937947
"anti_crease": "Anti-crease",
948+
"automatic_start": "Automatic start",
938949
"blocked_brushes": "Brushes blocked",
939950
"blocked_drive_wheels": "Drive wheels blocked",
940951
"blocked_front_wheel": "Front wheel blocked",

tests/components/miele/snapshots/test_sensor.ambr

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4141,38 +4141,48 @@
41414141
'capabilities': dict({
41424142
'options': list([
41434143
'automatic_plus',
4144+
'bed_linen',
41444145
'clean_machine',
41454146
'cool_air',
4147+
'cottonrepair',
41464148
'cottons',
41474149
'cottons_eco',
41484150
'cottons_hygiene',
41494151
'curtains',
41504152
'dark_garments',
4153+
'dark_jeans',
41514154
'delicates',
41524155
'denim',
41534156
'down_duvets',
41544157
'down_filled_items',
41554158
'drain_spin',
4159+
'easy_care',
41564160
'eco_40_60',
41574161
'express_20',
41584162
'first_wash',
41594163
'freshen_up',
4164+
'game_pieces',
41604165
'minimum_iron',
41614166
'no_program',
4162-
'normal',
4167+
'outdoor_garments',
41634168
'outerwear',
41644169
'pillows',
4170+
'powerfresh',
4171+
'pre_ironing',
41654172
'proofing',
41664173
'quick_power_wash',
41674174
'rinse',
41684175
'rinse_out_lint',
41694176
'separate_rinse_starch',
41704177
'shirts',
41714178
'silks',
4179+
'smartmatic',
41724180
'sportswear',
41734181
'starch',
41744182
'steam_care',
4183+
'stuffed_toys',
41754184
'trainers',
4185+
'trainers_refresh',
41764186
'warm_air',
41774187
'woollens',
41784188
]),
@@ -4213,38 +4223,48 @@
42134223
'friendly_name': 'Washing machine Program',
42144224
'options': list([
42154225
'automatic_plus',
4226+
'bed_linen',
42164227
'clean_machine',
42174228
'cool_air',
4229+
'cottonrepair',
42184230
'cottons',
42194231
'cottons_eco',
42204232
'cottons_hygiene',
42214233
'curtains',
42224234
'dark_garments',
4235+
'dark_jeans',
42234236
'delicates',
42244237
'denim',
42254238
'down_duvets',
42264239
'down_filled_items',
42274240
'drain_spin',
4241+
'easy_care',
42284242
'eco_40_60',
42294243
'express_20',
42304244
'first_wash',
42314245
'freshen_up',
4246+
'game_pieces',
42324247
'minimum_iron',
42334248
'no_program',
4234-
'normal',
4249+
'outdoor_garments',
42354250
'outerwear',
42364251
'pillows',
4252+
'powerfresh',
4253+
'pre_ironing',
42374254
'proofing',
42384255
'quick_power_wash',
42394256
'rinse',
42404257
'rinse_out_lint',
42414258
'separate_rinse_starch',
42424259
'shirts',
42434260
'silks',
4261+
'smartmatic',
42444262
'sportswear',
42454263
'starch',
42464264
'steam_care',
4265+
'stuffed_toys',
42474266
'trainers',
4267+
'trainers_refresh',
42484268
'warm_air',
42494269
'woollens',
42504270
]),
@@ -4265,6 +4285,7 @@
42654285
'capabilities': dict({
42664286
'options': list([
42674287
'anti_crease',
4288+
'automatic_start',
42684289
'cleaning',
42694290
'cooling_down',
42704291
'disinfecting',
@@ -4322,6 +4343,7 @@
43224343
'friendly_name': 'Washing machine Program phase',
43234344
'options': list([
43244345
'anti_crease',
4346+
'automatic_start',
43254347
'cleaning',
43264348
'cooling_down',
43274349
'disinfecting',
@@ -6489,38 +6511,48 @@
64896511
'capabilities': dict({
64906512
'options': list([
64916513
'automatic_plus',
6514+
'bed_linen',
64926515
'clean_machine',
64936516
'cool_air',
6517+
'cottonrepair',
64946518
'cottons',
64956519
'cottons_eco',
64966520
'cottons_hygiene',
64976521
'curtains',
64986522
'dark_garments',
6523+
'dark_jeans',
64996524
'delicates',
65006525
'denim',
65016526
'down_duvets',
65026527
'down_filled_items',
65036528
'drain_spin',
6529+
'easy_care',
65046530
'eco_40_60',
65056531
'express_20',
65066532
'first_wash',
65076533
'freshen_up',
6534+
'game_pieces',
65086535
'minimum_iron',
65096536
'no_program',
6510-
'normal',
6537+
'outdoor_garments',
65116538
'outerwear',
65126539
'pillows',
6540+
'powerfresh',
6541+
'pre_ironing',
65136542
'proofing',
65146543
'quick_power_wash',
65156544
'rinse',
65166545
'rinse_out_lint',
65176546
'separate_rinse_starch',
65186547
'shirts',
65196548
'silks',
6549+
'smartmatic',
65206550
'sportswear',
65216551
'starch',
65226552
'steam_care',
6553+
'stuffed_toys',
65236554
'trainers',
6555+
'trainers_refresh',
65246556
'warm_air',
65256557
'woollens',
65266558
]),
@@ -6561,38 +6593,48 @@
65616593
'friendly_name': 'Washing machine Program',
65626594
'options': list([
65636595
'automatic_plus',
6596+
'bed_linen',
65646597
'clean_machine',
65656598
'cool_air',
6599+
'cottonrepair',
65666600
'cottons',
65676601
'cottons_eco',
65686602
'cottons_hygiene',
65696603
'curtains',
65706604
'dark_garments',
6605+
'dark_jeans',
65716606
'delicates',
65726607
'denim',
65736608
'down_duvets',
65746609
'down_filled_items',
65756610
'drain_spin',
6611+
'easy_care',
65766612
'eco_40_60',
65776613
'express_20',
65786614
'first_wash',
65796615
'freshen_up',
6616+
'game_pieces',
65806617
'minimum_iron',
65816618
'no_program',
6582-
'normal',
6619+
'outdoor_garments',
65836620
'outerwear',
65846621
'pillows',
6622+
'powerfresh',
6623+
'pre_ironing',
65856624
'proofing',
65866625
'quick_power_wash',
65876626
'rinse',
65886627
'rinse_out_lint',
65896628
'separate_rinse_starch',
65906629
'shirts',
65916630
'silks',
6631+
'smartmatic',
65926632
'sportswear',
65936633
'starch',
65946634
'steam_care',
6635+
'stuffed_toys',
65956636
'trainers',
6637+
'trainers_refresh',
65966638
'warm_air',
65976639
'woollens',
65986640
]),
@@ -6613,6 +6655,7 @@
66136655
'capabilities': dict({
66146656
'options': list([
66156657
'anti_crease',
6658+
'automatic_start',
66166659
'cleaning',
66176660
'cooling_down',
66186661
'disinfecting',
@@ -6670,6 +6713,7 @@
66706713
'friendly_name': 'Washing machine Program phase',
66716714
'options': list([
66726715
'anti_crease',
6716+
'automatic_start',
66736717
'cleaning',
66746718
'cooling_down',
66756719
'disinfecting',

0 commit comments

Comments
 (0)