Skip to content

Commit

Permalink
Merge pull request #54 from iMicknl/add_climate
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl authored Jun 22, 2020
2 parents 5dd234b + 119ef81 commit 1c5be13
Show file tree
Hide file tree
Showing 8 changed files with 743 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@ dmypy.json

# Pyre type checker
.pyre/

# HA Config directory for local testing
/Config/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ https://github.com/imicknl/ha-tahoma

This component doesn't have a hardcoded list of devices anymore, but relies on the `uiclass` of every Somfy device. This way more devices will be supported out of the box, based on their category and available states and commands.

If your device is not supported, it will show the following message in the logging. You can use this to create a new issue in the repository to see if the component can be added.
If your device is not supported, it will show the following message in the debug log. You can use this to create a new issue in the repository to see if the component can be added.

`Unsupported Tahoma device (internal:TSKAlarmComponent - Alarm - TSKAlarmController)`
`DEBUG (MainThread) [custom_components.tahoma] Unsupported Tahoma device (internal:TSKAlarmComponent).`

| Somfy uiClass | Home Assistant platform |
| ----------------- | ----------------------- |
| HeatingSystem | climate |
| Awning | cover |
| Curtain | cover |
| ExteriorScreen | cover |
Expand Down Expand Up @@ -58,7 +59,6 @@ If your device is not supported, it will show the following message in the loggi
| --------------------- |
| RemoteController |
| Alarm |
| HeatingSystem |
| EvoHome |
| HitachiHeatingSystem |
| ExteriorHeatingSystem |
Expand Down
11 changes: 10 additions & 1 deletion custom_components/tahoma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@
extra=vol.ALLOW_EXTRA,
)

PLATFORMS = ["binary_sensor", "cover", "light", "lock", "scene", "sensor", "switch"]
PLATFORMS = [
"binary_sensor",
"climate",
"cover",
"light",
"lock",
"scene",
"sensor",
"switch",
]


async def async_setup(hass: HomeAssistant, config: dict):
Expand Down
Loading

0 comments on commit 1c5be13

Please sign in to comment.