DIY Smart Parcel Box with ESP8266 & HomeAssistant | Step-by-Step Guide

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 110

  • @Genzzry
    @Genzzry 4 месяца назад +6

    You could also mount 3 load cells under the box too (3 being a number of "legs" that self-level).
    That'd alert you to packages placed on top & inside of the box... due to the change in weight of the box.
    Load cells are fairly cheap, accurate and are the things you'd find inside of electronic kitchen scales, etc.
    Other uses for them would be things like putting under bed legs to detect WHO is in bed (by being within x% of their last recorded weight) or if its just clothing / a box of crap on the bed that can be ignored... they could also record daily weight into a spreadsheet / database if you're dieting, etc.
    Hell... there are MANY more projects you could do with load cells... like an automated cat bed that turns on a heating mat when a cat lies on its cat-bed (if the temperature of the rooms is below x) 😛

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      I really like this idea. Thanks!

    • @IvanDorozhkin
      @IvanDorozhkin 3 месяца назад +2

      Or load cells under the bed can end in divorce.. Don't use it 😁

    • @bennylloyd-willner9667
      @bennylloyd-willner9667 3 месяца назад

      Good idea depending on the climate. I live in Sweden and during winter there can be quite a bit of heavy snow on the parcel box making it hard. I'm not dissing your idea, just saying there are many parameters to consider.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      @@IvanDorozhkin LOL!

  • @squeezysoft
    @squeezysoft 3 месяца назад +5

    Pretty slick! I was also looking to do a project where the box would lock after a package was added.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад +2

      Man, I thought about the same thing. Anti-porch pirate. I love it!

  • @IvanDorozhkin
    @IvanDorozhkin 3 месяца назад +3

    So, next project - autonomous drone, moving new parcel to home?)

  • @repsej74
    @repsej74 3 месяца назад +4

    lazy person = inventive person. Great project. Thanks :)

  • @Tntdruid
    @Tntdruid 4 месяца назад +2

    The Esp32 C3 Mini is 50% less size than the D1 mini.

  • @alanjrobertson
    @alanjrobertson 3 месяца назад +1

    Nice video. Very impressed with ESP Home and how nicely it let's you configure things! (I'm used to doing I2C on my Raspberry Pi via SSH)

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      I'm pretty impressed with it too. Now it's time to automate all the things!!

  • @zeero4ever
    @zeero4ever 4 месяца назад +1

    2:25 I have a large box of about 100x40x40cm and my delivery instructions say "black box at house wall" as delivery location. Delivery services still put boxes on top of it instead of in it...

  • @bennylloyd-willner9667
    @bennylloyd-willner9667 3 месяца назад +1

    Great video! I have an ESP32 with a Touch screen project in my head for my car, controlling work and driving lights wirelessly to relays in the engine compartment. More closely to your project here, I also have my mailbox about a mile from our house, so I want a similar thingy to detect mail. I will need some LoRa stuff I suppose, but you triggered me to actually start a project.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      Ah, automotive stuff - My other channel, Project Time Garage is all about automotive stuff - check it out, it's a much larger channel: ruclips.net/user/projecttimegarage

  • @cambodialaos
    @cambodialaos 3 месяца назад +1

    what if the parcel is ie. 2" x 2" x 2" and placed in the very corner of your box? I don't know anything about the hardware, but would it still function as expected?

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      I think it would miss it in that case. In looking at my parcel delivery history, all of them have been very close to the center front. So far, we've had about 15 deliveries and none have missed the mark. If we start to have issues, I'll add another TOF sensor to the board.

  • @JoshFisher567
    @JoshFisher567 4 месяца назад +1

    I did the same thing only I used an aqura contact sensor at my parents house, it sends a text message and does a voice announcement on their sonos soundbat. My Mom thinks im a wizard but mail delivery there ramges from 7am to 9PM so tjey were checking ot multiple times a day. Extremely easy to do. Se.comcept, aitomation triggered when comtact sensor is open.

  • @Electronieks
    @Electronieks 3 месяца назад +2

    Where i can find your yaml?

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      esphome:
      name: parcelbox
      friendly_name: ParcelBox
      esp8266:
      board: esp01_1m
      # Enable logging
      logger:
      # Enable Home Assistant API
      api:
      encryption:
      key: "REDACTED"
      ota:
      password: "REDACTED"
      wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
      i2c:
      sda: GPIO4
      scl: GPIO5
      scan: true
      id: bus_a
      sensor:
      - platform: vl53l0x
      address: 0x29
      name: "Distance"
      update_interval: 20s

  • @mattylad8035
    @mattylad8035 3 месяца назад +1

    Awesome project.
    If you could get it to send you a notification to several phones that would be good too, that way you don't need to keep checking home assistant. I may have a go at one of these one day.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      Yep! You're right, that's already on my "to-do" list. LOL, the laziness progression is strong at my house - First we got tired of checking the box, so I automated it, then we got tired of checking our HA dashboard, so I'm going to get notifications. Next, I need to do a drone automation to go get the packages and open them for me.

  • @MrDead1975
    @MrDead1975 3 месяца назад +1

    you could also use a light sensor, in a sealed, no light box 0 lux is the norm, if you get a lux spike you know the box has been opened.
    another option would be a vibration sensor on the lid.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      Yeah, I considered the light sensor, or mag sensor for the door, but neither of those tell me if there's something actually in the box at the moment. Using something like a prox sensor, we can have a notification displayed as long as there is "stuff" in the box, and have the notification disappear when the box is actually empty.

  • @jerrygaguru
    @jerrygaguru 3 месяца назад +2

    I would suggest you add a camera also, You never know why or for what reason you'll need it, but eventually you regret not having one.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      Yeah, this is a very good suggestion.

    • @jerrygaguru
      @jerrygaguru 3 месяца назад +1

      @projecttimetech7022 a cheap bling camera works great. woot is wear I get mine, I buy them on close out, I have box of them I never know when need 1. I am doing 1 for 3D printed birdhouse I am making right know.

    • @Electronieks
      @Electronieks 3 месяца назад

      Esp32 cam has maybe a spare io pin

    • @jerrygaguru
      @jerrygaguru 3 месяца назад +1

      @Electronieks Yeah, for that I would just grab one of the car backup cameras and
      it comes with everything to mount in the top of the box.

    • @Electronieks
      @Electronieks 3 месяца назад

      @@jerrygaguru and homeassitant ?

  • @phankins11
    @phankins11 3 месяца назад +1

    This was a great Guide! I'll be using this to tell me the salt level in my water softener! I do have one quick question. You mentioned deep sleep for the D1 mini at some point. I'm curious to know if you've ever gotten hat to work? It would be great to know how to do deep sleep with the d1 mini for things like battery operated temp sensors, but I haven't found any things that works for this yet, shy of manually tripping the reset. Any ideas?

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      As I understand it, inside YAML for the device, it's as simple as adding deep_sleep, then a run_duration and sleep_duration. I've not personally worked with it, but I have a project about to start that's going to need it.

    • @phankins11
      @phankins11 3 месяца назад

      @@projecttimetech7022 Thanks for the reply! I'm afraid its not as simple as it seems. I have used that very configuration and it doesn't work. I've not found conclusive documentation on whether or not its supported in a software only config. Meaning, you cannot wake it out of deep sleep without some sort of manual intervention like a button push. Think the ole Amazon smart buttons, where they would just sit there until you pushed the button and then it would automatically order the item it was configured for (if you remember those). I'm willing to bet that what you'll run into is that you'll see it go to seep and never wake up. I certainly hope you get it figured out tho! I'll be following along to see if you do. And, if I get it figured out, I'll come back here an update you :)

  • @jasonwhite2775
    @jasonwhite2775 3 месяца назад +1

    Man, the good idea fairy is always present after your project is complete. So here is my 2 cents...
    1, consider mounting sensor low as possible, shooting diagonally corner to corner. On the door side. I think this would give the best chance at a small or flatter packages being detected. But now that I'm thinking about it, a sticker ("Place Package here") in the center of the box could improve lazy delivery drives placement.
    2, If you did want to use a battery, a simple contact button or switch on the door could close/open a circuit that could wake the deep sleep, run the threshold condition, then send the notification. And with it being in deep sleep for the majority of the time, a solar charging circuit can trickle charge the batter. Lastly a Low Bat. notification could prompt one to bring a recharged battery out when picking up a package:)
    Awesome work!

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад +1

      Thanks, this is exactly why I love the tech community. Sooo many good ideas. I really like the door contact/wake-up idea. That's awesome!

    • @bennylloyd-willner9667
      @bennylloyd-willner9667 3 месяца назад +1

      Great idea! Unfortunately, I live in Sweden, and the delivery drivers here can't get more uninterested in reading such stickers, only thing that interest them even less, is following them😁

  • @hornetbad
    @hornetbad 3 месяца назад +1

    Great project 👌👌

  • @marosmincak5754
    @marosmincak5754 3 месяца назад +1

    What about a pressure sensor? The box may be small in a corner of the box

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад +1

      I had the same thought. So far each package has been close enough to the beam to work. It even worked with a thin padded mailer.

  • @Airbag888
    @Airbag888 Месяц назад

    This was not the purpose of the video but I learned finally how esp32 and home assistant work together from scratch haha. Thanks

  • @libertine5606
    @libertine5606 3 месяца назад +2

    Very well explained.

  • @gordon861
    @gordon861 4 месяца назад +1

    Did a similar thing for my parents (not Home Assistant capable) using an Aqara Tilt Sensor and just stuck it to the lid. Box gets opened, they get a pop-up on their phones.
    I would probably add a magnetic sensor to the door just to log that the box has been opened, as I'm not sure of the beam spread of the sensor, or use an ESPcam board to visually check.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      I had initially thougt about using an "open/close" type sensor, but it would prevent the "awareness" of packages, it would only tell me if the box was opened/closed. Good example of this would be multiple deliveries in one day.

  • @pneumantic6297
    @pneumantic6297 3 месяца назад +1

    An i2c address is usually fixed and sits within the datasheet. Also, for future reference, there are also door opening sensors (like a block with a magnet in it) and you can just detect when the doors open. Keep making videos. We need more people doing this. Some may ask why you are so lazy or "just by this". If it weren't for people like us who like to design things the world would be just dudes with sticks.

  • @wjn777
    @wjn777 3 месяца назад +1

    Interesting project. Many ways of achieving the same goal but since you have power and WiFi close by, this is a nice simple solution. Thanks for sharing

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад

      Yeah, I'm glad I didn't have to get into battery management, etc.

  • @danahoward316
    @danahoward316 3 месяца назад +2

    Nice project. Well done video.

  • @AzzamDaaboul
    @AzzamDaaboul 4 месяца назад +1

    Many thanks for sharing this project. Could you please explain more how we can create our own conditions in HomeAssistant like you did?

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      I will. I plan to have quite a few more home assistant and ESB home projects coming up soon. I have automated a lot of interesting things, and I want to share a lot more of them. Definitely stay tuned.

  • @SirTodd
    @SirTodd 3 месяца назад +1

    what if they dont place the package directly under the TOF sensor?

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад +1

      So far, we've had about 17 packages delivered and so far every one of them has broken the beam. Makes me question how large the beam pattern is.

    • @SirTodd
      @SirTodd 3 месяца назад +1

      @@projecttimetech7022 well that is awesome! good point on the spread, I didn't even consider it.

    • @projecttimetech7022
      @projecttimetech7022  3 месяца назад +1

      @@SirTodd Yeah, I was actually worried about it when I built it.

  • @Piasecznik72
    @Piasecznik72 4 месяца назад +1

    Consider mounting it on the bottom of the box hidden under some kind of second floor. Then you can detect even thin envelope. Also open box sensor with some kind of alarm when it is open with parcel in it.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад +1

      Hmmm. May have to have a "2.0" version of this project.

  • @bawitdaba1337
    @bawitdaba1337 4 месяца назад +2

    Wouldn't it use less battery and have the same effect if it was using an open/close contact sensor whenever the box is opened?

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      It would however, an open close sensor would only tell me that the locker had been opened and closed. It wouldn't actually have any knowledge that there were actual contents inside the box. That's what I was going for. I considered the switch and I also considered using a photo cell, but ultimately scrap those ideas in favor of time of flight. Also since I'm powering it directly, battery power is really not an issue.

    • @hagak1679
      @hagak1679 4 месяца назад +2

      @@projecttimetech7022Combine the 2. Use the open/close sensor to wake the micro and then once the lid is closed take a distance reading and transmit. This way you get the "accuracy" you are looking for and still have the unit in deep sleep 99% of the time.

    • @ChrisS-oo6fl
      @ChrisS-oo6fl 4 месяца назад

      @@hagak1679add a load cell and gauge the size and type of package. Adding a contact sensor is a good idea to know the box was left open for any reason though.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      @@hagak1679 Great idea!!

  • @nicohofmann9510
    @nicohofmann9510 4 месяца назад +1

    The only Thing i can say is WOW! Great Video! That gave me a lot of inspiration. Keep on going! 🙂

  • @b00573d
    @b00573d 4 месяца назад +1

    i dont have the distance you do, but i was able to put a Third Reality Zigbee motion sensor in my mailbox to notify me. It takes triple-a batteries and has some decent power management so it has been quite a while since I have had to change batteries. I have tried other Zigbee door/window sensors and even a Z-Wave long range door/window sensor, but neither have had the distance that this particular motion sensor has.

    • @JoshFisher567
      @JoshFisher567 4 месяца назад +1

      Using an Aqara contact sensor over zigbee and it works great. Odd that you had distance issues. It's been in place well over a year and the battery is still at 75% (watch battery)
      I'm surprised you had issues over Zwave. I listen to the creator of Home assistant say the next device they released is going to be a Z-Wave adapter because it's distance advantages. When. doin a test with a "new" Zwave and "Old" Zwave device (I'm assuming new is a newer protocol longer distances) they were still able to communicate at 0.7 miles outside.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад +2

      Thanks for sharing

    • @b00573d
      @b00573d 4 месяца назад

      @@JoshFisher567 my mailbox is aluminum so I’m sure that reduces range.

    • @JoshFisher567
      @JoshFisher567 4 месяца назад

      @@b00573d Yes, Zigbee is very close to the 2.4Ghz band and metal of any kind is the worse things for WiFi,. Large metal objects can almost.wioe out your bandwidth and signal. A mailbox may not be enough but I also don't know how far you near Zigbee radio or repeater device is, which is obviously another huge factor.
      I watched an interview with the guy who created HA and he said the next hardware device they were going to release was a Z Wave adapter and during the interview he said with a Z Wave "new" device and "old" device (I'm assuming that he meant the protocol version so new would possibly have longer range) that they were able to communicate at 0.7 of a mile outside.
      He was at a Z Wave conference or something and he said there wasn't anywhere in the hotel where 2 devices couldn't communicate so not just an outdoor thing.
      That's impressive. I never used Z Wave before personally.. It's a lot cheaper than LORO, which still wins by a lot but more expensive. Might be worth some research for a long distance solution if needed.

    • @JoshFisher567
      @JoshFisher567 4 месяца назад

      @@b00573d metal is the worst thing for WiFi and Zigbee is pretty much WiFi slightly off the 2.4Gjz frequency. They also attract it and absorb it. There is a reason antennas for WiFi are metal.
      Watched an interview with the guy who created HA and he said next hardware they release is going to be a z wave adapter which surprised me. Then he said they couldn't communicate at 0.7 of a mile with it and he was at a Z Wave conference. He also said there was nowhere in the hotel that 2 devices couldn't communicate over z wave. I had no idea it had that type of range and have never used it.

  • @hi-ccowboy7983
    @hi-ccowboy7983 3 месяца назад

    Good job man! I like this channel!

  • @truenorth9508
    @truenorth9508 4 месяца назад +2

    Great job! May want a notification when package is removed.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      True. Very true.

    • @StephenMatrese
      @StephenMatrese 2 месяца назад +1

      That would be even more useful than USPS Informed Delivery, UPS MyChoice, & Fedex

    • @projecttimetech7022
      @projecttimetech7022  2 месяца назад

      @@StephenMatrese I've added a notification for when the status goes from "Package" to "No Package" Works great. I do have Informed Delivery, which is nice too.

  • @ChrisS-oo6fl
    @ChrisS-oo6fl 4 месяца назад +1

    Add a cheap load cells under a platform. More free data and info on what may be delivered.

  • @PauloAbreu
    @PauloAbreu 3 месяца назад +1

    What an awesome project! Thanks for sharing!

  • @TheUnofficialMaker
    @TheUnofficialMaker 4 месяца назад +1

    I would just use a tilt switch or magnetic contact but nice project.

  • @Tntdruid
    @Tntdruid 4 месяца назад +2

    Automat everything 👍

  • @meszarosrob
    @meszarosrob 4 месяца назад +1

    Nice project 👍. You might consider expanding the number of sensors with an additional magnetic one that would notify you on your phone when the door has been opened.

  • @mikegodin23
    @mikegodin23 4 месяца назад +1

    Muito bom:
    Ganhaste um novo seguidor....

  • @giannisd961
    @giannisd961 4 месяца назад +1

    nice project man well made. You could add a light sensor for future automations

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      That's interesting you mention that. I was actually considering adding a light sensor inside the box that will notify my phone anytime the light level goes above a threshold and then drops below a threshold. Basically that would tell me that the box had been opened and closed.

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      I was actually considering that. Using a light sensor to trigger a notification anytime the light level went above a certain threshold and then drop back down. Basically that would be an easy way of seeing that the box is open then closed. Thanks for the suggestion that's awesome

  • @dnzrobotics
    @dnzrobotics 4 месяца назад +1

    👏👏👏

  • @ericcxxxx
    @ericcxxxx 4 месяца назад +1

    no such thing as smart items. smartphone smart computers it's only a sales gimmick....

    • @projecttimetech7022
      @projecttimetech7022  4 месяца назад

      Yep

    • @pneumantic6297
      @pneumantic6297 3 месяца назад +3

      Not really true, would you really compare a smart phone to a rotary phone?

    • @ericcxxxx
      @ericcxxxx 3 месяца назад

      Yes I would smartphone is as Dumb as a rotary phone

    • @jamess1787
      @jamess1787 3 месяца назад

      Hmm, sending wireless radio signals is not the same as opening and closing a circuit. Lots of engineering involved to do it and connect thousands of handsets simultaneously to a cell tower.
      I'd consider this parcel box "smart", it could be as simple as a light bulb on a flip-flop/relay for a yard light, if a parcel is in the box.

    • @dwang085
      @dwang085 3 месяца назад

      So brave