• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • The forum software that supports hummy.tv has been upgraded to XenForo 2.0!

    This is a major upgrade which changes the look and feel of the forum somewhat but brings a host of improvements too. Please bear with us as we continue to tweak things and report any issues or suggestions in Site/Forum Issues.

Home automation integration

jfshw

New Member
#1
I've recently started getting into home automation (blame the Raspberry Pi!) and one of the things I can now track is when my doorbell rings! Someone at the door usually triggers a frantic search for the Humax remote.

I have been using the webif interface to control my box very successfully, so I am now wondering, would it be possible to create a standalone http: string which I can send the box containing just a pause command?

Thanks!
 

af123

Administrator
Staff member
#2
Nice : )
Yes, the pause command can be sent with:

http://<IP of Humax>/plugin/ir/send.jim?code=PAUSE

To get a list of possible commands you can view the source of the remote web page or log into the box and run the ir command with no arguments.

Code:
Usage: ir <keyname|-keycode> [<keyname|-keycode>]...
Available key names are:
  POWER          STANDBY        SOURCE        ONE            TWO           
  THREE          FOUR          FIVE          SIX            SEVEN         
  EIGHT          NINE          ZERO          TV/RADIO      MENU         
  P-            P+            UP            LEFT          OK           
  RIGHT          DOWN          EXIT          MUTE          YELLOW       
  GUIDE          RED            GREEN          BLUE          VOL+         
  VOL-          BACK          OPT+          INFO          AUDIO         
  SUB            PORTAL        SLEEP          LIST          WIDE         
  V-FORMAT      PLAY          REC            PAUSE          STOP         
  FF            REW            SKIP/BACK      SKIP/FORW      ADDBOOKMARK   
  BOOKMARKS      SLOW          TEXT          MEDIA          PVR           
  TV            DVD            AUDIOD       
Use 'ir -l' to show code mappings.
 

prpr

Well-Known Member
#3
would it be possible to create a standalone http: string which I can send the box containing just a pause command?
It's easier to do using the Telnet interface. Just issue "ir PAUSE".
You can script this in many ways depending on what you are connecting from.
You could even get the Pi to do it itself if you've got the bell hooked into it.
 

af123

Administrator
Staff member
#4
It's easier to do using the Telnet interface.
Not necessarily - if the PI is running a script when the doorbell is pressed then it can just call wget to trigger the pause. If it's something like Perl or Python then that has modules to do simple web requests. Scripting telnet is perfectly possible but I wouldn't say easier.
 
OP
OP
J

jfshw

New Member
#6
Thanks all for the prompt responses!

Now I need to think of more things to automate, maybe volume down if no movement detected for 5 minutes (viewer has gone to sleep!)