homebridge-keylights icon indicating copy to clipboard operation
homebridge-keylights copied to clipboard

Add Key Light Mini

Open andypiper opened this issue 2 years ago • 10 comments

There's a new battery-driven Key Light that has a few new configuration options (whether to bypass the battery aka "studio mode", take certain actions when the battery is low. Would it be possible to add support for this? It shows up in Homebridge with this plugin, but I can't seem to get it to rename within the Homebridge / HomeKit config, and having some of the additional settings available in the plugin would save me having to switch apps.

Thanks.

andypiper avatar Apr 20 '22 11:04 andypiper

Sure, but since I don't own a mini, I'd need someone to look into the API.

derjayjay avatar Apr 20 '22 11:04 derjayjay

Here is what I found via a quick exploration.

andypiper avatar Apr 20 '22 18:04 andypiper

Looks good, I'll have a look and see if I can integrate it.

derjayjay avatar Apr 21 '22 12:04 derjayjay

I can do some more checking if needed, later. I used Charles Proxy to sniff the official app requests and then replayed them locally, but I may have missed a call or option (I think there is possibly a third power state that I didn't capture, since I only have 1 and 2 in the JSON output). Thanks!

Note, the Mini does already work with the homebridge plugin, but there may be nicer things that can be done with the full API.

andypiper avatar Apr 21 '22 12:04 andypiper

I cannot seem to get the Home app to recognize the Mini. I've got it added to Elgato Control Center just fine on the iPhone, iPad and Mac, but won't show up in Home when I go to Add Accessory > More options... in the Home app. Maybe I'm doing it wrong or something.

TheSwedishChef avatar Sep 24 '22 00:09 TheSwedishChef

@derjayjay can I help here? Also got a Mini.

lmjabreu avatar Oct 03 '23 14:10 lmjabreu

Do you have any way to get me a dump of the traffic between your phone or computer and the key light, when Elgato Control Center is running?

The light should be automatically detected by the plugin.

derjayjay avatar Oct 03 '23 14:10 derjayjay

@derjayjay of course.

Went through all functions available in the app so you got 100% coverage: Elgato Key Light Mini.chlsj

The only thing I missed was the accessory renaming:

PUT http://elgato-key-light-mini-2d58.local.:9123/elgato/accessory-info
Body: {"displayName":" Key Light Mini"}

lmjabreu avatar Oct 05 '23 09:10 lmjabreu

Thank you, that helps a lot - I'll see that I get the plugin updated as soon as I find the time.

derjayjay avatar Oct 05 '23 15:10 derjayjay

Thanks so much @derjayjay 🙌 Let me know if you've got any kind of tip jar available for this work.

lmjabreu avatar Oct 05 '23 17:10 lmjabreu