Vera Plus Luup code not running in scene step 3

Vera plus is running latest code. I have a scene that has been running for a few years over the summer to watch for lightning and when a count is reached from a file on my website it pulls in my awning. It’s a standard scene except for the condition must be met in step 3 luup in order to fire. The luup code below was put into step 3 (Also, execute the following Luup code: ) when creating a scene. It basically goes to the website looks at the count within a file and if it’s greater than 15 the scene will execute otherwise the scene will abandon. Something has changed where the code is being ignored and the scene runs now regardless of the count. I have to get into it and start checking logs etc but wondering if anyone has had issues since November 2021 when using luup in step 3. Something has changed.

**on a side note - I recently also had a problem using simple luup code return luup.is_night() in a trigger as it wasn’t working. I just hard coded a time and moved on but now wondering if there is an overall issue with scenes when trying to use luup as it too was being ignored

local threshold = 15
local a,b = luup.inet.wget “http://www.auburnweatherlive.com/vera_lightning_5minute.php

local status = false – by default, abandon scene execution
if a == 0 and b then
status = tonumber(b: match “%d+%.?%d*”) > threshold
end

return status

Although not for Vera hubs,
we built a whole new framework for being able to communicate with anything http…we called it a WiFi Plugin in Ezlo.
would love your feedback on it if possible please?
it should make doing what you are doing much simpler than running Luup code…User simply enters the commands they want in the configuration menu, set a name for this new “Device” (it turns it into a virtual device)…then allows control of this device in MeshBots.

here is some more info on this Ezlo - WiFi device generator plugin is on the Market place

Thanks for the response. I’ll check it out. However, I need the solution for my Vera plus at this time.

1 Like

This is a bug that was introduced at sometime between now and last November. The exact same luup code works when running through Reactor. It’s becoming ridiculous that issues like this are not caught prior to pushing out a release. Please fix this

This bug has been verified by support in a ticket I created at that time. It has been over 2 months now. Can we please get an update on when luup code will again function

This bug has been verified by support in a ticket I created at that time. It has been over 2 months now. Can we please get an update on when luup code will again function

It’s been 4 months + now since luup scripts just stopped working. This was a basic function with the Vera hubs. Is anything being done to restore the functionality.

It’s been 6+ months now since this luup functionality was taken away. Can I please get an update as I have heard nothing. Thanks

Hello @jbonzey ,

You may need to modify the code syntax for the Vera controller to run it properly e.g.

local threshold = 15
local a,b = luup.inet.wget('http://www.auburnweatherlive.com/vera_lightning_5minute.php',1)
 
local status = false
if (a == 0 and b) then

Thanks for the response. I gave up and just ported over to Home Assistant. All luup is not working unless I use reactor. I really wanted to stay with your platform but it just became too much of a hassle.