Arrival Sensor for Car

Hello Everyone,

I want to just shortly introduce myself. I am a hobbyist/maker. I make various sensors based on ZigBee. I use these sensors in my home automation system. At my home, I run mix of HA platform. During my journey, I found Zigbee2MQTT. From Z2M, I found about the OpenHAB. This past weekend I want to try to learn OH3 (specifically OH 3.3 milestone). I am very impress with OH3. I am able to setup my DIY Arrival Sensor quickly and play around with OH concepts and wonderful collection of addons. I am able to learn and build reasonable functionality in short amount of time. Here is what I have been able to do.

My OH skill is a very novice. I am still not able to write config files and etc. But, I am able to configure stuffs from the GUI. There are a lot of thing that is still not perfect. For example, one of the thing that I would love to have is to be able to queue “say” something method so that I can que my notifications. If you guys have any tip about this, please send it over.

I will be following up with post in this thread with how I configure the Z2M with Arrival Sensor. The following is some context why I made Arrival Sensor. It is a long information. If you are not interested, you can skip it.

I made an Arrival Sensor used to track my car’s presence around the house. The motivation is to automate a few activities upon detecting my car presence. I chose ZigBee because it has a reasonable authentication process which makes me comfortable to open my garage door upon detecting my car arrived at home. It allows some cool automation with Alexa like in the following video. It allows me to set up a reminder when my car left the house. In fact, the Arrival Sensor is not just a “one trick pony”. It can detect and send events when your car is started. Using this event, one can set up reminders if critical devices are potentially running unattended even before we leave the house.

While making the sensor, I also have an idea to add several more capabilities to the Arrival sensor. I thought it would be nice to add a couple sensors to help us add security for the car while it is parked on the driveway or street near our house. I added a radar based motion sensor and vibration sensor. The motion sensor is capable of detecting humans as they approach the car. The vibration sensor is intended to detect in case the car is bumped.

The security aspect of the sensor was a secondary feature in my mind until I saw the video below. It is a Canadian reporting on car theft. The reporting is not as sexy as the “Gone in 60 seconds” movie. But, it is quite an eye opening. Here are some of the interesting points in my mind. Some cars are stolen under the watch of our cameras. Some cars are stolen right in front of our house. It is easy to steal a modern car. Above all that, one of the comments that stuck to me was that the owner typically finds out a few hours later after the car is missing. I link the video to the part that is starting to get interesting. The whole video is very well put together. If you have time, it is probably worth watching as a whole. I hope you find the video useful.

After watching the video and realizing the potential of the added features of the Arrival sensor, I start to ask myself questions about the next steps that I can take to utilize these features to prevent or recover my car if it is being stolen. I realize that using the Arrival sensor in my car and a Home Automation system, the solution is endless. Something that came up instantly is automating my home lighting upon detecting the motion and vibration specific to my car. I am hoping that it will communicate to the thieves that the car is being monitored and stop them from escalating his/her plan. Yes, I am aware that this may not prevent my car from being stolen. In case the car is stolen, I can have more intrusive notification and report the theft to the authorities the moment the car’s engine is turned on and hopefully increase the chance of it being recovered. The last thing I want to happen is to give hours of head start to the thieves where my car could already be halfway around the globe, just like what was shown in the Youtube video.

Again, I will be following up this thread with how I configure the Z2M with arrival sensor. I just want to take this opportunity to share some idea of what we can do with our car and home automation.

Thanks
Iman

2 Likes

I am trying to get as much information about the Arrival Sensor here. If you find some information that is incomplete, please feel free to reach out.

Here is how the arrival sensor look likes.

Here is Arrival Sensor fitted with radar motion sensor with smaller antenna.

There are a couple options for cases. You can use an off the shelve Aluminum case. The aluminum case is not compatible with radar motion sensor. I purchase mine from here. Please use the link as an example. The case is 23x44x60mm. They keep going out of stock. But, there are plenty of vendors.

Here is 3D printed case. I have a couple different sizes for the case. You can download the 3D model here.

In order to fully assembled you will need the following parts.

  1. RP-SMA 2.4 GHz 50ohm antenna. You can find this type of antenna from old/unused WIFI routers.
  2. Optionally, you may want to install the radar motion sensor.
  3. You will need a JST PH 2.0 LIPO 3.7V battery with capacity around 300 mAh. The capacity recommendation is not rigid at 300mAh. You should be able to use 200 to 600 mAh battery. Here is an example. Please note, I linked battery like this in the past. After a while, they have tendency to get out of stock. Please use this link just as an example. There are abundance of the battery. Pleas just check whether the size will fit.
  4. I use my sensor with case. You may want to use it with case as well.

I do not want to make too long of a post. I will make another update how I install the sensor in Zigbee2MQTT. In this post, I just want to give some idea how it looked like.

Thanks
Iman

1 Like

I’ve bought one device with the arrival sensor, one battery, and a friend printed a case. I’m going to share my experience so far, and also request support to Iman for further developments:

  1. I was not able to use the arrival sensor with ZBBridge coordinators (Tasmota + EZSP). The device paired but channels were not mapped as required. So I’ve replaced the ZBBridge with a Z2M compatible coordinator. Maybe EZSP could be used but I don’t know how, and now it’s past history
  2. Z2M 1.32.0 recognized the device correctly 6 weeks ago. I’ve tried pairing with a new coordinator and Z2M 1.32.2 and the device was identified incorrectly. I’ve opened an issue in Z2M github. But as I’m using in production the old coordinator, no problem in real life

Here is the initial situation with the car parked in the garage:

Now my initial experience:

  • Occupancy: when I open a door it turns ON, and stays ON until the car is parked with nobody inside
  • Power State: the behavior depends on where the device is connected. If I connect to a lighter port it goes ON/OFF when I switch the engine ON/OFF. But if I connect the device to a USB port it behaves as the Occupancy. So I prefer to use the lighter port
  • Presence: It’s ON when device is in zigbee range and OFF otherwise
  • Temperature: needs calibration
  • Vibration: works as intended (if I shake the car it goes ON)
  • Link Quality, Voltage, Battery Percentage: work as intended

So my first two rules were:

Open the garage door when I switch the engine ON
image

Close the garage door when I switch the engine OFF (I will probably disable this one until I install IR sensors, I don’t want to close the garage door with obstacles beneath)
image

My next rules will be to open the garage door when car approaches, but first I need to understand the dinamics, and in particular antenna position

1 Like

Where did you order it?

I’ve sent a PM to @Iharyadi and he sold me one

At the moment, I don’t have the sensor available. If I am making some more sensor, I will let everyone know

2 Likes

So here is my feedback regarding antenna position:

  1. Inside the car: the antenna is between the backs of the front seats. By chance my car has an ash tray and a lighter connector in that zone for passengers in rear seats that was never used, now it’s where the arrival sensor is connected. No interference with front passengers and no cables
  2. Inside the garage: I had a ZBBridge free after replacing it by a Z2M router. I’ve flashed it with zigbee router firmware and glued it in the garage window (there is a power outlet nearby)

With this setup the garage door opens when I’m arriving. Driving @ 20Km/h the garage door starts opening when the car is within 3m.

1 Like