# Netatmo Outdoor car detection

**URL:** <https://community.homey.app/t/netatmo-outdoor-car-detection/47233>\
**Category:** Devices\
**Tags:** camera\
**Created:** [May 9, 2021, 5:12pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233 "2021-05-09T17:12:06Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 9, 2021, 5:12pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/1 "2021-05-09T17:12:07Z")

</div>

Hi, I have a Netatmo Outdoor camera, which can trigger motion/person/car detected.  
I created a flow to allow for detecting when a car would be in my driveway.

The expectation was that there would be a trigger when the car would be detected, and a trigger when the car would no longer be detected.

With these two triggers I could create logic to indicate whether or not a parking space would be available in my driveway at realtime.

Based upon this assumption I created the following flow:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c1ed17141c837b183c5544acdfe6fcc87ce8b296.png)

Unfortunately, I suspect that the car detected event would be immediately followed by a car not longer detected event, or so it seems from my log information, that shows these messages within a second from each other in the log:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/952a354cfe1bc3b9f546acc7b1b8c6c6803f9c17.png)

I think I made an incorrect assumption with the true/false logic assuming the else path would be executed as soon as the car would no longer be in the driveway.

To solve this I tried adding a condition “car detected” but there is no “AND” card for the camera. So this will not work.

Is there anyone with a bright idea that can still help me with realizing the logic to detect when a car is entering the driveway, and to detect when the car leaves the driveway?

Thanks  
Roger

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 9, 2021, 6:44pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/2 "2021-05-09T18:44:10Z")

</div>

Hi Roger, nice idea!  
This caught my eye at first:  
When using ELSE cards, you should have a condition at the AND section.  
You can use your logics variable: ‘isCarOnDriveway’ equals ‘No’  
_I don’t know why, but it seems like ELSE cards are also executed when there’s no AND condition set._

And I think you should split it up and create two flows, because you now don’t trigger something when a car has left.  
The second one should trigger with something like ‘Thuis - Ingang Kapsalon - Driveway’ “no car detected” to set the logics variable ‘isCarOnDriveway’ to ‘No’ at the THEN part

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 9, 2021, 7:06pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/3 "2021-05-09T19:06:47Z")

</div>

I’ll share my Beacon detection flows as example to use.  
It’s the same thing: Is a Beacon (or car) present, or is it not present.  
I use a 3rd flow, to enable/disable a ‘virtual device’ tile, which shows home/away status.  
Beacon detection, see screenshot below.

Note, the used timers can be set to 1 minute, or even left out

- Arrival

- Leaving

- Setting the status

Beacon statusses:

 ![Screenshot_20210509-210610_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/5/a54ee769b44fba8352b4a54aead19b1d31e90745.jpeg)

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 9, 2021, 7:13pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/4 "2021-05-09T19:13:03Z")

</div>

Hi, thanks @Peter_Kawa,

- the isCarOnDriveway is set by this flow, so I cannot use it in the AND condition
- the fact that there is no AND condition would explain why both sections of the THEN flow are executed - thanks for this valuable insight.
- I tried adding a AND condition but the camera does not have one
- I cannot find an event for the WHEN section that the car is no longer detected

When all the logic falls into place in my head, I think there is no solution with what I know now, and I should probably raise a feature request with Netatmo to also trigger “negative” events, like “car no longer detected”…

But, thanks anyway!!!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 9, 2021, 7:23pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/5 "2021-05-09T19:23:17Z")

</div>

Your welcome, Roger.

> [@RogerSt](#):
>
> the isCarOnDriveway is set by this flow, so I cannot use it in the AND condition

If you navigate to your logics variable, and flip the value to No or False by hand (one time needed), you can use that variable as an AND condition:  
IF car detected  
AND logics variable ‘isCarOnDriveway’ equals No  
THEN set logics variable ‘isCarOnDriveway’ to Yes  
An other flow, for the “no car detected” trigger, should flip the variable to No again.

> [@RogerSt](#):
>
> I cannot find an event for the WHEN section that the car is no longer detected

That’s the hard part.  
It should be triggered by movement I guess. But not when someone walks between a car and the cam…

I now understand the absence of the ‘No car present’ card, while looking at the When cards.  
I found it hard to believe, but it really isn’t there…

 ![Screenshot_20210509-213259_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/5/051d8585325b9a6ccf8b1d34dd284f4d4d5db8e8.jpeg)

So what I can think of is f.i. adding a motion sensor  
OR  
Use the “if human detected” card

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 9, 2021, 7:49pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/6 "2021-05-09T19:49:01Z")

</div>

Thanks, you just confirmed it will not work:

- there are no WHEN cards, so no properties I can use to test
- there is no negative “car no longer detected” triggers  
 → Netatmo feature request… ☹

Regarding the positioning and reliability of the event: it is reliable - I own the device for a week now and there have not been any misfires or false positives for car detected - yet… 😛

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 9, 2021, 8:45pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/7 "2021-05-09T20:45:29Z")

