LUA hangs in UI7, Scenes stops executing

Hello all

After running on UI7 for a few weeks, things are acting up.

I have recently become aware that some of my automation stops. Eg. my bathroom fans doesn’t turn on when the humidity rises, the Homewave notfication system will not send a message when the garagedoor opens etc…

What i’ve been able to find out is that if a sensor is armed, eg. my garagedoor sensor and I open the garagedoor, LUA stops with an error “ERROR : Error in lua for scenes and events”.

LUA will den sit like that for amounts of time, not sure how long before it can come to live again.

I find that disarming the sensor will stop LUA from stopping. I tried deleting the scene, and recreate, same error.

Tried with a 433MHZRFXCOM sensor, Z-wave motion detector, and a Z-wave water detector, they all stop LUA if I create a scene and attached them to one of the sensors and then trip the sensor.

Hope someone has any ideas on how fix this one?

Regards
Tommy

You need to be careful with LUA … it is embedded in XML in Vera.

I have seen some problems when people use the < operator in their LUA logic.

It is interpreted as XML and of course what follows is NOT XML … and your expression is screwed up.

If your logic if you are using a “<” operator … flip the arguments and use the > operator!

How much frustration lead up to that gem of knowledge?

That’s why people that use LUA seriously convert to creating and loading LUA modules (Separate files that hold pure LUA code … no XML).

[quote=“RichardTSchaefer, post:2, topic:188932”]You need to be careful with LUA … it is embedded in XML in Vera.

I have seen some problems when people use the < operator in their LUA logic.

It is interpreted as XML and of course what follows is NOT XML … and your expression is screwed up.

If your logic if you are using a “<” operator … flip the arguments and use the > operator![/quote]

Hello Richard

Thanks for the pointer. I cannot seem to find any occurences of any ‘<’ operators though.

Is there a way of listing all scene code so that I don’t have to click thru everything inside Vera?

Also, I’ve openened a case with support, hopefully they will find something.

Will report back if they find anything.

Tommy

It’s not easy … but you can find all of the code in the user_data.json

You can get that file from:

http://Your.Vera.IP.Address:3480/data_request?id=user_data

[quote=“RichardTSchaefer, post:6, topic:188932”]It’s not easy … but you can find all of the code in the user_data.json

You can get that file from:

http://Your.Vera.IP.Address:3480/data_request?id=user_data[/quote]

Thanks.

I had a look at it, but that dump was BIG.

Support is on the case, hope they’ll figure it out, for sure I can’t :slight_smile:

Weird thing is that it just started in a period when I didn’t do much with it.

Tommy