nicoduj / homebridge-harmony

Harmony websocket plugin for homebridge
The Unlicense
211 stars 22 forks source link

[Question] Holding down buttons #406

Open wesmwitt opened 2 years ago

wesmwitt commented 2 years ago

Thanks for all your hard work on this project. I was trying to figure something out.

Is there any way to hold down a button for a certain duration? In order to make a command to turn off the Apple TV it requires i hold down the home or off button. The harmony app seems to allow this functionality, but i wasn’t sure if that was possible using this homebridge plugin.

Thank you for your help.

nicoduj commented 2 years ago

Hi, i have to check I thought it was something handled by the physical remote itself .

LordZork commented 1 year ago

Hi...

It is possible to hold a button down via the Harmony app, which can be useful. For example, you can hold the "home" button down for the Apple TV, which brings up a menu you can use to put the Apple TV to sleep.

Unfortunately, this plugin currently does not appear to support that functionality. You can only press a button, not hold it down for any specified duration of time... with this plugin.

I'm curious, though, if that functionality could be added to this plugin?

@nicoduj, is it possible to add a "hold" command that "presses AND holds" a button for a specified duration of time?

I think there would be a lot of us that would be very grateful to have this functionality, if possible!

Also, thanks for all of your hard work on this project!

nicoduj commented 6 months ago

Hi, thanks for feedback. I think it is possible to achieve, but will need a dedicated switch I think for those commands, and I need to modify an underlying lib that does not support it right now . For referenc,e seems that commend needs to be sent trhough the socket is : "vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction",

wesmwitt commented 6 months ago

Thank you for all your hard work! This plugin is an essential part of my smart home.