Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fskg category #49

Merged
merged 2 commits into from
Jul 13, 2021
Merged

Added fskg category #49

merged 2 commits into from
Jul 13, 2021

Conversation

slavvka
Copy link
Contributor

@slavvka slavvka commented Jun 26, 2021

fixes #48

@slavvka slavvka marked this pull request as draft June 26, 2021 20:52
@Hanh94
Copy link
Contributor

Hanh94 commented Jun 29, 2021

Hi @slavvka, Thank you very much for your kind feedback.
We think of this as a switch category
Just need to add the following code:

  case 'kg':
  case 'tdq':
  case 'fskg':
        var deviceData = new DataUtil().getSubService(device.status)
        deviceAccessory = new SwitchAccessory(this, homebridgeAccessory, device, deviceData);
        this.accessories.set(uuid, deviceAccessory.homebridgeAccessory);
        this.deviceAccessories.set(uuid, deviceAccessory);
        break;

@Hanh94 Hanh94 marked this pull request as ready for review July 13, 2021 12:47
@Hanh94 Hanh94 merged commit 8b1da13 into tuya:master Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsupported devices
2 participants