Turning off z-wave bulb after power outage

Hi all

I just got my Vera Plus a few days ago. It’s my first time using z-wave devices. I got some light bulbs (domitech dimmable leds) and one aeon multisensor 6. Everything paired up easily, compared to what I’ve read before buying all of this.

I managed to set up the scenes quite nice. The lights are installed in a hallway and are controlled by the motion sensor and different evening/night intervals. Can’t say I’m very happy about the sensor but that’s probably due to the fact that is battery powered now.

Once it receives a motion trigger, the Vera lights all / some bulbs at full or partial brightness. When the sensor sends ‘no movement detected’ the lights are turned off.

My only problem is that after a power outage the light bulbs come on and there’s no trigger to shut them off until someone enters the hallway (usually in the morning). Looking at the Alerts page, I see there is one entry “controller came online” but I cannot use that as trigger in a scene. Isn’t there a way to use the Vera controller as the trigger in a scene?

Thank you

No, I don’t think there is an easy means of using Vera startup as a trigger.

One way to accomplish what you desire might be to add a little code to your startup Lua(Apps → Develop Apps → Startup Lua) that would then run a scene that turns everything off. Something like this(untested):

[code]

local function AllOff()
local MyScene = 99 – Scene Number of scene that turns off all bulbs.
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “RunScene”, {SceneNum = MyScene}, 0) – Run scene number defined in MyScene variable.
end

luup.call_delay(“AllOff”,30) – Call AllOff function after 30 second delay, to allow startup.[/code]

Of course, this solution won’t be ideal if Vera restarts at night and turns your lights off. I’d discourage you from buying anymore of these bulbs. You’re much better off using bulbs/switches that “remember” their state prior to power loss.

Actually I won’t mind Vera turning the lights off when it restarts :slight_smile: There are some outages at 2-3am. Thanks for sharing that code. I have to start learning lua.

I liked these bulbs because they are smaller than other z-wave bulbs I found and I have some pretty small light fixtures. But in the future I’ll try the wall switches.

Again, thank you for your help.