OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
239 stars 51 forks source link

Feature Request: Stateless Buttons for IR Light Device #863

Open neegool opened 10 months ago

neegool commented 10 months ago

Problem

Currently IR lights are represented as toggle switches in HomeKit. While this works fine, an option to add stateless buttons would be better suited for lights which have separate buttons for On and Off.

Solution

Expose extra buttons to the accessory in HomeKit (either within the same accessory, or as extra buttons as part of an accessory group). One button is for On, and one button is for Off.

Alternatives

No response

Additional context

No response

donavanbecker commented 10 months ago

@neegool Feel free to open a PR

donavanbecker commented 10 months ago

Support added in v2.12.0, please open new issue if you have any issues.

This can be enable by setting the Stateless config, by inputting your IR light deviceID into the IR Device Settings.

neegool commented 10 months ago

Thanks for the update! However when I tried it on an IR Light, it gives me "This accessory is not currently supported by the Home app."

donavanbecker commented 10 months ago

Yep because stateless switches are only available in 3rd party apps. Let me try one more thing.