I just got a zooz outdoor motion sensor and am trying to set it up. When I go to the “Overview” tab I can see the session detect motion, but it isn’t triggering the automation. Here is how I set it up and I am wondering what I did wrong.
Yes, it did work after removing that; however, I want the light to stay on for a given amount of time and then go off. I was starting with 5 minutes.
After removing the five minutes, I set up another automation that turns the light off after five minutes of no motion and that works, but not the way I want it to. If the light is off and it detects motion I want it to go on for five minutes and then go off. If the light is on, I want it to stay on even after detecting motion and then no longer detecting it.
How do I set that up? I was going to trigger the light for five minutes with a condition that the light was off. But with a separate automation that turns it off that condition won’t work because it will be on because of the motion automation.
I then thought maybe I would have the motion automation turn it on to a weird brightness setting, like 23% and have a condition that only turns the light off if it is at 23%. I would be unlikely to manually turn it on to that setting. The problem is that I can’t find brightness level as a condition.
Thank you the suggestion, this will be great when I figure out how to do it. I have only used the visual editor. I went to the automation, clicked edit and then in the visual editor clicked the three dots in the upper right and selected “Edit in YAML”. I then made edits and clicked save. However, the edits don’t take. It just reverts back to the original stuff. This is what the automation looks like in YAML now:
alias: Motion turn on lights
description: ‘’
trigger:
That was me testing pasting it correctly. Based on your comment about spacing and such, I redid this and this time copied the line above and below the section I was copying and pasting then deleted those lines. I did this to make sure I was copying and pasting with the correct spacing and such. This time there was progress. The code stayed in there and saved. But, it isn’t working. The light is turning on, but it isn’t turning off.
Yep, that fixed it! I wanted to do one thing at a time and make sure it worked before adding complications. I got that working (you got that working) and then I added the condition about the light being on and that is working too. It is exactly how I wanted it. Now I will add two more automations that are the same but for different lights. So that motion sensor will be on my porch and motion will trigger three different lights that shut off after five minutes (I may shorten that time, I don’t know). Yet, if I am on my porch reading and the sensor doesn’t see motion, it isn’t going to shut the light off on me.