Skip to content

Commit

Permalink
Merge pull request #5 from JeffSteinbok/features/DR-HTF007S
Browse files Browse the repository at this point in the history
Features/dr htf007 s
  • Loading branch information
JeffSteinbok authored Jun 26, 2023
2 parents a0b308d + 8d57fc0 commit 8d831da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Currently supported fans:

- DR-HTF001S
- DR-HTF002S
- DR-HTF008S
- DR-HTF004S
- DR-HTF007S
- DR-HTF008S

The integration will not load if the fan is of another model. If you have a different model that you can try, let me know in the Issues and I'll add it. Please make sure to include:
* Model - in the format above
Expand Down
8 changes: 5 additions & 3 deletions custom_components/dreo/pydreo/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
FAN_MODE_SLEEP = "sleep"

PRESET_MODES = {
"DR-HTF008S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO],
"DR-HTF001S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO],
"DR-HTF002S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO],
"DR-HTF004S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO]
"DR-HTF004S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO],
"DR-HTF007S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO],
"DR-HTF008S": [FAN_MODE_NORMAL, FAN_MODE_NATURAL, FAN_MODE_SLEEP, FAN_MODE_AUTO]
}

SPEED_RANGES = {
# off is not included
"DR-HTF008S": (1, 5),
"DR-HTF001S": (1, 6),
"DR-HTF002S": (1, 6),
"DR-HTF004S": (1, 12),
"DR-HTF007S": (1, 4),
"DR-HTF008S": (1, 5)
}

0 comments on commit 8d831da

Please sign in to comment.