Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/trigger_knx_event_on_outgoing
- Loading branch information
Showing
94 changed files
with
1,396 additions
and
740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
layout: default | ||
title: Fan | ||
parent: Devices | ||
nav_order: 4 | ||
--- | ||
|
||
# [](#header-1)Fans | ||
|
||
## [](#header-2)Overview | ||
|
||
Fans are simple representations of KNX controlled fans. They support setting the speed and the oscillation. | ||
|
||
## [](#header-2)Interface | ||
|
||
- `xknx` XKNX object. | ||
- `name` name of the device. | ||
- `group_address` is the KNX group address of the fan speed. Used for sending. *DPT 5.001 / 5.010* | ||
- `group_address_state` is the KNX group address of the fan speed state. Used for updating and reading state. *DPT 5.001 / 5.010* | ||
- `group_address_oscillation` is the KNX group address of the oscillation. Used for sending. *DPT 1.001* | ||
- `group_address_oscillation_state` is the KNX group address of the fan oscillation state. Used for updating and reading state. *DPT 1.001* | ||
- `device_updated_cb` awaitable callback for each update. | ||
- `max_step` Maximum step amount for fans which are controlled with steps and not percentage. If this attribute is set, the fan is controlled by sending the step value in the range `0` and `max_step`. In that case, the group address DPT changes from *DPT 5.001* to *DPT 5.010*. Default: None | ||
|
||
## [](#header-2)Example | ||
|
||
```python | ||
fan = Fan(xknx, | ||
'TestFan', | ||
group_address='1/2/1', | ||
group_address_state='1/2/2', | ||
group_address_oscillation='1/2/3', | ||
group_address_oscillation_state='1/2/4') | ||
|
||
# Set the fan speed | ||
await fan.set_speed(50) | ||
|
||
# Accessing speed | ||
print(fan.current_speed) | ||
|
||
# Set the oscillation | ||
await fan.set_oscillation(True) | ||
|
||
# Accessing speed | ||
print(fan.current_oscillation) | ||
|
||
# Requesting state via KNX GroupValueRead | ||
await fan.sync() | ||
``` | ||
|
||
## [](#header-2)Configuration via **xknx.yaml** | ||
|
||
Fans are usually configured via [`xknx.yaml`](/configuration): | ||
|
||
```yaml | ||
groups: | ||
fan: | ||
Livingroom.Fan_1: { group_address: '1/4/1', group_address_state: '1/4/2', group_address_oscillation: '1/4/3', group_address_oscillation_state: '1/4/4' } | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
layout: default | ||
title: Switches | ||
parent: Devices | ||
nav_order: 6 | ||
nav_order: 7 | ||
--- | ||
|
||
# [](#header-1)Switches | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
layout: default | ||
title: Time | ||
parent: Devices | ||
nav_order: 7 | ||
nav_order: 8 | ||
--- | ||
|
||
# [](#header-1)Time | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
netifaces==0.10.9 | ||
pyyaml==5.3.1 | ||
pyyaml==5.4.1 | ||
voluptuous==0.12.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
-r production.txt | ||
pre-commit==2.9.3 | ||
pre-commit==2.10.1 | ||
isort==5.7.0 | ||
coveralls==3.0.0 | ||
flake8==3.8.4 | ||
flake8-isort==4.0.0 | ||
pydocstyle==5.1.1 | ||
pylint==2.6.0 | ||
pylint-strict-informational==0.1 | ||
pytest==6.2.1 | ||
pytest==6.2.2 | ||
pytest-cov==2.11.1 | ||
pytest-timeout==1.4.2 | ||
setuptools==51.3.3 | ||
tox==3.21.2 | ||
mypy==0.790 | ||
setuptools==53.0.0 | ||
tox==3.21.4 | ||
mypy==0.800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.