Hi All,
Is this the correct way to check if Vera is in vacation mode? It doesn’t seem to be working for me and I’ve tried other variations found online, but have come up empty thus far.
if (luup.attr_get ('Mode', 0) == 3) then
Thanks!
Hi All,
Is this the correct way to check if Vera is in vacation mode? It doesn’t seem to be working for me and I’ve tried other variations found online, but have come up empty thus far.
if (luup.attr_get ('Mode', 0) == 3) then
Thanks!
There’s no attribute for House modes
you should look at the House Modes plugin (MiOS Apps).
No, actually, there IS the Mode attribute…
local mode = luup.attr_get "Mode"
print (mode, type(mode))
…gives the output (for Home mode):
1 string
which shows you exactly what is wrong with your test. It’s a string, so the right way is:
if (luup.attr_get ('Mode', 0) == '3') then
I tested this on a Vera Edge running UI7, but used AltUI to run it (of course.)
I should have checked before answering ![]()
Sorry
Thanks everyone!
Best Home Automation shopping experience. Shop at Ezlo!
© 2026 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules