Closed jimboca closed 8 years ago
Fork'ed https://github.com/bkanuka/pyharmony and will give it a try.
This working in the latest version. Just need to add the ability to send any harmony device commands thru the rest interface.
Thanks Jim! Thought I'd commend you here as well. :+1: -Toddimus from UDI forums
I was doing some more searching and came across this: https://github.com/bwssytems/restful-harmony Seems like they may have already done a lot of what you may be trying to do. I don't know enough about the guts of your program or what they've done, but I thought it might be applicable and worth a look to save you some time.
Yes, I have seen that and it would have made it easier in a sense, but I don't like Java programs in general, especially running on a RPi, and I don't like how bwsystems copied the hue emulator code and didn't give the original author credit. For restful harmony at least they did fork it and gave credit where it was due.
Valid points. I want yours to work anyways. :)
Just pushed the change you can say: http://harmonyip:8080/MyHarmony/send/command/deviceid/command e.g. to pause my Tivo I used: http://192.168.1.77:8080/FamilyRoomHarmony/send/command/28519632/Pause
You can look up the deviceid's and commands with show/devices.
Do a git pull in your ISYHelper directory, and restart isyhelper, if using the new method just run: sudo systemctl restart isyhelper
I only did minimal testing, so if it works for you I will officially release it.
Jim,
Works great!! I tried from a firefox browser to control two different devices. All four commands I tried worked.
I’m assuming this will be a “GET” command for the ISY network resource. Right? Or is it PUT or POST?
I’ll try now, and might just answer my own question.
Thanks! You are the man. -Todd
Yup. Network resource works too.
Awesome, good to hear. Yes I decided on a simple get instead of a post and passing json in the body for now at least.
On Mon, Feb 8, 2016, 8:12 PM Whoosierkin notifications@github.com wrote:
Yup. Network resource works too.
From: jimboca [mailto:notifications@github.com] Sent: Monday, February 08, 2016 6:59 PM To: jimboca/ISYHelper Cc: Whoosierkin Subject: Re: [ISYHelper] Integrate Harmony control (#2)
Just pushed the change you can say: http://harmonyip:8080/MyHarmony/send/command/deviceid/command e.g. to pause my Tivo I used: http://192.168.1.77:8080/FamilyRoomHarmony/send/command/28519632/Pause
You can look up the deviceid's and commands with show/devices.
Do a git pull in your ISYHelper directory, and restart isyhelper, if using the new method just run: sudo systemctl restart isyhelper
I only did minimal testing, so if it works for you I will officially release it.
— Reply to this email directly or view it on GitHub < https://github.com/jimboca/ISYHelper/issues/2#issuecomment-181682364> . < https://github.com/notifications/beacon/ADsnCWfcZLyOAs3GRFef2bTNI5VW5syTks5piU15gaJpZM4HBlc1.gif>
— Reply to this email directly or view it on GitHub https://github.com/jimboca/ISYHelper/issues/2#issuecomment-181699693.
Only thing to modify would be the note that says: http://harmonyip:8080/MyHarmony/send/command/deviceid/command into http://ISYHelperip:8080/MyHarmony/send/command/deviceid/command
Oh, yes, of course. Thanks!
I had figured it out, but others might not get it which could lead to extra support requests. :)
Another feature that would be cool to integrate would be to have a state variable in the ISY that updates when a button on the Harmony remote is pressed (i.e. command sent, activity change, etc.). This would be similar to the activity ID that you've already set up as an ISY variable, with the exception that it's not "two way" like the activity ID state variable is. I just need the ISY to know a button was pressed.
The use case would be to act as a kind of "occupancy sensor" to integrate into the ISY program environment. It could be as simple as a changing heartbeat value (-1 or 1). Just something to tell me that there's someone in the room controlling the entertainment center.
Yes, that is a great idea! Can you enter a request as a new issue on github?
That also reminds me that I've wanted to create a heartbeat for the ISYHelper back to the ISY just to make sure it is still running... Currently I use the DateTime module and check that they Hour variable gets changed once an hour, but a more general way would probably be better.
On Mon, Feb 8, 2016 at 9:06 PM Whoosierkin notifications@github.com wrote:
Another feature that would be cool to integrate would be to have a state variable in the ISY that updates when a button on the Harmony remote is pressed (i.e. command sent, activity change, etc.). This would be similar to the activity ID that you've already set up as an ISY variable.
The use case would be to act as a kind of "occupancy sensor" to integrate into the ISY program environment. It could be as simple as a changing heartbeat value (-1 or 1). Just something to tell me that there's someone in the room controlling the entertainment center.
— Reply to this email directly or view it on GitHub https://github.com/jimboca/ISYHelper/issues/2#issuecomment-181712194.
Actually just thinking about it more... I don't think I have access to that information from the Harmony to know when any button is pressed... So I doubt it is possible.
On Mon, Feb 8, 2016 at 9:20 PM JimBo CA jimboca3@gmail.com wrote:
Yes, that is a great idea! Can you enter a request as a new issue on github?
That also reminds me that I've wanted to create a heartbeat for the ISYHelper back to the ISY just to make sure it is still running... Currently I use the DateTime module and check that they Hour variable gets changed once an hour, but a more general way would probably be better.
On Mon, Feb 8, 2016 at 9:06 PM Whoosierkin notifications@github.com wrote:
Another feature that would be cool to integrate would be to have a state variable in the ISY that updates when a button on the Harmony remote is pressed (i.e. command sent, activity change, etc.). This would be similar to the activity ID that you've already set up as an ISY variable.
The use case would be to act as a kind of "occupancy sensor" to integrate into the ISY program environment. It could be as simple as a changing heartbeat value (-1 or 1). Just something to tell me that there's someone in the room controlling the entertainment center.
— Reply to this email directly or view it on GitHub https://github.com/jimboca/ISYHelper/issues/2#issuecomment-181712194.
Looking at pyharmony to integrate.