derjayjay / homebridge-keylights

Yet another Homebridge plugin for Elgato Key Light and Key Light Air. https://homebridge.io
MIT License
45 stars 4 forks source link

Add Key Light Mini #296

Open andypiper opened 2 years ago

andypiper commented 2 years ago

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.

derjayjay commented 2 years ago

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

andypiper commented 2 years ago

Here is what I found via a quick exploration.

derjayjay commented 2 years ago

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

andypiper commented 2 years ago

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.

TheSwedishChef commented 2 years ago

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.

lmjabreu commented 1 year ago

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

derjayjay commented 1 year ago

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.

lmjabreu commented 1 year ago

@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"}
derjayjay commented 1 year ago

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

lmjabreu commented 1 year ago

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