garage door added

This commit is contained in:
Chester committed 2022-03-07 16:44:43 +01:00
1 parent abe95f516f
commit 77df0609ca
3 files changed
+9 -3

No files matched your search

+6
View File
@@ -21,6 +21,7 @@ import { Doorbell } from './Accessories/Doorbell';
import { SecuritySystem } from './Accessories/SecuritySystem';
import { OccupancySensor } from './Accessories/OccupancySensor';
import { MotionSensor } from './Accessories/MotionSensor';
import { GarageDoor } from './Accessories/GarageDoor';
function uncapitalizeKeys(obj): Record<string, unknown> {
function isObject(o: unknown): boolean {
@@ -146,6 +147,11 @@ export class SmartHomeNGPlatform implements StaticPlatformPlugin {
devices.push(new WindowCovering(this, accessory));
break;
// GarageDoor
case 'garagedoor':
devices.push(new GarageDoor(this, accessory));
break;
// Show error for (yet ?) unsupported device
default:
this.log.warn('Accessory type', accessory.type, 'for', accessory.name, 'not recognized !');