</div>

I was thinking, we need a way to detect a human also, so you can tell if the car is present for at least, say 25 mins (a little less than a haircut session), and a human is detected, assume the car is leaving. Not perfect yet, but a start.

So I would use the “if human detected” card

Flows:  
IF car is detected  
AND var ‘isCarOnDriveway’ equals No  
THEN set var ‘isCarOnDriveway’ to Yes  
AND THEN start or replace timer ‘CarOnDriveway’ with a runtime of 25mins

IF human is detected  
AND var ‘isCarOnDriveway’ equals Yes  
AND timer ‘CarOnDriveway’ doesn’t run  
THEN set var ‘isCarOnDriveway’ to No, after x mins (for x, say 1 minute)

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 9, 2021, 8:55pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/8 "2021-05-09T20:55:14Z")

</div>

Had similar thoughts, but when a human is detected at the same time as a car, two events are emitted, one for human, one for car. It’s a pretty clever eventing system, but it’s just not what I need …

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 9, 2021, 10:45pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/9 "2021-05-09T22:45:19Z")

</div>

I was thinking the human is detected after the car’s detection, after stepping out of the car.  
Have fun with the project

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 11, 2021, 1:20pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/10 "2021-05-11T13:20:13Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 13, 2021, 9:33pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/11 "2021-05-13T21:33:01Z")

</div>

I tried another method:

- Create 2 timers (countdown timers app):
- one for 300 seconds if motion is detected which is not car-related (e.g. human, animal) - unfortunately no “any motion detected” trigger card exists.
- one for 480 seconds which only fired if a car is detected

When the 300 second timer expires and the car timer is still running then a car must still be there.  
When the 300 second timer expires and the car timer is not running, then no car must be in the driveway

This way I can set/unset the “parking available” boolean and broadcast on MQTT.  
The dashboard can then show whether or not parking is available.

It is not 100% reliable I’m sure, but it is good enough for now. In the meantime I have requested a new feature from Netatmo for ‘car/animal.human no longer detected’.

Anyone still has some brighter idea which may work better, please do post it here 😃

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 13, 2021, 10:01pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/12 "2021-05-13T22:01:03Z")

</div>

It is a workaround using timers indeed. It’s a bit funny and odd how Netatmo hasn’t a “my car is not there anymore!!” card. That’s why you also have a cam pointed at it, right? 😉 Fingers crossed they come up with it one day 😉

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 14, 2021, 5:41am UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/13 "2021-05-14T05:41:37Z")

</div>

As their API has not changed frequently I suspect this is not very likely to be improved…

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 14, 2021, 7:09am UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/14 "2021-05-14T07:09:01Z")

</div>

After a day of this I can tell that the events for car detected are not consistently fired by the camera.

When a human walks near the car,

- sometimes a new car + new human detected event is fired,
- sometimes only a new human event is fired.

This makes the flow unreliable.

I suspect Netatmo not firing ‘no longer detected’ may be related to the detection not being reliable enough for this to work properly, but that is guesswork…

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 31, 2021, 7:46pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/15 "2021-05-31T19:46:55Z")

</div>

Netatmo responded that they would add it to the backlog but also indicated that this would not have priority ☹

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 31, 2021, 8:33pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/16 "2021-05-31T20:33:00Z")

</div>

Bummer. It seems such a standard option.

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [June 10, 2021, 2:09pm UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/17 "2021-06-10T14:09:17Z")

</div>

Maybe if more people asked for a feature request this might improve chances of it actually being prioritized.  
Calling to every owner of a netatmo outdoor camera to request this feature with Netatmo?

1. “x” detected
2. “x” no longer detected

where “x” is

- person
- animal
- car
- generic motion  
-…?

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [June 30, 2021, 10:07am UTC](https://community.homey.app/t/netatmo-outdoor-car-detection/47233/18 "2021-06-30T10:07:05Z")

</div>

Calling to Netatmo Outdoor camera owners to submit a few more feature requests with Netatmo. Please see my previous post.  
Thanks for your support! 🙂
