Skip to content

Commit

Permalink
Add oscillation control
Browse files Browse the repository at this point in the history
  • Loading branch information
daggelpop committed Jul 16, 2022
1 parent aea0dc3 commit 41f1f05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DysonPureLinkPlugin/dyson_pure_link_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,21 @@ def set_heating_mode(self, mode, max_temperature=None):
if self._is_connected:
self._change_state(data)

def set_oscillation(self, mode):
"""Changes oscillation: ON|OFF"""
if self._is_connected:
if mode == 'TOGGLE':
oscillation = getattr(
self.state_data,
'oscillation',
None,
)
if oscillation:
mode = 'OFF' if oscillation == 'ON' else 'ON'
else:
return
self._change_state({'oson': mode})

def set_standby_monitoring(self, mode):
"""Changes standby monitoring: ON|OFF"""
if self._is_connected:
Expand Down

0 comments on commit 41f1f05

Please sign in to comment.