Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Awning devices and update readme + changelog #11

Merged
merged 6 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.0]

### Added

- Added configuration flow
- Added support for controlling the tilt position of supported covers
- Added support for Somfy devices using the Pergola uiclass.
- Added unique id per entity, making it configurable via the front-end.
- Added support for Humidity sensors
- Added support for Light (DimmableLight) devices

### Changed

- Changed MotionSensor platform from sensor to binary_sensor
- Changed SmokeSensor platform from sensor to binary_sensor
- Changed ContactSensor platform from sensor to binary_sensor
- Changed GarageDoor platform from switch to cover
- Changed Light (OnOffLight) platform from switch to light
- Changed cover implementation to rely on available states and commands, instead of a hardcoded device list
- Add shared device attributes and states to TahomaDevice
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
![](https://raw.githubusercontent.com/iMicknl/ha-tahoma/master/media/tahoma_device_page.png)

# Somfy Tahoma - Home Assistant (work in progress)

> The Tahoma integration platform is used as an interface to the tahomalink.com website. It adds covers, scenes and a sun sensor from the Tahoma platform.

This component is an updated version of the [original Tahoma integration](https://www.home-assistant.io/integrations/tahoma/) in Home Assistant and the goal is to get those changes merged in core. The installation of this component will replace the original Tahoma integration and thus allows you to beta-test the new changes.
This component is an updated version of the [original Tahoma integration](https://www.home-assistant.io/integrations/tahoma/) in Home Assistant and the goal is to get those changes merged in core. The installation of this component will replace the original Tahoma integration and thus allows you to beta-test [all changes](./CHANGELOG.md).

## Installation

Expand Down Expand Up @@ -41,6 +43,7 @@ If your device is not supported, it will show the following message in the loggi
| SmokeSensor | binary_sensor |
| MotionSensor | binary_sensor |
| Light | light |
| Awning | cover |

## Not supported (yet)

Expand All @@ -49,3 +52,4 @@ If your device is not supported, it will show the following message in the loggi
| RemoteController |
| Alarm |
| HeatingSystem |

6 changes: 4 additions & 2 deletions custom_components/tahoma/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
"ContactSensor": "binary_sensor",
"SmokeSensor": "binary_sensor",
"MotionSensor": "binary_sensor",
"ExteriorVenetianBlind": "cover"
"ExteriorVenetianBlind": "cover",
"Awning": "cover"
}

TAHOMA_COVER_DEVICE_CLASSES = {
"Awning": DEVICE_CLASS_AWNING,
"ExteriorScreen": DEVICE_CLASS_BLIND,
"Pergola": DEVICE_CLASS_AWNING,
"RollerShutter": DEVICE_CLASS_SHUTTER,
"Window": DEVICE_CLASS_WINDOW,
"Blind": DEVICE_CLASS_BLIND,
"GarageDoor": DEVICE_CLASS_GARAGE,
"HorizontalAwning": DEVICE_CLASS_AWNING,
"ExteriorVenetianBlind": DEVICE_CLASS_BLIND,
"VeluxInteriorBlind": DEVICE_CLASS_BLIND
}
Expand Down
Binary file added media/tahoma_device_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.