Big Ass Fans - Haiku - SenseMe plugin for VeraLite

Almost there…

Just glancing at the Lua code, it looks like some snippets of code originated from Cybrmage. I recognized this because I use Cybr’s Ademco code in openLuup and it attempts to check the openLuup ‘revisionDate’ to determine the path of the icon directory. I brought this up with Akbooer and ‘revisionDate’ is no longer used. I addressed this with Cybr’s code but will allow you to determine how you want to handle this since this is your code. Icons are respectively located in /etc/cmh-ludl/icons…

local ABOUT = {
  NAME          = "openLuup.init",
  VERSION       = "2016.06.21",
  DESCRIPTION   = "initialize Luup engine with user_data, run startup code, start scheduler",
  AUTHOR        = "@akbooer",
  COPYRIGHT     = "(c) 2013-2016 AKBooer",
  DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentation",
}
2016-10-21 14:09:54.664   openLuup.scheduler:: [5] device startup
2016-10-21 14:09:54.664   luup_log:5: (SenseMe Gateway::Startup): ************** STARTING SENSEME GATEWAY **************
2016-10-21 14:09:54.664   luup_log:5: (SenseMe Gateway::UTILITIES::setVariable) SID [urn:micasaverde-com:serviceId:SenseMe1] variable [GATEWAY_STATUS] value [Loading Options...] device [5].
2016-10-21 14:09:54.664   luup_log:5: (SenseMe Gateway::UTILITIES::getMiosVersion): vera_model [Not a Vera] mios_branch [1] mios_major [7] mios_minor [0].
2016-10-21 14:09:54.664   luup_log:5: (SenseMe Gateway::getMiosVersion): PLUGIN is running under openluup.
2016-10-21 14:09:54.669   openLuup.context_switch::  ERROR: [string "[5] I_SenseMe.xml"]:213: attempt to perform arithmetic on global 'init_year' (a nil value)
2016-10-21 14:09:54.669   openLuup.scheduler:: job aborted : [string "[5] I_SenseMe.xml"]:213: attempt to perform arithmetic on global 'init_year' (a nil value)