IR Blaster for SHAC/NAC. Success using Global Cache IP2IR

Discussion in 'C-Bus Automation Controllers' started by MarkB, Nov 1, 2019.

  1. MarkB

    MarkB

    Joined:
    Feb 2, 2019
    Messages:
    18
    Likes Received:
    5
    Thanks to a suggestion from jasonson, I picked up a Global Cache IP2IR module. I got the POE version from here: https://www.interactivecontrols.com.au/product/global-cache-ip2ir-p/ good price and fast delivery.

    I haven't written code since "hello world" at school on an Apple II so making it work seemed like an insurmountable challenge at first, but ended up being incredibly simple!

    Examples I found for Logic Machine didn't work properly (probably wouldn't work on LM either...) as it would only work for 10 seconds or so before the IP2IR would cease responding. Memory was being consumed on the NAC to the point that I was getting warning popups in the configurator.

    So, here is an example of code that works:

    local socket = require("socket")
    local tcp = assert(socket.tcp())

    tcp:connect("192.168.0.181", 4998);

    --sony tv power toggle
    tcp:send("sendir,1:3,1,40064,1,1,96,24,48,24,24,24,48,24,24,24,48,24,25,23,25,23,49,24,24,24,24,24,24,24,24,1033,96,24,48,24,24,24,48,24,24,24,48,24,25,23,25,23,49,24,24,24,24,24,24,24,24,1033\r")

    os.sleep(.1)

    tcp:close()

    I have this running in an event based script. IP address of IP2IR module found using Global Cache iHelp utility, 4998 is the default port.
    IR code captured using their iLearn utility.

    So, I have a long way to go and a lot to learn, but I'm very happy to get to this stage. Set up a button in Visualisation and the response when triggering from my phone is pretty much instantaneous. I'm using lcrowhursts android app to display the visualisation which works great. Thanks Lawrence! :cool:
     
    Last edited: Nov 2, 2019
    MarkB, Nov 1, 2019
    #1
    philthedill likes this.
  2. MarkB

    philthedill

    Joined:
    Mar 21, 2010
    Messages:
    142
    Likes Received:
    4
    Location:
    Melbourne
    works a treat!
     
    philthedill, Nov 28, 2020
    #2
  3. MarkB

    lcrowhurst

    Joined:
    Dec 2, 2004
    Messages:
    275
    Likes Received:
    98
    Location:
    Sydney, NSW, Australia
    Glad to hear you like the app. Now I’m going to have to have a look at ir blasting, thanks fo the code
     
    lcrowhurst, Nov 28, 2020
    #3
  4. MarkB

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    If you want a cheaper option you can pick up one of these from Kmart for $29 :

    https://www.kmart.com.au/product/mirabella-genio-wi-fi-smart-ir-universal-remote-controller/2622812

    You can then load the Tasmota firmware in it and talk to it either by HTTP from the SHAC or MQTT.

    Works a treat.

    If you want RF, you can do the same thing with one of these:

    https://www.ebay.com.au/itm/SONOFF-...e=STRK:MEBIDX:IT&_trksid=p2057872.m2749.l2649

    Easy way to hook up a DC ceiling fan to Cbus. Also work fine on my Awnings, and gate.
     
    Ashley, Nov 28, 2020
    #4
    MarkB and DarylMc like this.
  5. MarkB

    SgrAystar

    Joined:
    Oct 4, 2018
    Messages:
    60
    Likes Received:
    5
    Location:
    Melbourne, Australia
    Thanks @Ashley prompted me to link up an RF bridge for my pool/spa.
     
    SgrAystar, Oct 11, 2021
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.