Author Topic: [SOLVED] Altsteon & UI7 - Lua Engine Failed to Load  (Read 1880 times)

Offline RyanAHolland

  • Sr. Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
[SOLVED] Altsteon & UI7 - Lua Engine Failed to Load
« on: July 30, 2015, 09:37:01 am »
I finally updated to UI7 to try it out and am struggling getting the plm to work.  I have my Insteon 2413U on a Raspberry Pi set up as per the earlier post.  I can start Altsteon and connect to it by puttying into port 9805.  I am able to send commands and get responses, so I know altsteon is working.  Now, when I create the PLM device in Vera with the IP address set to the Pi, I get "Lua Engine Failed to Load".  Any thoughts?

I have tried running altsteon on both the Vera and the Pi with no luck.  Any help is appreciated.
« Last Edit: September 08, 2015, 04:51:27 pm by RyanAHolland »

Offline Tank

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +11/-7
Re: Altsteon & UI7 - Lua Engine Failed to Load
« Reply #1 on: August 13, 2015, 08:09:05 am »
I'm running it the same way.  No issues here.  Does everything match this (aside from the IP): http://imgur.com/QaRdoqf

Offline brbrice

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Altsteon & UI7 - Lua Engine Failed to Load
« Reply #2 on: August 20, 2015, 03:37:21 am »
I_InsteonPlm.xml needs a code fix:

Lines 550 and 551 need to be switched:

return false, "Altsteon", "Cannot connect to Altsteon on " .. ipAddress
luup.set_failure(true)

should be:

luup.set_failure(true)
return false, "Altsteon", "Cannot connect to Altsteon on " .. ipAddress

I've attached the changes to this message.  With this change I have ALTSTEON running and reporting status (SwitchLinc) on UI7!
-B


« Last Edit: August 20, 2015, 04:05:49 am by brbrice »

Offline Tank

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +11/-7
Re: Altsteon & UI7 - Lua Engine Failed to Load
« Reply #3 on: August 20, 2015, 07:04:28 am »
Looks like another user was able to fix this.  Try using this updated I_InsteonPlm.xml.

Offline RyanAHolland

  • Sr. Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: Altsteon & UI7 - Lua Engine Failed to Load
« Reply #4 on: September 08, 2015, 04:50:58 pm »
brbrice and joey,

Thank you both for your help.  That fixed my issue!

Well that plus using the -r switch when starting altsteon.