Skip to content

Commit

Permalink
Merge pull request #10 from Luligu/dev
Browse files Browse the repository at this point in the history
Release 1.1.1
  • Loading branch information
Luligu authored Oct 12, 2024
2 parents cf250fb + 659376f commit e8b0bf1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ If you like this project and find it useful, please consider giving it a star on

All notable changes to this project will be documented in this file.

## [1.1.1] - 2024-10-12

### Fixed

- [somfy]: Fixed Awning commands "rollOut" and "rollUp".

<a href="https://www.buymeacoffee.com/luligugithub">
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
</a>

## [1.1.0] - 2024-10-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matterbridge-somfy-tahoma",
"version": "1.1.0",
"version": "1.1.1",
"description": "Matterbridge somfy tahoma plugin",
"author": "https://github.com/Luligu",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ export class SomfyTahomaPlatform extends MatterbridgeDynamicPlatform {
}

private async sendCommand(command: string, device: Device, highPriority = false) {
if (command === 'open' && !device.commands.includes('open') && device.commands.includes('rollUp')) command = 'rollUp';
if (command === 'close' && !device.commands.includes('close') && device.commands.includes('rollOut')) command = 'rollOut';
if (command === 'open' && !device.commands.includes('open') && device.commands.includes('rollOut')) command = 'rollOut';
if (command === 'close' && !device.commands.includes('close') && device.commands.includes('rollUp')) command = 'rollUp';

if (command === 'open' && !device.commands.includes('open') && device.commands.includes('up')) command = 'up';
if (command === 'close' && !device.commands.includes('close') && device.commands.includes('down')) command = 'down';
Expand Down

0 comments on commit e8b0bf1

Please sign in to comment.