Skip to content

Commit

Permalink
Merge pull request #88 from prasad-edlabadka/feature/light-support
Browse files Browse the repository at this point in the history
Feature/light support
  • Loading branch information
prasad-edlabadka authored Oct 26, 2022
2 parents f4fa542 + 1ef1eb6 commit db6e579
Show file tree
Hide file tree
Showing 12 changed files with 200 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Control your Tuya Smart IR based devices in HomeKit. Also works with Smart Home
## Supported Devices
* Air Conditioner (Only pre-configured vendor. No DIY devices)
* Fan (Pre-configured and DIY devices)
* Light (Pre-configured only. No DIY). Light supports only on-off and brightness control.
* DIY Devices. Each learned button will be added a switch.
* All other Pre-configured remotes will be added as switch to turn them on and off only. No other feature. (No DIY devices)

Expand Down
22 changes: 22 additions & 0 deletions dist/lib/accessories/LightAccessory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { PlatformAccessory } from 'homebridge';
import { TuyaIRPlatform } from '../../platform';
import { BaseAccessory } from './BaseAccessory';
/**
* Light Accessory
* An instance of this class is created for each accessory your platform registers
* Each accessory may expose multiple services of different service types.
*/
export declare class LightAccessory extends BaseAccessory {
private readonly platform;
private readonly accessory;
private service;
private sendCommandAPIURL;
private lightState;
constructor(platform: TuyaIRPlatform, accessory: PlatformAccessory);
private setOn;
private getOn;
private getBrightness;
private setBrightness;
private sendLightCommand;
}
//# sourceMappingURL=LightAccessory.d.ts.map
1 change: 1 addition & 0 deletions dist/lib/accessories/LightAccessory.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions dist/lib/accessories/LightAccessory.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/accessories/LightAccessory.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/platform.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/platform.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit db6e579

Please sign in to comment.