homebridge-ratgdo 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,7 +33,7 @@ In the interest of the community seeking a solution outside of myQ, I've develop
33
33
  * Ability to lock and unlock the garage door opener through the ability to lockout wireless remotes.
34
34
  * Read-only garage door opener support.
35
35
  * Automation switch and dimmer support, allowing you to set the garage door to any position.
36
- * Support for Ratgdo variants like [Konnected blaQ](https://konnected.io/products/smart-garage-door-opener-blaq-myq-alternative).
36
+ * Support for **all** current Ratgdo-branded devices as well as for variants like [Konnected blaQ](https://konnected.io/products/smart-garage-door-opener-blaq-myq-alternative) that use ESPHome.
37
37
  * A rich webUI for configuration.
38
38
 
39
39
  ## Installation
@@ -2,6 +2,14 @@ import { PlatformAccessory } from "homebridge";
2
2
  import { HomebridgePluginLogging } from "homebridge-plugin-utils";
3
3
  import { RatgdoDevice } from "./ratgdo-types.js";
4
4
  import { RatgdoPlatform } from "./ratgdo-platform.js";
5
+ interface EspHomeEvent {
6
+ current_operation?: string;
7
+ id: string;
8
+ name?: string;
9
+ position?: number;
10
+ state: string;
11
+ value?: string;
12
+ }
5
13
  export declare class RatgdoAccessory {
6
14
  private readonly accessory;
7
15
  private readonly api;
@@ -26,11 +34,19 @@ export declare class RatgdoAccessory {
26
34
  private configureMotionSensor;
27
35
  private configureAutomationDoorPositionDimmer;
28
36
  private configureAutomationDoorSwitch;
37
+ private configureDiscoBattery;
38
+ private configureDiscoLaserSwitch;
39
+ private configureDiscoLedSwitch;
40
+ private configureDiscoVehicleArrivingContactSensor;
41
+ private configureDiscoVehicleLeavingContactSensor;
42
+ private configureDiscoVehiclePresenceOccupancySensor;
43
+ private configureKonnectedPcwSwitch;
44
+ private configureKonnectedStrobeSwitch;
29
45
  private configureAutomationLockoutSwitch;
30
46
  private configureDoorOpenOccupancySensor;
31
47
  private configureMotionOccupancySensor;
32
48
  private setDoorState;
33
- updateState(event: string, payload: string, position?: number): void;
49
+ updateState(event: EspHomeEvent): void;
34
50
  private command;
35
51
  private translateCurrentDoorState;
36
52
  private translateTargetDoorState;
@@ -42,3 +58,4 @@ export declare class RatgdoAccessory {
42
58
  private get accessoryName();
43
59
  private set accessoryName(value);
44
60
  }
61
+ export {};