@@ -468,7 +468,10 @@ def swing_mode(self):
468
468
if v == "swing" and h == "swing" :
469
469
swingMode = SWING_BOTH
470
470
if v == "floorHeatingAirflow" :
471
- swingMode = "floorHeatingAirflow"
471
+ if h == "swing" :
472
+ swingMode = "floorHeatingAirflow and Horizontal"
473
+ else :
474
+ swingMode = "floorHeatingAirflow"
472
475
if v == "windNice" :
473
476
if h == "swing" :
474
477
swingMode = "Comfort Airflow and Horizontal"
@@ -494,14 +497,16 @@ def swing_modes(self):
494
497
for mode in horizontal ["currentMode" ]["values" ]:
495
498
if mode == "swing" :
496
499
swingModes .append (SWING_HORIZONTAL )
497
- if mode == "floorHeatingAirflow" :
498
- swingModes .append (mode )
499
500
if vertical is not None :
500
501
for mode in vertical ["currentMode" ]["values" ]:
501
502
if mode == "swing" :
502
503
swingModes .append (SWING_VERTICAL )
503
504
if horizontal is not None :
504
505
swingModes .append (SWING_BOTH )
506
+ if mode == "floorHeatingAirflow" :
507
+ swingModes .append (mode )
508
+ if horizontal is not None :
509
+ swingModes .append ("floorHeatingAirflow and Horizontal" )
505
510
if mode == "windNice" :
506
511
swingModes .append ("Comfort Airflow" )
507
512
if horizontal is not None :
@@ -522,7 +527,7 @@ async def async_set_swing_mode(self, swing_mode):
522
527
vertical = fanDirection .get ("vertical" )
523
528
if horizontal is not None :
524
529
new_hMode = "stop"
525
- if swing_mode in (SWING_HORIZONTAL , SWING_BOTH , "Comfort Airflow and Horizontal" ):
530
+ if swing_mode in (SWING_HORIZONTAL , SWING_BOTH , "Comfort Airflow and Horizontal" , "floorHeatingAirflow and Horizontal" ):
526
531
new_hMode = "swing"
527
532
res &= await self ._device .set_path (self ._device .getId (), self .embedded_id , "fanControl" , f"/operationModes/{ operationmode } /fanDirection/horizontal/currentMode" , new_hMode )
528
533
if res is False :
@@ -533,7 +538,7 @@ async def async_set_swing_mode(self, swing_mode):
533
538
new_vMode = "stop"
534
539
if swing_mode in (SWING_VERTICAL , SWING_BOTH ):
535
540
new_vMode = "swing"
536
- if swing_mode in ("floorHeatingAirflow" ):
541
+ if swing_mode in ("floorHeatingAirflow" , "floorHeatingAirflow and Horizontal" ):
537
542
new_vMode = "floorHeatingAirflow"
538
543
if swing_mode in ("Comfort Airflow" , "Comfort Airflow and Horizontal" ):
539
544
new_vMode = "windNice"
0 commit comments