OK thanks, I can see the advantage of being able to run more complex scenes from the minimote, but to get the minimote setup how it was before VeraLite I don't have enough buttons on the minimote to run all the scenes I would need.
Cheers
You should have enough button's, at least not less than before.

You basically can control 8 scenes (long and short hold for each of the 4 buttons). If you then create smart scenes you have way more options than before. For example you don't need two buttons and two scenes to turn a light on and off, you can create a scene which does "turn on light if light is off, else turn light off".
I don't really have time to prepare the code specifically for you, but it is really simple, and as alrady said in this forum and the wiki there a lot's of example's.
I use a function, just add this to "Apps => Develop Apps => Edit Startup Lua":
-- toggleSwitch(41, status or nil, serviceId eg: "VSwitch1" or "SecuritySensor1" empty for defaul)
function toggleSwitch(devID, newstatus, serviceID)
local command = "Status"
if(serviceID == nil) then
serviceID = "urn:upnp-org:serviceId:SwitchPower1"
elseif(serviceID == "urn:micasaverde-com:serviceId:SecuritySensor1") then
command = "Armed"
end
if(newstatus == nil) then
switchStatus = luup.variable_get(serviceID, command, devID)
if(tonumber(switchStatus) == 1) then
switchStatus=0
else
switchStatus=1
end
else
switchStatus = newstatus
end
luup.log("mirkLog[i] switchToggle("..devID..", ".. switchStatus.. ", "..serviceID..")")
if(command == "Armed") then
--luup.variable_set(serviceID, command, switchStatus, devID)
luup.call_action(serviceID, "SetArmed", {newArmedValue = ""..switchStatus..""}, devID)
else
luup.call_action(serviceID, "SetTarget", {newTargetValue = ""..switchStatus..""}, devID)
end
end
-- END toggleSwitch
When you then want to toggle a switch you can add one simple line in the scenes "Luup" tab (Replace DeviceID with the switches DeviceID):
toggleSwitch(DeviceID,nil)
Example: toggleSwitch(10,nil)
When you want to toggle a Motion Sensor:
toggleSwitch(DeviceID,nil,"urn:micasaverde-com:serviceId:SecuritySensor1")
Hope this helps a little...