§
    ¿nkx  ã                   ó0   — d dl mZ 	  G d„ de¦  «        ZdS )é    )ÚDevicec                   óx   ‡ — e Zd ZdZdZdZdZdZdZˆ fd„Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zˆ xZS )ÚFloorFanDevicez4
    Represents a Tuya based Floor Standing Fan
    Ú1Ú2Ú3Ú5Ú22c                 ój   •— d|vs|d         sd|d<    t          t          | ¦  «        j        |i |¤Ž d S )NÚversiongffffff
@)Úsuperr   Ú__init__)ÚselfÚargsÚkwargsÚ	__class__s      €úl/var/www/html/ksbdueren/shared/heatpump/venv/lib/python3.11/site-packages/tinytuya/Contrib/FloorFanDevice.pyr   zFloorFanDevice.__init__=   sJ   ø€ à˜FÐ"Ð"¨&°Ô*;Ð"Ø #ˆF�9ÑØ,��n˜dÑ#Ô#Ô,¨dÐ=°fÐ=Ð=Ð=Ð=Ð=ó    c                 ó6  — |                       ¦   «         d         }|                     | j        ¦  «        |                     | j        ¦  «        |                     | j        ¦  «        |                     | j        ¦  «        |                     | j        ¦  «        dœS )zLWrapper around status() that replace DPS indices with human readable labels.Údps)ÚPowerÚModeÚSpeedÚOscillationÚTimer)ÚstatusÚgetÚ	DPS_POWERÚDPS_MODEÚ	DPS_SPEEDÚDPS_OSCILLATIONÚ	DPS_TIMER©r   r   s     r   Ústatus_jsonzFloorFanDevice.status_jsonC   sy   € à—’‘”˜uÔ%ˆà—Z’Z ¤Ñ/Ô/Ø—J’J˜tœ}Ñ-Ô-Ø—Z’Z ¤Ñ/Ô/Ø!Ÿ:š: dÔ&:Ñ;Ô;Ø—Z’Z ¤Ñ/Ô/ð
ð 
ð 	
r   c                 ól   — |                       ¦   «         d         }|                     | j        d¦  «        S )z Get the power status of the fan.r   F)r   r   r   r#   s     r   Ú	get_powerzFloorFanDevice.get_powerN   s*   € à—’‘”˜uÔ%ˆØ�zŠz˜$œ.¨%Ñ0Ô0Ð0r   c                 ó<   — |                       || j        ¦  «         dS )zzSet the power status of the fan.
        
        Args:
            on (bool): True to turn on, False to turn off
        N)Ú
set_statusr   ©r   Úons     r   Ú	set_powerzFloorFanDevice.set_powerS   s    € ð 	�Š˜˜DœNÑ+Ô+Ð+Ð+Ð+r   c                 ól   — |                       ¦   «         d         }|                     | j        d¦  «        S )ztGet the current wind mode.
        
        Returns:
            str: One of 'normal', 'nature', or 'sleep'
        r   Únormal)r   r   r   r#   s     r   Úget_modezFloorFanDevice.get_mode[   s,   € ð —’‘”˜uÔ%ˆØ�zŠz˜$œ-¨Ñ2Ô2Ð2r   c                 ój   — |dvrt          d|› d�¦  «        ‚|                      | j        |¦  «         dS )zÍSet the wind mode.
        
        Args:
            mode (str): One of 'normal', 'nature', or 'sleep'
            
        Raises:
            ValueError: If mode is not one of the valid options
        )r-   ÚnatureÚsleepzInvalid mode 'z.'. Must be one of: 'normal', 'nature', 'sleep'N)Ú
