-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the ability to 'hold' buttons in Macros #47
Conversation
Thank you! |
@alexbain Oh no thank /you/ for the project! :) It's proven invaluable to me. |
Awesome - I'm glad this project has proven useful for you. I'd definitely be interested in seeing what you put together for the hardware. I still need to blog about a PCB + schematic that was mailed to me. Lastly - I would be very interested in the Homebridge integration. I'd certainly be down to cross post that. Some Siri integration would be a great touch. |
@apocolipse I setup Homebridge over the weekend. Any chance you could share that integration work you did with |
Ahh yes, I'll do a more thorough writeup but the gist of it is to use "accessories": [
{
"name": "XBox",
"on_url": "http://radius.local/remotes/XBOX-ONE/XboxFancyButton",
"off_url": "http://radius.local/macros/Xbox-Off",
"http_method": "POST",
"service": "Switch", "accessory": "Http",
"brightness_url": "", "username": "", "password": "", "sendimmediately": "", "brightnessHandling": "no"
},
{
"name": "TV",
"on_url": "http://radius.local/remotes/Livingroom_TV/power",
"off_url": "http://radius.local/remotes/Livingroom_TV/power",
"http_method": "POST",
"service": "Switch", "accessory": "Http",
"on_body": "", "off_body": "", "brightness_url": "", "username": "", "password": "", "sendimmediately": "", "brightnessHandling": "no"
},
{
"name": "HBO",
"on_url": "http://radius.local/macros/HBO",
"off_url": "http://radius.local/macros/HBO",
"http_method": "POST",
"service": "Switch", "accessory": "Http",
"on_body": "", "off_body": "", "brightness_url": "", "username": "", "password": "", "sendimmediately": "", "brightnessHandling": "no"
}
] Note: I had to use the fully resolved hostname, localhost had some weird issues for whatever reason. You can then take it a step further and use HomeKit management apps (there are many, some paid) to set up Scenes (Currently limited to "Good Morning", "Good Night", "I'm Home", and "I'm Leaving") to turn things on/off appropriately, for example I like watching the news in the evening so I have my "I'm Home" scene set to turn on my lights (Hue lights, not through |
Hi, just ran into the same problem, when I tried to power off my Xbox One. I thought, there have to be more commands than that. And there are: To my surprise, there is a command to directly turn off XBO. So I don't know, if you still need the command(s). If you want to, I could share the raw codes here with you |
@SLiX69 ah good catch, I have a harmony remote as well but still have it setup with Xbox360 which doesn't have a power-off function. I'll have to load XboxOne and check out the codes. I also wrote this for other edge-case scenarios as well, I had a bad 4x2 HDMI Matrix that wouldn't deliver audio to Out-B unless inputs were cycled back and forth with a specific timing, 2 reasons combined compelled me to add this feature ;) |
@apocolipse - just got homebridge working with |
Added in the ability to use repeater's in macro's. Certain remote functions, like powering off an Xbox One, require a button to be 'held' for a period of time, along with other commands.
Macro function modified to check to see if
COMMAND
is an array type, if so it treats its elements asCOMMAND
, andDELAY
, and issues asend_start
andsend_stop
accordingly.In the future, this logic should probably be cleaned up to use objects for better semantics and type safety.