Fireship · @fireship

I built a smarter smart home

Uploaded May 10, 2023 · Length 6:56

I built a smarter smart home

Summary

Building a private and secure smart home from scratch using Home Assistant and integrating it with Open AI for a glimpse into a Next Generation smart home.

  • home automation
  • smart home
  • home assistant
  • open ai
  • iot devices
  • bluetooth low energy
  • esp32 microcontroller
  • raspberry pi
  • python
  • yaml
  • blueprints
  • automations
  • scenes
  • scripts

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    today I'm going to build a private and

  2. 0:02

    secure smart home from scratch then

  3. 0:03

    stupidly give up my privacy by letting

  4. 0:05

    gpt4 in the front door here's what

  5. 0:07

    almost every day of my life looks like

  6. 0:08

    wake up at 5am turn on my lights

  7. 0:10

    microwave a breakfast Hot Pocket check

  8. 0:12

    on the baby turn on computer and wait 10

  9. 0:14

    minutes for Windows to update write some

  10. 0:16

    code make a YouTube video microwave a

  11. 0:17

    lean pocket open the door for friendly

  12. 0:19

    strangers join a new religion dishes

  13. 0:22

    it's a beautiful life but highly

  14. 0:25

    inefficient every time I turn on a light

  15. 0:26

    it takes 500 000 microseconds out of my

  16. 0:29

    day over the course of a year that's

  17. 0:30

    like two weeks spent just turning on

  18. 0:32

    lights luckily there's a free and open

  19. 0:34

    source tool called home assistant that

  20. 0:36

    can automate and control all the

  21. 0:37

    technology in our homes in today's video

  22. 0:39

    we'll build a smart home from scratch

  23. 0:41

    and look at all the crazy things people

  24. 0:42

    do with home automation but most

  25. 0:44

    importantly we'll keep all the data

  26. 0:45

    private to your home network which means

  27. 0:47

    hackers and feds can't spy on you then

  28. 0:49

    we'll completely break that rule by

  29. 0:51

    giving our data to open AI to integrate

  30. 0:52

    it with chatgpt giving us a glimpse into

  31. 0:55

    what a Next Generation smart home might

  32. 0:56

    look like but first we've got a huge

  33. 0:58

    giveaway thanks to our awesome spawn

  34. 0:59

    monster Bridge they're a startup that's

  35. 1:01

    building a protocol that enables iot

  36. 1:03

    devices powered by bluetooth low energy

  37. 1:05

    to Leverage The Cloud what's awesome

  38. 1:07

    though is that these smart devices don't

  39. 1:09

    need to be fitted with cellular or Wi-Fi

  40. 1:11

    connectivity instead they use mobile

  41. 1:12

    apps as an internet gateway to

  42. 1:14

    effectively bridge data between the

  43. 1:16

    internet and the iot device and that's

  44. 1:18

    huge because it means you can now build

  45. 1:19

    iot products without the need for

  46. 1:21

    cellular or Wi-Fi on your Hardware I've

  47. 1:23

    been playing around with it myself with

  48. 1:25

    an esp32 microcontroller and now you can

  49. 1:27

    too because bridge is shipping out

  50. 1:29

    hundreds of these boards for free right

  51. 1:31

    now once you have one you just installed

  52. 1:32

    a firmware download the demo app and

  53. 1:34

    then you can start securely storing

  54. 1:36

    interactions like inputs from a sensor

  55. 1:38

    on the back end Ledger as part of the

  56. 1:40

    bridge protocol and if you manage to

  57. 1:41

    build something cool you could even

  58. 1:42

    connect it to your home assistant which

  59. 1:44

    we're going to set up right now but

  60. 1:46

    first what is home assistant exactly

  61. 1:47

    it's a free and open source project

  62. 1:49

    written in Python that allows you to

  63. 1:51

    control all the technology in your home

  64. 1:53

    locally where your privacy can be

  65. 1:54

    protected it runs a UI on your local

  66. 1:56

    network where you can manage all these

  67. 1:58

    devices and automate them based on

  68. 1:59

    different events that happen in the