Home automation integration

jfshw

New Member
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!
 
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.
 
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.
 
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.
 
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!)
 
Back
Top