good morning youtube so we got the aotek six and one sensor arrived today that i ordered anyway to
pair it i just went to the device menu clicked on add device and then they have a selection
for the six and one multi-sensor in the list under the sensors category here's the six and one
sensor online manual so it is powered by a pair of 123a batteries the unit i got doesn't include any
batteries but you can also power this thing with usb they recommend for setting it up though that
you use the usb power and what i found that worked was go to the add device menu select
your device and then the third step is where you actually click the pairing button on the sensor
and what i found worked the best was leave the usb cable unplugged until you're at that third step
which is this one plug the sensor in and then you click the little button on the back of the unit
the light will flash green and then it goes solid green and then it turns off and then at
that point your device is detected so now that i've got it in there i'm going to call this
the patio sensor there's all the sensors so this one has a motion sensor temperature light humidity
uv and then there's also supposedly a vibration sensor must be some sort of accelerometer in there
and then you've got a battery status so now what i need to do is similar to what i've done in my
bathroom logic here i've got this p-leg program logic event generator basically just duplicate
this logic here so this is my patio motion sensor light code so i just took the bathroom
motion sensor code which is these four lines of code and then i just copied them down here
everything that said br for bathroom is now patio and you can see right here all of these things
have time stamps it's true at such and such a time it was last false at a different time
and the value is null it's not true or false so right here i finally figured out what my
problem was i've never really paid attention to this up here but these color codes are actually
very handy so like green things are operators and you can see there's the dark blue says it's an
input or condition name and then and that's another operator but then these red guys
i've never noticed that before unknown problem is i need an underscore there
now it's dark blue it's an input or a condition name the reason i didn't pick that up before
is i was just typing these things in before i had created them so they were i guess unknown at
that time but then when i created these triggers that says motion detected or no motion detected
so i guess when i typed those in i forgot about the underscores but i hadn't created the triggers
yet and normally you can come in like this and just pick the input trigger but like i said i
hadn't created these yet so i was kind of doing things backwards i kind of went to the conditions
copy and pasted all the code in and then i went over to the triggers
and i guess i changed my naming convention but yeah anyway if i save that and let's see what i'm
going to do here is i'll change this to one minute so the way this works is it says if the patio
light was turned on automatically and you can see that down here let's see turn auto on patio light
basically said if there was motion at night then this condition is met which says it's an auto on
light if you have that condition to turn on the light so that's what turns this on so it says
if the light has been turned on automatically and you have the sequence that there was
motion detected and then no motion detected and then it comes over here and it says and
there's no motion detected for one extra minute so yeah there we go let me load this code and then
we'll go out and turn the light on with the sensor and then see if it turns off okay i think we're
going to catch it this time i missed it before the one minute was so quick that i didn't have time to
get the camera going before it went off there we go that's success what i'm going to do is i'm
going to turn the light on so that's the manual on so now that should be about a 15 minute delay
i think i missed the light turning off by about a minute but it did turn off by itself
okay youtube it's a little after sundown i'm gonna check out the motion sensor light i've moved the
motion sensor up here i don't know if you can see it up there so it's closer to the door i have it
set i think on the highest sensitivity and it'll usually pick you up just outside the door here
so open the door and i haven't even stepped out yet these are passive infrared sensors if it's
a really hot summer night you have to get like really close to the sensor for it to pick you up
but if the nights have cooled off a little bit now recently it'll pick me up inside the door
inside the house which is actually fine i kind of like that that way you see if there's something
that you might step on when you're stepping out yeah then i'm collecting the parts starting to
put together the parts so i can automate that booster fan so when we get into heating season
this winter i will have the z-wave controller be able to turn that fan on and off automatically
whenever the temperature in the patio enclosure is warmer than the temperature in the house and it'll
just automatically turn on and more importantly it'll turn off because like one thing i do
like on sundays when i go out on a bike ride i'll turn this on in the morning but then i might be
gone until after sundown and it'll have cooled off out here so for several hours it's blowing
cold air into the house so now i'll be able to have that fan when it cools down out in the patio
it will shut the fan off so actually having it turn off automatically is the important
thing and i've already got the code written up to turn it on i just need to build up one of
my z-wave relays and we'll try to get that wired in up here so i'll show you that in a
separate video i've still got to collect a few parts for that as always thanks for watching