Skip to content

Commit

Permalink
Add standard identifiers for fans (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Feb 20, 2023
1 parent e0511d9 commit 7bd3e34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions miio/identifiers.py
Expand Up @@ -30,6 +30,17 @@ class VacuumId(StandardIdentifier):
Battery = "battery:level"


class FanId(StandardIdentifier):
"""Standard identifiers for fans."""

On = "fan:on"
Oscillate = "fan:horizontal-swing"
Angle = "fan:horizontal-angle"
Speed = "fan:speed-level"
Preset = "fan:mode"
Toggle = "fan:toggle"


class LightId(StandardIdentifier):
"""Standard identifiers for lights."""

Expand Down

0 comments on commit 7bd3e34

Please sign in to comment.