swttt / com.swttt.homekit

Homekit for Homey
https://apps.athom.com/app/com.swttt.homekit
GNU Affero General Public License v3.0
35 stars 20 forks source link

Support for NEXA MYC-2300R (Remote) #101

Open fishfisher opened 5 years ago

fishfisher commented 5 years ago

Hello!

I have added MYC-2300 sockets to Homey that was successfully added to HomeyKit. However, I have also added a 4-button switch from Next that works properly in Homey, but does not show up in HomeyKit.

Would this be possible?

Brgds, Erik

robertklep commented 5 years ago

Would this be possible?

Perhaps. Which app are you using for that switch?

fishfisher commented 5 years ago

No app is used. NEXA products are transmitting on the 433 MHz range. Switches and remote is added through the Homey NEXA app. Lights show up in my iOS Home app via HomeyKit. However, the remote does not. Would be awesome if the remote could show up in the iOS home app the same way as the Philips Hue Remote. Homey successfully pairs with the remote and recognizes it as a 4 button remote (Can be used to trigger flows).

robertklep commented 5 years ago

I meant the Homey app that you're using :) I'm not sure how you would want to use it in HomeKit though?

fishfisher commented 5 years ago

Ah, sorry! I'm using https://apps.athom.com/app/se.nexa to pair the devices. I have most of my scenes/flows in the iOS Home app and would like to trigger these scenes with the NEXA remote and set up the buttons via the iOS Home instead of the Homey flows. Let me know if you need any more info:)

robertklep commented 5 years ago

*sigh* another app that Athom close-sourced 😫 which means that I can't find out which device class and capabilities it's using (I assume "button" for both, but given that the device has multiple buttons, it might be button.1/.../button.4 or whatever else they felt appropriate).

Can you open https://developer.athom.com/tools/devices in your browser and copy&paste the device info for me?

fishfisher commented 5 years ago

Ah, I see! In the flow UI, when I add the remote, it shows the following buttons:

Yes, sure thing! Is this correct?

Property Value
ID b4ba869e-e6bb-45ca-852b-b4f3f6848241
Class other
Driver homey:app:se.nexa — MYC-2300R
Ready No
Available Yes
Custom icon Yes
robertklep commented 5 years ago

There should also be a list of capabilities listed at the bottom, that's what I'm most interested in :)

fishfisher commented 5 years ago

Ah, sorry🤦‍♂️ There is nothing listed under capabilities! It's the same with the Hue Tap, though.

robertklep commented 5 years ago

I looked at the Hue app, and indeed, the (Tap) device doesn't expose any button capabilities. That means that it's not possible to add the device to HomeKit, because it requires that a device has capabilities that can be set and read.

And from what I know, the Virtual Devices app doesn't support multiple instances of the same capability, otherwise that would have been a possible workaround.

So for now, I'm afraid we can't add support for this device, unless @nhassink has any ideas?

fishfisher commented 5 years ago

Allright, thank you very much for taking your time to check up on it! Hopefully in the future:)