Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. akbooer
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    akbooer

    @akbooer

    19
    Reputation
    60
    Posts
    1295
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    akbooer Follow
    Plugin Developer

    Best posts made by akbooer

    • openLuup - a Vera emulator for all platforms

      I've just posted Release 3 of 'openLuup', which is a pure-Lua open-source emulation of the Vera Luup environment, on the Vera forum here: http://forum.micasaverde.com/index.php/topic,32315.msg244893.html#msg244893

      I'm taking the liberty of mentioning this here partly because this release is the first which should run the Arduino gateway plugin - I'd love some help in testing because I've not yet got any Arduino sensors.

      If you like Vera, but hate how it crashes often and would like it to run faster and more reliably on a different hardware platform, then this is the environment for you!

      Release 3 is a quite extensive (but not complete) implementation of Luup, and includes a set of features which are generally sufficient to run a number of standard plugins.

      What openLuup Release 3 does:

      • runs on any Unix machine - I often run it within my development environment on a Mac (makes debugging easy.)
      • also runs under Windows. However, plugins which spawn commands using the Lua os.execute() function may not operate correctly.
      • runs the ALTUI plugin to give a great UI experience
      • runs the Arduino plugin (ethernet connection to gateway only) which is really the main goal - to have a Vera-like machine built entirely from third-party (open source)
      • includes a bridge app to link to remote Veras (which can be running UI5 or UI7 and require no additional software.)
      • runs many plugins unmodified – particularly those which just create virtual devices (eg. Netatmo, ...)
      • uses a tiny amount of memory and boots up very quickly (a few seconds)
      • creates all devices on startup (this means they are numbered consecutively for those that worry about these things.)
      • supports scenes with timers (but not triggers)
      • has its own port 3480 server which supports multiple asynchronous client requests
      • has a fairly complete implementation of the luup API and the HTTP requests
      • has a simple to understand log structure - written to LuaUPnP.log in the current directory - most events generate just one entry each in the log.
      • writes variables to a separate log file for ALTUI to display variable and scene changes.

      What it doesn't do:

      • Has no persistence – except for rooms and scenes. Persistence arises from either the remote Veras to which you bridge, or any database applications you may have (eg. DataYours). Your local device (plugin) structure is created by the startup code using standard luup calls.
      • Doesn't have scene triggers (or notifications) – scene actions and timers ARE supported but triggers may be done differently. That functionality can be replaced with luup.variable_watch callbacks triggering scenes.
      • Doesn't support the <incoming> or <timeout> action tags, but does support the device-level <incoming> tag.
      • Won't run encrypted, or licensed, plugins.
      • Doesn't use lots of memory.
      • Doesn't do UPnP (and never will.)

      I have tested it extensively under Debian (on BeagleBone Black), OpenWRT (on Arduino Yun), and Mac OS.

      Any feedback from willing testers welcome! (I'm more than aware of the plethora of controllers out there, but this one is aimed at Vera lovers who want to branch out to other hardware.)

      posted in openLuup
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      The latest version (Release 6) of openLuup is now available on GitHub here https://github.com/akbooer/openLuup

      There's also now a section for this in the MySensors Controllers list http://www.mysensors.org/controller/openluup pointing to documentation as well as the code.

      An active discussion board is here http://forum.micasaverde.com/index.php/board,79.0.html, with help from people who have installed this on different systems (Mac, Windows, Arduino, BeagleBone, RPi, Ubuntu, OpenWRT, Synology, ...) but also any questions welcomed right here too.

      I've been using it as the main controller for my MySensors network for at least three months.

      posted in openLuup
      akbooer
      akbooer
    • RE: Ethernet Gateway on Arduino Yún

      Success! I now have a functioning Ethernet Gateway running on a Yún using the Bridge library which connects the Arduino Yún to the on-board Linux processor.

      The software changes are broadly those outlined here in an earlier post. I am more than happy to put this up on GitHub if someone can advise the best way / place for this (ie. should it be a a new file, say YunEthernet, or a conditional compilation of the main gateway, or what?)

      It works with hardware SPI and again the wiring is as described previously (with earlier doubts now dispelled.)

      There's two possible configurations:

      • as a 'normal' gateway, addressable from the LAN (with the IP handing all done on the Linux processor)
      • as a 'private' gateway, only addressable from the local host processor (as a controller)

      The latter of the above options is the way I am currently running this, otherwise there's little point in using a Yún at all, with my own 'openLuup' Vera emulator running on the Linux processor using the standard Arduino plugin to link to the gateway.

      I don't know about the speed of the Arduino/Linux bridge (it is reported elsewhere as being notoriously slow) but it seems very adequate for the job I am currently using it for (perhaps not a very heavy network load.)

      posted in Development
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      The latest version (Release 5) of openLuup(cross-platform Vera emulator) is now available from the Vera BB here: http://forum.micasaverde.com/index.php/topic,32315.msg252150.html#msg252150

      It runs the MySensors plugin (ethernet connection to gateway only) and I'm using it as my main HA controller for MySensors devices (and bridged to Vera for Zwave access.)

      posted in openLuup
      akbooer
      akbooer
    • RE: Test your home made controller with MockMySensors (w/ tutorial)

      @rvendrame

      Yes, I made a mod to the Arduino plugin. The changes are on GitHub:

      https://github.com/akbooer/Vera/blob/features-for-altui/L_Arduino.lua

      I'm hoping to get this merged with the master branch in due course, but I've not finished.

      posted in Controllers
      akbooer
      akbooer
    • RE: Problems building a Raspberry Pi ethernet gateway

      Thanks so much for that, I did wonder. My nodes include a old SenseBender node and I don't have an easy means to update this, so looks like I'll go for the older version.

      posted in Development
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      @Drcashman reports (on the Vera forum) that openLuup works with the MySensors gateway, so that seems like good news.

      posted in openLuup
      akbooer
      akbooer
    • RE: Vera UI7 What if a sensor is not reporting?

      @hek, No, not at all. Easy to set the status of a Vera device to failed, which gives a visual indication (albeit a somewhat misleading text message) on all versions of the UI (viz. UI5, UI7, and the impeccable ALTUI)

      UI5:

      UI5 device failure.jpg

      UI7:

      UI7 device failure.jpg

      ALTUI:

      ALTUI device failure.jpg

      posted in Vera
      akbooer
      akbooer
    • RE: Arduino Yun, Linino, OpenWRT

      Just to close the loop on the question in the original post...

      @humblehacker said:

      I wonder how difficult it would be to integrate the MySensors library with the bridge Library? In theory, doing so would eliminate the need for a separate controller altogether.

      It turns out that it was not too difficult to add support for the Yún's Bridge library, details here: Ethernet Gateway on Arduino Yún

      @humblehacker also said:

      Support for Linino/Yun/OpenWRT would not only free up MiniPC hardware for use elsewhere but it would also allow you to merge together the gateway and the controller functions into a single board.

      This also works, details of the controller I'm using in openLuup - a Vera emulator for all platforms

      And to address this concern...
      @daulagari said:

      I think [...] Linino/Yun/OpenWRT would be too thin.

      ...it turns out that, in this case, it's not.

      I am currently moving my 'production' HA system to a Yún where the Linux processor itself is running a configuration managing the MySensors network (yet to be fully populated), two WiFi connected Netatmo systems, the DataYours plugin suite logging key events to a Whisper (RRD) database on a CIFS-mounted remote NAS, the ALTUI interface, and a remotely bridged Vera with around 70 devices.

      Even with the relative low-power processor the Linux cpu is only running at about 5% average loading and the whole system fits in around 10 Mbytes. Also, unlike Vera, it runs continuously and does not spontaneously reset.

      Just by way of demonstration, here's an ALTUI-produced map of the current device network handled by the Yún (the purple spot in the middle.)

      Yun Network.jpg

      posted in Controllers
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      The latest version (Release 4) of the openLuup environment is now available from the Vera BB here: http://forum.micasaverde.com/index.php/topic,32315.msg246814.html#msg246814

      It runs the ethernet gateway plugin and has been tested with both real sensors and emulated ones (Mock My Sensors) on Mac, BeagleBone Black, and Arduino Yun platforms.

      I am now truly up and running with MySensors and, no doubt, drifting away from the Zwave world into a whole new and exciting one of homebrew devices. Thanks to all for the help along the way so far.

      posted in openLuup
      akbooer
      akbooer

    Latest posts made by akbooer

    • RE: Instructions to connect to MySensors

      Oh yes, my bad! Thanks.

      posted in openLuup
      akbooer
      akbooer
    • RE: Instructions to connect to MySensors

      @homer

      Sorry I missed seeing your post. It should be just the IP address, same as running on Vera.

      Did you get this to work?

      AK

      posted in openLuup
      akbooer
      akbooer
    • RE: Problems building a Raspberry Pi ethernet gateway

      Thanks so much for that, I did wonder. My nodes include a old SenseBender node and I don't have an easy means to update this, so looks like I'll go for the older version.

      posted in Development
      akbooer
      akbooer
    • Problems building a Raspberry Pi ethernet gateway

      I'm trying to build the above, following instructions here:
      https://www.mysensors.org/build/raspberry

      But I'm confused by the fact that the RPi branch here:
      https://github.com/mysensors/Raspberry
      says "DEPRECATED"

      Is it the case that the RPi code is now part of the master branch?

      I am trying to run a controller (openLuup) on the same board as the gateway. It appears to receive messages from the MySensors network, but inclusion fails (does nothing.) I'm somewhat at a loss as to how to proceed.

      It all used to work so well 18 months ago with earlier versions and an Arduino Gateway. Is it a problem that I am using the latest gateway version, but my sensors are running an old (1.4?) firmware version?

      Thanks for any guidance on this. It's quite a while since I did any Arduino development, so it's taking some time to get back up to speed. Lots seems to have changed (for the good!) in the meantime.

      AK

      posted in Development
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      It's been a while since I posted here, but openLuup has continued development and is now a really very capable controller with extensive plug-in compatibility with Vera. Latest version always available from GitHub here https://github.com/akbooer/openLuup

      posted in openLuup
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      The latest version (Release 7) of openLuup is now available on GitHub here https://github.com/akbooer/openLuup

      It supports a number of new features including

      • no dependencies on system HTTP port 80 server (easier setup)
      • remote access possible through weaved.com
      • Lua modules as CGIs for easy functionality extensions
      • sundry bug fixes and internal improvements
      posted in openLuup
      akbooer
      akbooer
    • RE: Ethernet Gateway on Arduino Yún

      That's a really good price! A whole lot better than a Yún. I've not tried a Dragino but they seem to offer similar functionalities. I'm not sure about the details of the serial link handling for the bridge - if the bridge library has the same calls, it should work OK.

      posted in Development
      akbooer
      akbooer
    • RE: Ethernet Gateway on Arduino Yún

      Just to put a footnote to the above (copied from another post - apologies, but it does belong here) ...

      GitHub fork with the Yun Gateway

      https://github.com/akbooer/Arduino/tree/development/libraries/MySensors/examples/GatewayYun

      posted in Development
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      @zurli, Ive updated my GitHub fork with the Yun Gateway

      https://github.com/akbooer/Arduino/tree/development/libraries/MySensors/examples/GatewayYun

      posted in openLuup
      akbooer
      akbooer
    • RE: openLuup - a Vera emulator for all platforms

      I'm not near my development system for the next few days, but will post the Yún gateway on GitHub when I'm back.

      posted in openLuup
      akbooer
      akbooer