ESP32 HomeKit Tutorial | HomeSpan

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 94

  • @taylor.galbraith
    @taylor.galbraith  Рік тому +40

    Hey! I missed one important part of the video! - How to upload your wifi to the device.
    If you go to your Serial Monitor, you will see a way to type into the Serial. With your device connected to your computer , type “W” (capitol W) and press enter. It will then pop up a list of wifi connections nearby with numbers next to them. For example, “ (1) mywifi (2) yourWifi . “ Type the number associated with your wifi and press enter. Then add your password and you should be all set!! - Sorry about that 🚀

    • @starleefox
      @starleefox Рік тому

      Thanks that helped!

    • @marvinterry8654
      @marvinterry8654 Рік тому +3

      I was so confused about adding HomeKit without wifi, maybe Bluetooth, no idea... your comment really helps me out

    • @avnithardia147
      @avnithardia147 Рік тому

      Can you please tell me how to add physical switch in this code

    • @Назар-х5с9е
      @Назар-х5с9е Рік тому

      можно видео инструкцию как добавить вайфай на свое устройство ?

    • @mutualgarden
      @mutualgarden 11 місяців тому +1

      Hello, thank you very much for the great video! As an absolute beginner, it has helped me tremendously!! Is there another solution for the Wi-Fi? A solution without Arduino IDE?

  • @mrlt1151
    @mrlt1151 Рік тому +3

    Nice video. I used one to bring my legacy home alarm system into HomeKit. It reads the state of all of my door and window switches, so now I get alerts and can set automations based off of door activity.

  • @TeoMaragakis
    @TeoMaragakis Рік тому +28

    Please censor talking to Siri in your videos, you’re messing with my HomePod and turning off my lights! 😂

    • @Ignotus.
      @Ignotus. 11 місяців тому

      I keep seeing this, but really don't struggle with this stuff. Do people not calibrate their Siri to their voice?

    • @bunnatang2081
      @bunnatang2081 2 місяці тому +1

      stupid siri doesn't recognize owner's voice

  • @aliozanerbektas
    @aliozanerbektas Рік тому +3

    I think I'm gonna build my own DIY smart lock with that.
    Think about it, all it needs a stepper motor connected to a gear which connected to a shaft that turns the key knob.
    I know that there are a metric tonne of those smartlocks but most if not all of them are specifically designed for the US market which again most if not all uses deadbolts and have handles outside of the door.
    Anyway this system has great potentials and I think I can make a prototype then improve it along the way. 🙏

    • @hrebis2924
      @hrebis2924 Рік тому +2

      good luck with that

    • @hrebis2924
      @hrebis2924 Рік тому +2

      good luck with that

    • @RicbordEdits
      @RicbordEdits 11 місяців тому

      im thinking of doing the same! how are you doing in the project so far?

    • @nickiesnook
      @nickiesnook 3 місяці тому +1

      remember the "S" in "IOT" means security!

  • @wertertwertwet
    @wertertwertwet 7 місяців тому

    Thanks for the video, really well done. And also the library for that.. when you give people the chance to generate their own benefit they will be creative. And some of them share their knowledge with us. Just wholesome 💜💜

  • @atw1124
    @atw1124 10 місяців тому +1

    Great video! Would a Ws2812b Strip be able to be used instead of the basic LED in in this setup?

  • @SquawkTradeFX
    @SquawkTradeFX 11 місяців тому +1

    This is fantastic. Will you have remote access outside the WIFI network? Also can it provide historical trends and settings? I am surveying this for garden automation monitoring trending temperature ranges

  • @michaelbluecastlestudio665
    @michaelbluecastlestudio665 Рік тому +1

    Great Tutorial. Was looking for something like this. ill check it out...thanks for sharing

  • @laplacedoge
    @laplacedoge 4 місяці тому +1

    Thank you for providing this helpful video, I did exactly the same steps, but the device icon wasn't shown in my Home app, then after reading the HomeSpan docs I realized that it's because I didn't configure the Wi-Fi SSID and password, LOL

  • @mcritz46vl
    @mcritz46vl Рік тому

    This is great! Thanks for making this tutorial

  • @Rawad.nasser
    @Rawad.nasser 15 днів тому

    Can you make a video, how to control a stepper motor to move the curtains by homespan and TMC2208?
    Thank you so much 😊

  • @danialshearwan2731
    @danialshearwan2731 5 днів тому

    ‏Hi there, I have a question for you. I’m working on a graduation project and I’m really interested in using this IoT device in it. However, I’m wondering if I can connect the Arduino Mega to the ESP32 and still have it perform the same functions.

  • @juliencrypto1794
    @juliencrypto1794 Рік тому +1

    Hello, your first program with the led is working with bluetooth or wifi ? Thanks

  • @MrProvocer
    @MrProvocer 3 місяці тому

    Hi @taylor.galbraith , amazing tutorial. Went through 3 of them, seemingly all similar - but yours was the only one that yielded results. I just managed to turn on/off the LED. Next step is the relay setup, however I don't want a light bulb, but I want to activate my garage door. In this case, a permanent current flow is not needed (I'm not connecting the relay to the garage door's motor power supply), but rather connecting into the COM board, so one click (closing the circuit through the relay) will be enough. Every instance of closing the relay loop will run a new cycle of the garage door (open/stop/close etc.). Could you please advise which setup/template to use for such a situation or how to amend your replay template for this?

  • @mikekafei
    @mikekafei 6 місяців тому +1

    It is recognized by Homekit, but when I type in "1112-2333" it says "The setup code is incorrect". The Serial monitor outputs: *** ERROR: SRP Proof Verification Failed. Any Ideas?

  • @NoName-wy4hf
    @NoName-wy4hf 4 місяці тому

    Just found your channel and would like to request more videos like this please. Oh and I subbed

  • @Mat69MX
    @Mat69MX Рік тому +1

    can i make this with the new board arduino uno r4 wifi? it has an esp32 module on it

  • @robinflemming2001
    @robinflemming2001 Місяць тому

    is there a way to connect 3 relays at the same time? My Homekit app is always displaying only two of them.

  • @JeremyPierre-hy6lb
    @JeremyPierre-hy6lb 2 місяці тому

    would it be possible to generate a QR code on a lcd attached to the esp 32 for easy apple home setup ?

  • @RND-USA
    @RND-USA 10 місяців тому

    Hi, such a great video! Do you know if this HomeSpen could be used to create a PWM led strip dimmer? I have some mono / single color led stips that I’d like to be able to turn on and off. They don’t have the 3rd, green terminal for communication so would require the leds to dim via pulse wave modulations sent via the neg ground and 5v vin ports. So curious.

    • @phoenix4193
      @phoenix4193 7 місяців тому

      Use wled for esp 32 it has PWM

  • @BigyanBhattachan
    @BigyanBhattachan Рік тому +1

    Really Neat tutorial!

  • @patricemoreau8433
    @patricemoreau8433 5 днів тому

    What partition scheme are you using on esp32 Wroom for this program? Because I can't televerse the program! Script too long! Homespan library problem?

    • @patricemoreau8433
      @patricemoreau8433 5 днів тому

      Problem solved with “huge app partition scheme!” (3Mb no OTA / 1MB SPIFFS)

  • @patricemoreau8433
    @patricemoreau8433 4 дні тому

    Hello! Have you ever had a problem with Homespan serial command because on my esp32 nothing happens when I type W or H or ? I don't really understand where the problem can be!

  • @robin2502
    @robin2502 9 місяців тому +1

    Everything works fine for me, and the ESP32 shows up in my Home app. But after I type in the code, it tries to connect for about a minute and fails every time. Any Idea why?

    • @phuaouc6886
      @phuaouc6886 7 місяців тому

      I am like you, but when I change ESP32, everything is no longer like that, it has found accessories on HomeKit and is controlled. Perhaps the developer is not supported on ESP32 Wroom.

  • @trangnguyenquangduy1190
    @trangnguyenquangduy1190 Рік тому

    Is there any way to get the remote access for the homekit ? Thank you

  • @hidayetbaysal5772
    @hidayetbaysal5772 3 місяці тому

    Hi, I used the exact same code on my esp32 and the device shows up on the home app, it gets saved there too. But after it does I cannot do anything, it says no response and in the serial monitor it says please connect using homekit or something like that. Can you help please?

  • @gurjotbirdi8550
    @gurjotbirdi8550 Рік тому

    Does this work as IOT accessory or just as a lan accessory

  • @andrewkent4149
    @andrewkent4149 Рік тому +1

    I don’t get how and where you start pasting from for the code.

    • @phamks6109
      @phamks6109 5 місяців тому

      I had the same situation, please let me know if you find a way to create that LED.h file.

  • @adaptivehackerkhan
    @adaptivehackerkhan 4 місяці тому

    can this be available in the background, you can say "Hey Siri, turn on my led" regardless of where you are in your phone?

  • @Benjamin_Stroup
    @Benjamin_Stroup 6 місяців тому +1

    Its not showing up on my Accessory list on my iphone

  • @karmazzypl165
    @karmazzypl165 27 днів тому

    Is it windows alternative for that app

  • @novismarthome
    @novismarthome Рік тому

    Does this work only if I connect it to the local wifi ?

  • @HungryMAN-pp2ff
    @HungryMAN-pp2ff 4 місяці тому

    Helllo,
    I have a problem compiling a sketch using a libary HomeSpan can you help me

  • @higorrezende59
    @higorrezende59 8 місяців тому

    hi bro. Can I do this with my esp with 24ch of IO?

  • @tunaykuru5618
    @tunaykuru5618 9 місяців тому

    Hi. Thanks for this nice vid but can we have a another way to connect esp8266?

  • @next4978
    @next4978 Рік тому

    Cool and simple

  • @SilviInsania-g5o4c
    @SilviInsania-g5o4c 10 місяців тому

    Is the device automatically connected to my home wifi after setting up the device?

  • @jaikrish50
    @jaikrish50 7 місяців тому

    This will works in Android or only iphone

  • @jasonli8071
    @jasonli8071 Рік тому

    How to respond to mechanical switches in real scenes

  • @itsmeKim00
    @itsmeKim00 Рік тому

    can i use esp8266? thanks

  • @slightlyokvideos
    @slightlyokvideos Рік тому

    What IDE are you using? Looks a little different than the arduino IDE

    • @thehibbi
      @thehibbi Рік тому

      I heard that they released a new version somewhat recently. Maybe you still have the old one

    • @TymArsenii
      @TymArsenii Рік тому

      It's Arduino IDE v2.1.1

  • @AlbaVolt
    @AlbaVolt 3 місяці тому

    Does this work with wifi or bluetooth?

  • @mikekafei
    @mikekafei 6 місяців тому

    I got an error while uploading that I am missing "Sodium.h" Library. Any ideas as to what this library is?

    • @mikekafei
      @mikekafei 6 місяців тому

      Edit: So this doesn't work with the newest 3.0.2 version of Espressif's esp32 board library. I downgraded to 2.0.17 and it worked great!

  • @ameliabuns4058
    @ameliabuns4058 10 місяців тому

    does this use wifi?

  • @rezamuhammad6618
    @rezamuhammad6618 Рік тому

    What ios version installed? I’m using 16.5, failed at pairing stage

    • @taylor.galbraith
      @taylor.galbraith  Рік тому

      I’m using 16.3.1. I’ll update and try it. When you click “add accessory”, are you also clicking “more options”? The device won’t be registered with Apple so we need to force it to add a connection. Also, make sure you’re connected to the same Wi-Fi network.

    • @rezamuhammad6618
      @rezamuhammad6618 Рік тому

      @@taylor.galbraithyes, device already detected after key in pairing code , but can’t add accessories at the end

  • @sergiodeoliveira5358
    @sergiodeoliveira5358 Рік тому +3

    You completely glossed over configuring Wi-Fi via Serial Monitor once code is uploaded to ESP32 board. Took me watching a different HomeSpan tutorial on UA-cam to realize what I was doing wrong.

    • @taylor.galbraith
      @taylor.galbraith  Рік тому +3

      Woah! Thanks for pointing that out! Just added a quick walkthrough in the comments.

  • @MajorFusion
    @MajorFusion Рік тому +1

    Does this also work on the esp8266 boards?

    • @lvcc11
      @lvcc11 Рік тому

      I was about ot ask the same. From a Github repository, I think it also works but it is generally faster on esp32 module for some reason

    • @Noah-js5mc
      @Noah-js5mc Рік тому

      No it only works on esp32, but there are some other libraries that implement homekit for esp8266 but they are not stable at all

  • @P.A.T.
    @P.A.T. Рік тому +1

    Hello everyone! First of all, thanks for the tutorial. I don't know how to code. in 90% of the cases, I am a code monkey. Fortunately, I know some electronics therefore I my own board with ESP32-Wroom and 4 relays. The installation, configuration went ok. The problem is that I can't send the "W" command in order to set the SSID and Password. Do you have any suggestions? I tried everything I know. Nothing worked.
    Thanks everyone!

    • @taylor.galbraith
      @taylor.galbraith  Рік тому

      Hey! When your device is connected to your computer and you opened the serial monitor, can you run any of the command found in the HomeSpan docs? I’m interested in knowing if you are connected correctly

    • @P.A.T.
      @P.A.T. Рік тому

      @@taylor.galbraithHi! No! I mean, i see details about the chip bit can’t send commands. The serial monitor is set on Newline, the baud rate is correct.

    • @P.A.T.
      @P.A.T. Рік тому

      @captsk1109 abandoned the project for a while:(

    • @videoo24
      @videoo24 Рік тому

      You do realize - that you have to scroll all the way up to the top line in order to type in and send your commands ? @@P.A.T.

    • @FPVNZ1
      @FPVNZ1 6 місяців тому

      Hey man did you find out how to fix this i have read all coments tryed every thing but still can not get any thing to happen when typed W ''W

  • @mathewtomy3823
    @mathewtomy3823 Рік тому

    Is this only for ios?

  • @vinhtra6082
    @vinhtra6082 Рік тому

    tôi bị lỗi file LED.h tôi không tìm thấy được file này trên internet

  • @ShawankumarParida
    @ShawankumarParida Рік тому

    How to use it on android??

  • @memester230
    @memester230 Рік тому +7

    dude you set off my HomePod so many times during this video, please censor yourself next time lmao

    • @wyattb3138
      @wyattb3138 Рік тому +1

      Mine didn’t go off at all. Voice recognition works I guess.

  • @cringefds1366
    @cringefds1366 4 місяці тому

    Compilation error: 'service' has not been declared

  • @CarlMoebis
    @CarlMoebis 10 місяців тому

    Thanks for turning my devices off by not muting your hey siri commands. Who does that?

  • @sergeymarshall3173
    @sergeymarshall3173 24 дні тому +1

    Fake!

  • @H0t.5tuff
    @H0t.5tuff 11 місяців тому

    how can I use manual on/off switch for the relay that changes the relay status in the app?