Skip to content

Commit

Permalink
Removed all push button type devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Sowen committed Feb 12, 2021
1 parent 3d6e456 commit 54fcf3c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 48 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.2.4 (2021-02-12)

### Improvements

- **General**: Removed all push button type devices. I haven't figured out a way to get push events from the HmIP-Cloud.
My guess is it is not possible. Now those devices not shown as unsupported devices in the Home App.

## 0.2.3 (2021-02-12)

### New devices
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": "homebridge-homematicip",
"version": "0.2.3",
"version": "0.2.4",
"description": "Homematic IP plugin for homebridge",
"license": "Apache-2.0",
"author": "Marc Sowen <[email protected]>",
Expand Down
9 changes: 0 additions & 9 deletions src/HmIPPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {HmIPGenericDevice} from './devices/HmIPGenericDevice';
import {HmIPAccessory} from './HmIPAccessory';
import {HmIPHeatingThermostat} from './devices/HmIPHeatingThermostat';
import * as os from 'os';
import {HmIPPushButton} from './devices/HmIPPushButton';
import {HmIPSmokeDetector} from './devices/HmIPSmokeDetector';
import {HmIPSwitch} from './devices/HmIPSwitch';
import {HmIPGarageDoor} from './devices/HmIPGarageDoor';
Expand Down Expand Up @@ -258,14 +257,6 @@ export class HmIPPlatform implements DynamicPlatformPlugin {
|| device.type === 'SHUTTER_CONTACT_OPTICAL_PLUS'
|| device.type === 'ROTARY_HANDLE_SENSOR') {
homebridgeDevice = new HmIPContactSensor(this, hmIPAccessory.accessory);
} else if (device.type === 'PUSH_BUTTON'
|| device.type === 'BRAND_PUSH_BUTTON'
|| device.type === 'PUSH_BUTTON_6'
|| device.type === 'REMOTE_CONTROL_8'
|| device.type === 'REMOTE_CONTROL_8_MODULE'
|| device.type === 'KEY_REMOTE_CONTROL_4'
|| device.type === 'KEY_REMOTE_CONTROL_4') {
homebridgeDevice = new HmIPPushButton(this, hmIPAccessory.accessory);
} else if (device.type === 'SMOKE_DETECTOR') {
homebridgeDevice = new HmIPSmokeDetector(this, hmIPAccessory.accessory);
} else if ( device.type === 'PLUGABLE_SWITCH'
Expand Down
37 changes: 0 additions & 37 deletions src/devices/HmIPPushButton.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export const PLUGIN_NAME = 'homebridge-homematicip';
/**
* Version to be used in protocol communication
*/
export const PLUGIN_VERSION = '0.2.3';
export const PLUGIN_VERSION = '0.2.4';

0 comments on commit 54fcf3c

Please sign in to comment.