1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Home automation integration

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by jfshw, Jan 6, 2013.

  1. jfshw

    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?

  2. af123

    af123 Administrator Staff Member

    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.

    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.
  3. prpr

    prpr Well-Known Member

    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.
  4. af123

    af123 Administrator Staff Member

    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.
  5. Ezra Pound

    Ezra Pound Well-Known Member

    I just sent to my Humax and got this :-
    SMS: t - EIGHT
    SMS: t - EIGHT

    with the numbers 83377778 appearing in the TV channel select window
  6. jfshw

    jfshw New Member

    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!)
  7. af123

    af123 Administrator Staff Member

  8. Ezra Pound

    Ezra Pound Well-Known Member

    That's O.K. I was pleased to see that there is still some SMS code in there :)