As a newbie who hasnt programmed anything in 30+ years since C++ V1.0 was first introduced Id like to seek some help with some lua programming and want to take the cheats way (have a short timeline specified by wife)
In startup.lua Id like to set a virtualswitch (dev xx) to 1 and then once I have a complete load of the system set up a scene timer/pleg timer turn dev xx to off after 15m
During that time I will get autovera to send an alert to my phone to inform me of a reboot/reload of the lua engine.
I already have the pleg part sorted and the autovera part sorted, I just dont have the time to research the lua part (plus I will use it as a learning example)
Can anyone help?
Another idea AS WELL, is to be able to reload/restart vera remotely through a LOCAL network action but do this remotely. Id like to toggle a virtualswitch through autovera that has the reeboot/reload hook attached to it.
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “Reload”, {}, 0)
How would I go about attaching this code to the virtualswitch?
Many thanks