Lua libraries included

Discussion in 'C-Bus Automation Controllers' started by Kelvin, Jan 10, 2018.

  1. Kelvin

    Kelvin

    Joined:
    Jan 10, 2018
    Messages:
    8
    Likes Received:
    3
    Hi Folks,

    I think I'm just about to get a 5500SHAC, but there is one thing I've not been able to confirm at the moment. What lua libraries are shipped with the device?

    I can see from the manuals that serial and luamodbus are definitely accessible. I can also see from Damaxx's excellent post that socket and socket.http seem to either be included or worked when uploaded as user libraries possibly. See https://www.cbusforums.com/threads/lua-script-examples.9011/.

    I'm wondering if someone from the product team or someone with a device is able to help me understand:
    (a) what libraries ship on the device
    and
    (b) are there any significant limits on the libraries that could be uploaded as user libraries

    The use case I'm most interested in at the moment is talking to Haiku ceiling fans that have a SenseMe module as per the following:

    https://www.haikuhome.com/au/senseme

    I want to get the controller to talk to the SemseMe units so I can control the fans from C-Bus as opposed to having to have yet another switch on the wall in the room for the fan.

    The protocol is pretty simple and has been reverse engineered by others as described here:

    https://bruce.pennypacker.org/2015/07/17/hacking-bigass-fans-with-senseme/
    https://github.com/sean9keenan/BigAssFansAPI
    https://github.com/TomFaulkner/SenseMe

    So all that is needed is pretty simple UDP comms. Damaxx's examples shows setting up listening sockets etc... so I'm pretty sure this should all be fine, but I'm keen to know how far I could push one of these controllers....

    If I can get it all working I'll share the code back to this forum. Then the next thing to think about is the best way to talk Z-Wave. There are a few options on that front...

    Cheers,
    Kelvin
     
    Kelvin, Jan 10, 2018
    #1
  2. Kelvin

    grssll

    Joined:
    Jun 13, 2014
    Messages:
    64
    Likes Received:
    0
    Location:
    Sydney
    Get Amazon Echo for $40 and you got yourself easy voice control. Cheap and works like a charm.
     
    grssll, Jan 10, 2018
    #2
  3. Kelvin

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Hi Kelvin,

    As far as I know the device includes all the Lua 5.1 standard libraries. I don't think modules are supported at this time but if you have some pre-existing Lua source you can add it into your project as a function.

    Hope that helps!
     
    daniel, Jan 18, 2018
    #3
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.
Similar Threads
Loading...