ValueErrorÚ	set_valuer   )r   Úmodes     r   Úset_modezFloorFanDevice.set_moded   sF   € ð Ð4Ð4Ð4ÝÐb¨dÐbÐbÐbÑcÔcÐcØ�Š�t”} dÑ+Ô+Ð+Ð+Ð+r   c                 ól   — |                       ¦   «         d         }|                     | j        d¦  «        S )zlGet the current fan speed level.
        
        Returns:
            int: Speed level from 1 to 5
        r   é   )r   r   r    r#   s     r   Ú	get_speedzFloorFanDevice.get_speedq   s,   € ð —’‘”˜uÔ%ˆØ�zŠz˜$œ.¨!Ñ,Ô,Ð,r   c                 ój   — |dvrt          d|› d�¦  «        ‚|                      | j        |¦  «         dS )z¾Set the fan speed level.
        
        Args:
            speed (int): Speed level from 1 to 5
            
        Raises:
            ValueError: If speed is not between 1 and 5
        )r7   é   é   é   é   zInvalid speed z. Must be between 1 and 5N)r2   r3   r    )r   Úspeeds     r   Ú	set_speedzFloorFanDevice.set_speedz   sE   € ð ˜Ð'Ð'ÝÐN¨eÐNÐNÐNÑOÔOÐOØ�Š�t”~ uÑ-Ô-Ð-Ð-Ð-r   c                 ól   — |                       ¦   «         d         }|                     | j        d¦  «        S )z�Get the oscillation/swing status.
        
        Returns:
            bool: True if oscillation is on, False otherwise
        r   F)r   r   r!   r#   s     r   Úget_oscillationzFloorFanDevice.get_oscillation‡   s-   € ð —’‘”˜uÔ%ˆØ�zŠz˜$Ô.°Ñ6Ô6Ð6r   c                 ó<   — |                       || j        ¦  «         dS )z…Set the oscillation/swing status.
        
        Args:
            on (bool): True to enable oscillation, False to disable
        N)r(   r!   r)   s     r   Úset_oscillationzFloorFanDevice.set_oscillation�   s!   € ð 	�Š˜˜DÔ0Ñ1Ô1Ð1Ð1Ð1r   c                 ól   — |                       ¦   «         d         }|                     | j        d¦  «        S )z€Get the current sleep timer setting.
        
        Returns:
            str: One of 'cancel', '1h', '2h', ..., '12h'
        r   Úcancel)r   r   r"   r#   s     r   Ú	get_timerzFloorFanDevice.get_timer˜   s,   € ð —’‘”˜uÔ%ˆØ�zŠz˜$œ.¨(Ñ3Ô3Ð3r   c           	      ó°   — g d¢}||vr2t          d|› dd                     d„ |D ¦   «         ¦  «        › �¦  «        ‚|                      | j        |¦  «         dS )a.  Set the sleep timer.
        
        Args:
            timer (str): One of 'cancel', '1h', '2h', '3h', '4h', '5h', '6h', 
                        '7h', '8h', '9h', '10h', '11h', or '12h'
                        
        Raises:
            ValueError: If timer is not one of the valid options
        )rE   Ú1hÚ2hÚ3hÚ4hÚ5hÚ6hÚ7hÚ8hÚ9hÚ10hÚ11hÚ12hzInvalid timer 'z'. Must be one of: z, c              3   ó4   K  — | ]}t          |¦  «        V — Œd S )N)Úrepr)Ú.0Úts     r   ú	<genexpr>z+FloorFanDevice.set_timer.<locals>.<genexpr>°   s-   è è € ÐRqÐRqÐ_`ÕSWÐXYÑSZÔSZÐRqÐRqÐRqÐRqÐRqÐRqr   N)r2   Újoinr3   r"   )r   ÚtimerÚvalid_timerss      r   Ú	set_timerzFloorFanDevice.set_timer¡   sw   € ð
ð 
ð 
ˆð ˜Ð$Ð$ÝÐs¨uÐsÐsÈÏÊÐRqÐRqÐdpÐRqÑRqÔRqÑIqÔIqÐsÐsÑtÔtÐtØ�Š�t”~ uÑ-Ô-Ð-Ð-Ð-r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r    r!   r"   r   r$   r&   r+   r.   r5   r8   r?   rA   rC   rF   r\   Ú__classcell__)r   s   @r   r   r   2   s  ø€ € € € € ðð ð €IØ€HØ€IØ€OØ€Ið>ð >ð >ð >ð >ð	
ð 	
ð 	
ð1ð 1ð 1ð
,ð ,ð ,ð3ð 3ð 3ð,ð ,ð ,ð-ð -ð -ð.ð .ð .ð7ð 7ð 7ð2ð 2ð 2ð4ð 4ð 4ð.ð .ð .ð .ð .ð .ð .r   r   N)Útinytuya.corer   r   © r   r   ú<module>rd      s[   ðØ  Ð  Ð  Ð  Ð  Ð  ð,ð^.ð .ð .ð .ð .�Vñ .ô .ð .ð .ð .r   