awahlig / homebridge-casambi

Homebridge Casambi Plugin
Apache License 2.0
18 stars 3 forks source link

Request: add Casambi switch support #17

Open Anthrow opened 2 years ago

Anthrow commented 2 years ago

I have added a non casambi occhio luminaire to my casambi network by using an AImotion plug & play switch. It works perfectly in the Casambi app and the Casambi plugin for homebridge detects it perfectly fine. The switch als gets added to my HomeKit setup however pressing the switch in HomeKit does not turn the switch on or off. Checking the Homebridge logs results in the following error:

“Luminaire switch plug & play has no on characteristics”

After reading your list of tested devices I noticed that you explicitly state that on/off functionality is not supported. So it all seems to add up. Are you planning on adding this functionality or are there certain software limitation that would make this impossible to implement? It would be great to be able to successfully use this switch in my HomeKit network.

Thanks in advance, Martijn

awahlig commented 2 years ago

The missing On characteristic would indeed result in this problem.

Could you send me the log when Homebridge starts up? In particular I’m looking for a line saying:

“Unit switch plug & play is a … with fixtureId …”

With that I should be able to debug the missing characteristic.

Anthrow commented 2 years ago

Here is a screenshot of the log: 5CAC7AC3-7FDE-4D32-BA52-A6AF4A4AA07A

Anthrow commented 2 years ago

“Unit switch plug & play is a … with fixtureId …”

So I guess that would be 7757 :)

awahlig commented 2 years ago

So I guess that would be 7757 :)

Thanks :)

I’ll get back to you when I know more.

Anthrow commented 2 years ago

Awesome! Many thanks in advance Awahlig!

Anthrow commented 2 years ago

Hello awahlig, I was wondering wether you have found a solution for the switch? Today is the last day I can return the unit and get a refund.

awahlig commented 2 years ago

Yes, sorry. I know why it doesn’t work and how to make it work. I haven’t had time yet to start implementing it but I will so you can keep it.

awahlig commented 2 years ago

I just published a new beta version to npm with support for simple on/off switches.

To try it out, you'll have to update your homebridge-casambi package:

sudo npm install -g homebridge-casambi@beta

Then, restart Homebridge and check the Plugins page of the Homebridge Config UI to see if it's using the correct version of the plugin (v0.3.4-beta.0).

Anthrow commented 2 years ago

Hello there,

I returned the unit because it was unsupported and I didn’t want to risk purchasing a switch that was unusable. I will try to get my hands on one soon so i can give your beta a try.

Met vriendelijke groet,

Martijn de Groot

On vrijdag, nov. 05, 2021 at 8:06 PM, Arkadiusz Wahlig @. @.)> wrote:

I just published a new beta version to npm with support for simple on/off switches.

To try it out, you'll have to update your homebridge-casambi package:

sudo npm install -g @.***

Then, restart Homebridge and check the Plugins page of the Homebridge Config UI to see if it's using the correct version of the plugin (v0.3.4-beta.0).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/awahlig/homebridge-casambi/issues/17#issuecomment-962145577), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AEZCFDJL2XZZEYT72ACRH23UKQTLTANCNFSM5D3Y6Q5A). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).

awahlig commented 2 years ago

Hey Martijn, no problem, I understand. Sorry it took this long, I was quite busy lately. If you manage to get one again, let me know.

Best, Arkadiusz

Anthrow commented 2 years ago

Will do! Thanks for investing time in making this possible.

Met vriendelijke groet,

Martijn de Groot

On vrijdag, nov. 05, 2021 at 9:00 PM, Arkadiusz Wahlig @. @.)> wrote:

Hey Martijn, no problem, I understand. Sorry it took this long, I was quite busy lately. Let me know if you're able to test it.

Best, Arkadiusz

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/awahlig/homebridge-casambi/issues/17#issuecomment-962180892), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AEZCFDPTYFVMFDKAKGWRN5DUKQZVPANCNFSM5D3Y6Q5A). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).