question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Device categories occasionally revert (“Fans” → “Lights”)

See original GitHub issue

Bug Report

Describe the Bug

The Ring app for iOS allows you to specify a category for certain devices: ring-app-device-category

Occasionally, after restarting homebridge-ring, I see messages like this in my logs:

Pruning unused service 00000040-0000-1000-8000-0026BB765291 Living Room Ceiling Fan from Living Room Ceiling Fan

This message indicates that my “Living Room Ceiling Fan” fan device was removed from the Home app. In its place, homebridge-ring has created a new light device. When I check “Living Room Ceiling Fan”’s category in the Ring app, I see that it has been reset from “Fans” back to “Lights” (the default).

Is it possible homebridge-ring is inadvertently overriding device categories on startup?

To Reproduce

Steps to reproduce the behavior:

  1. Add a device to the Ring app (for testing purposes, this can be a light device like the GE Z-Wave Plus Dimmer Switch or an actual fan control like the GE Z-Wave Plus Fan Control).
  2. In the Ring app, set the device’s “category” to “Fans“.
  3. Restart homebridge-ring. Notice that the device is successfully added to HomeKit as a fan.
  4. Wait.
  5. Restart homebridge-ring. It’s possible your device now shows up as a light in the Home and Ring apps.

This describes the circumstances in which I experience the issue. Unfortunately, I don’t have a more specific repro step 4. I’m not sure how much time must elapse, or whether time is incidental to the actual cause.

Expected behavior

I expect devices I configure as “Fans” to remain as “Fans” and not revert to “Lights”.

Screenshots/Logs

To workaround this issue, I set the device category back to “Fans” in the Ring app, then restart homebridge-ring. Then, messages like this appear in my logs, showing that the errant light device is removed (a fan device appears in its place):

Pruning unused service 00000043-0000-1000-8000-0026BB765291 Living Room Ceiling Fan from Living Room Ceiling Fan

Additional context

I run homebridge-ring as a launchd service: com.homebridge.ring.plist

Homebridge Ring Config

{
  "bridge": {
    "name": "Homebridge Ring",
    "username": "02:00:00:00:00:00",
    "port": 50000,
    "pin": "000-00-000"
  },
  "description": "Homebridge Ring",
  "accessories": [],
  "platforms": [{
    "platform": "Ring",
    "refreshToken": "[snip]",
    "hideCameraSirenSwitch": true,
    "hideAlarmSirenSwitch": true,
    "hideDoorbellSwitch": true
  }]
}

Environment

  • OS: macOS Catalina 10.15.4
  • Node.js: 12.16.3
  • Yarn: 1.22.4
  • homebridge-ring: 8.1.0
  • homebridge: 1.0.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
smocklecommented, Dec 5, 2020

Incidentally, since connecting outlets to my Ring Alarm (which inspired #493), I’ve also noticed outlets occasionally revert to lights.

1reaction
dgreifcommented, Jun 29, 2020

@smockle I completely agree with your logic. There are simply too many issues with handling this bug on the homebridge side. 🤞 maybe Ring will fix it some day

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the frequency of a Fantasia Fans Remote Control
Sometimes a new device in the local area or even in your own home can have an ... Double insulated lights (11); Fantasia...
Read more >
Fan lights toggle still busted! - Alexa - Bond Home Forum
I finally have all 3 of my ceiling fans and lights working with Bond again. I had no idea there was a new...
Read more >
Change entity domain? - Home Assistant Community
Is it possible to change the domain on an entity? ... remap ceiling fans that are imported as dimmable lights to fans with...
Read more >
Remote Control Ceiling Fans - Market Summary
Emerson may make the best remote control ceiling fans on the market. ... Light kits with dimming lights include standard incandescent bulbs, ...
Read more >
10 Common Problems of Ceiling Fans: How to Fix
The first reason is simply obvious for those who don't own a ceiling fan with a bottom light. Newer ceiling fans will have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found