yujinakayama / homebridge-switchbot

Homebridge plugin for SwitchBot
29 stars 4 forks source link

Automatically switch off the switch after pressing the button and Stateful modus #3

Open Nastras opened 5 years ago

Nastras commented 5 years ago

Hello, would it be possible for you to add a function that allows the switch in Homekit to be turned off automatically after pressing it?

This would be a great function for devices like a door opener that is only pressed short to open the entrance door.

It would also be great if you could add a function that saves the state of the switch after restarting the homebridge for devices that have two positions.

Check out the cmd-trigger plugin there for these two options. Maybe you can use a part of the code?

https://github.com/hallos/homebridge-cmdtrigger

I would be very happy if you implement it.

Thanks a lot!

Greetings Nastra

DJay-X commented 5 years ago

@yujinakayama Thanks for you work and ongoing development. I also would very appreciate to have the two options added to your plugin.

  1. Remember the state of the switch after Homebridge reboot. "stateful": true
  2. Option to show switch off in HomeKit like a trigger after turning on. "trigger": and "delayOn":

Thanks again for your helpful plugin and sharing with the community.

Kohle81 commented 5 years ago

It would be great to implement these suggestions!!

CooperCGN commented 4 years ago

Yes, these options would be a real enhancement to the plugin

Jafalex commented 4 years ago

Another vote for the above, our garage door wall switch badly needs this! Thanks.