Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fan control switches, such as the GE 14287, can be added to the Ring Alarm Base Station via “Devices > Set Up a Device > Security Devices > Works With Ring”.
Once the device is added, the Ring app prompts you to select a category (options are “Fans”, “Lights” and “Outlets”) (screenshot below):
![IMG](https://user-images.githubusercontent.com/3104489/62417252-66676300-b619-11e9-9fa7-c1f286796f38.PNG)
Homebridge supports a
Fan
Service. This PR enables thehomebridge-ring
plugin to identify fan control devices as Fans to HomeKit.Without this PR, the plugin identifies these devices as dimmable lights. This is because Ring reuses the
switch.multilevel
deviceType
for both fans and (multi-level) switches. This PR differentiates the two device types by using the value ofcategoryId
. Fans and multi-level switches havecategoryId
17
and2
, respectively. This can be seen by modifyingexamples/example.ts line 47
to log the entire device object withJSON.stringify(device)
.I published
[email protected]
for testing. Additional screenshots below: