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:
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:
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
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
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
Beacon statusses:
1 Like
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!!!
Your welcome, Roger.
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.
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âŚ
So what I can think of is f.i. adding a motion sensor
OR
Use the âif human detectedâ card
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âŚ
1 Like
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)
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 âŚ
I was thinking the human is detected after the carâs detection, after stepping out of the car.
Have fun with the project
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
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
As their API has not changed frequently I suspect this is not very likely to be improvedâŚ
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âŚ
Netatmo responded that they would add it to the backlog but also indicated that this would not have priority
Bummer. It seems such a standard option.
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?
- âxâ detected
- âxâ no longer detected
where âxâ is
- person
- animal
- car
- generic motion
-�
Calling to Netatmo Outdoor camera owners to submit a few more feature requests with Netatmo. Please see my previous post.
Thanks for your support!