DIY Smart Bathroom Light: with ESPHome & Home Assistant!

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 82

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

    I was so sure you get shocked by the live wires any second. But you didn't. I got shocked so many times I stopped doing that. Funny video. I love your style

  • @simonpgw
    @simonpgw 3 місяці тому +2

    You could try using a "normal" motion sensor which are often faster combined with the mmWave sensor to reduce the reaction time.

  • @vincentdesjardins1354
    @vincentdesjardins1354 3 місяці тому +6

    Establishing a direct link between the sensor and the bulb light ESPs via ESP-Now would make them so much more reactive (almost instantaneous). The 4 seconds delay you're experiencing is very likely a combination between (bad) WiFi lag added with Home Assistant processing time.
    ESP-Now would allow your 2 devices to 'talk' to each other directly (without being connected to your WiFi rooter although they can be if you feel the need for it)
    Downside : no fancy quick flashing with ESP-Home, to use ESP-Now you'll have to write the code.

    • @Mellow_labs
      @Mellow_labs  3 місяці тому +4

      Actually, it was neither of those things. It was just bad sense configuration. I put it down to less than one second now

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

      @@Mellow_labs all right, glad it works better now. At least good enough to not be trolled by your flatmate ;)

    • @WoLpH
      @WoLpH 3 місяці тому +2

      Too bad that ESP-Now support is still pretty crappy with both ESPHome and Tasmota... but that would be amazing if it was used!

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

      ​Could you explain the fix that got the response tome down, please?​@Mellow_labs

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

      But ESPnow prevents the WiFi connection that is useful for smart home control. Maybe a direct Bluetooth connection, for instance.

  • @mitchellmnr
    @mitchellmnr 3 місяці тому +4

    The glue comment was gold! :D

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

      Now I'm glad you enjoyed :D

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

    try facing the sensor toward the door or have it ceiling mounted, I went with ceiling mounted, works so well it can sense me outside the door as I enter the light is already on

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

    If you don't need too much range (and you definitely don't need much in the bathroom) you could also put the sensor in a cupboard. The mmWave signals easily pass through a bit of wood, my sensors easily detect me if I'm standing at the other side of the door

  • @EdgarFresh
    @EdgarFresh 3 місяці тому +4

    Nice! So what did you see in the light switch that you decided to put the relay next to the lamp? I would just do this with a sonoff or shelly relay, much simpler

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

      Yes, that would infect me simply. But where is the fun in that

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

      When possible it's always better to make the light switch smart instead of the light.
      That way you can still use the switch.

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

    I've been wanting to build a presence sensor and this would be a good way to make my bathroom light/extractor fan smart. I fancy adding a PIR, or maybe just moving one of my Aqara motion sensors to get an instant trigger. Thanks for the video, it's inspired me to have a go.

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

    Good video. lol Cool you used the exact same power converter to do this that i did when i converted my dumb bathroom extractor fan switch to a smart one. I also added a bme280 to mine as well so the fan goes on/off when the humidity from taking a shower rises and then falls. But this is a good way to do a light. :) Also added a vl53lox time 0f flight sensor and aimed it across the toiled seat so the fan turns on when you set down on the seat and off when you get off of it. Also sprays my modified glade air freshener as well.

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

    I was hoping for the Compiling Dance!

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

    Great video mate!

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

    The weird bouncing issue is caused because the power supply has no load when the LED is disconnected and the constant current feedback loop in the supply output is not able to adjust appropriately. Basically you have an unlimited current supply (well within the limits of the supply) driving a newly connected LED load. The flash duration you see is the time it takes for the supply to stabilize. So you made the right choice to switch the power going into the supply. It will make the LEDs and supply last much longer.

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

    I wonder how many ESPs you have running in your place, going through them might be a fun video to do

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

    Nice, I use a similar system for all my house lights. You could consider connecting the mmWave sensor within the light itself and directly to the esp controlling the relay, which I think would decrease the latency considerably.

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

      Actually, the latency was a configuration issue. I’ve managed to get it down to less than a second now. But the main reason I didn’t put it in the light is because of the environmental sensor it would be useless up there.

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

      Ahh glad you managed to sort that out. I find my mmWave sensors can ‘see’ through most materials including plasterboard, wood and plastic though.

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

    I wanted a cry when I see how the guy is testing & playing with the voltage and hot-gluing the stuff. Hope it's not going to catch a fire once. Considering the fact the electricity is #1 fire reason. I'm crossing fingers for you.

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

    How long before the moisture will kill the esp?

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

    Haaaa, I bet that bump was the LED driver that had gone into "open circuit protection", and kept retrying to apply voltage in short pulses, or hiccups. We were witnessing the first one or two successful power-up attempts before it fully recovered. Probably it can't cope well with the LEDs not being connected, or fails that way on purpose as some kind of safety feature.

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

      Did you mean short circuit protection?

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

      @@coreymartin9630 it's a different kind of protection, open circuit is when leds are disconnected or no longer conduct (often due to led failure), it prevents the voltage rising too high, which could fry other components or pose other risks

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

    Add a PIR sensor to have a faster activation time and the mmWave sensor keeps the light on

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

      Actually, I got the activation time down to less than a second so doesn’t really need it. It was just a configuration issue I had.

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

    You can mark the fault esp s with a red sharpie or any color really
    Lmao the waiting..... halway bit was fun, but auto focus was throwing it for me. perhaps play with zoom angles to make the scene more engaging while we're watching the waiting. makes the visual more entertaining, like the b roll right afterwards

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

    Doing exactly Ideas that I'd like to do myself. Have you considered placing ESP in switch box (light, boiler, heater) for bathroom? That way you can automate bathroom heater, as well as boiler (usually in EU its in bathroom)? Are normal aliexpress relays good enough for that? It'd be good enough project tbh

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

    How about putting this presence sensor on a ceiling near the lamp? It has limited angle (probably like 100 degrees), so this might also be causing delay. It just take time from entering the room, before you get seen by a sensor. That would also help with wires. You could even try to put it inside the lamp, but in this case, environmental sensor would make no sense :)
    PS. If you are switching AC, you could look at SSR relay. They are super quiet :)
    PPS. You can now put esp8266 (seriously, esp32 you are using for these projects is an overkill) behind the light switch, powered from light circuit, and switch (ideally momentary) would connect two pins on esp (maybe through resistor or pull-up pin) and control the light (or something else)

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

    Hope that light has a decent IP rating for the bathroom moisture

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

    I absolutely hate those relais with the pull resistor to the wrong side...
    And why nog place the sensor on the ceiling next to the light? You could use a single ESP and a single power supply :)
    And really, you used a wago to go from a terminal to a Wago again :p

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

    What's that thing on your spectacle? Is that a microphone? Make/Model?

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

      It’s a microphone I don’t think they make it anymore. It’s a Hollyland M1.

    • @Tekwyzard
      @Tekwyzard 2 місяці тому

      @@Mellow_labs And there was me thinking all the time that it was a fancy camera thing, while wondering why we never saw any close-up video sequences from it 😄

  • @Snukiiii
    @Snukiiii 3 місяці тому +19

    I really don't think the AI thumbnails are helping you, they're not appealing at all.

    • @Mellow_labs
      @Mellow_labs  3 місяці тому +13

      It's really funny you should say that, I run 3 thumbnails for AB testing For every new video. The ai ones even though I don't like them, get the highest clickthrough rate. It annoys me too.

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

      @@Mellow_labs I was actually waiting for a different thumbnail to appear but it didn't show me :(

    • @Mellow_labs
      @Mellow_labs  3 місяці тому +2

      @@DocZippit You can usually see them over on www.viewstats.com/@mellow_labs/videos But it hasn't updated yet. It Also shows you other youtubers Thumbnail variations.

    • @headerahelix
      @headerahelix 3 місяці тому +6

      Also don't like them cause they make me think I accidentally subbed a content farm until I see the Mellow Labs name.

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

    the ai thumbnail says "hemperature" in the list of things controlled

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

    Next… rgb that mofo for poop time mood lighting!

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

      It'd actually be really neat if some sensor could analyze the poop and give you a red, amber, or green light for the quality.

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

    0:26
    Did you forget about the switch? Probably get a zigbee ikea button and put it in there instead, that's what I do at least.

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

    Excuse me, good sir. I will choose which noodles I doodle and when, thank you very much. 😤

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

    I do really like your videos, but I absolutely hate the AI thumbnails, I wish you wouldn't use them. I think many people would agree. Nevertheless, never stop making content!

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

      There is another commentator that pointed this out, and I agree they are awful. But I do AB testing for all of my new videos. Where I test two thumbnails that I have made and one ai thumbnail. And unfortunately, the AI ones get higher click through rates. I also don’t really like them. Which is why after about a week I make one of my own ones the default.

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

    relay hot, psu hot😅 hot glue... uhm should stay cold

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

      That explains why they started peeling off 😂😂

  • @74357175
    @74357175 23 дні тому

    WHY did the Real Electrical Engineer (gpt) at you shouldn't??

    • @Mellow_labs
      @Mellow_labs  23 дні тому +1

      GPT was just for a joke. I did actually ask my electrical engineer friend. The reason I didn’t use the LED power supply. Is the same reason I had to move the relay from disconnecting the LEDs to disconnecting the power supply. The power supply just isn’t designed for that kind of continuous operation. It would work for short term, but after a while it might start having issues.

    • @74357175
      @74357175 22 дні тому

      @Mellow_labs oh interesting! The ps doesn't look like supplying small currents for long periods? Why? Low efficiency?

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

    So cool idea...
    You should hav a light setting for night time..

  • @magnustangen6269
    @magnustangen6269 3 місяці тому +2

    The ai thumbnails are just horrible

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

    ‘Ew lightswitch, cringe’ 😆

  • @CF-po9ik
    @CF-po9ik 3 місяці тому +1

    I find your soldering offensive.

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

      The first or the second montage?

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

      The second looks neater ​@@Mellow_labs. You could probably do better with a bit of soldering flux every now and then, especially when soldering in reused electronics

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

      Do you think they were both done by the same person?

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

      I solder with the wires through the holes on my Wemos D1 Mini’s instead of soldering on the top. Even better use a D1 mini shield to solder to so you can replace a failed D1 mini but not have to solder again.

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

    3:05 the reveal that the "real electrical engineer" was actually the ChatGPT app was gold

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

    I'm just watching all the time hawe question why? Forget wifi sensors and relays in smart home. You can only use them if you have no other wifi networks around. And your router can handle such many devices. Router has to be very expensive, in other words. Just use zigbee and cheap chinese sensors like tuya or similar...

  • @okolol
    @okolol 3 місяці тому +2

    stop... please... I'm begging you stop using ai generated images as thumbnail.

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

      Then don’t click it, just wait until one of the other 2 shows up. By clicking it, you just increasing the click rate for this thumbnail.
      Which makes UA-cam think it’s more popular and then shows it to more people.

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

      @@Mellow_labs it seems like thw ai one is dominant. I didn't get any other thumbnail

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

      Actually, the Ai is second most popular.

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

      @@okolol www.viewstats.com/@mellow_labs/videos/JRKy7IdahmU Here you can see the other options

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

      @@Mellow_labs well then, I just have to wait until the forst or the third one showed up ig

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

    It takes only one second to turn on the light manually

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

      Think of all the time I'm saving And energy, No longer do I have to move my hand up to a switch. At this rate, I will be a vegetable in no time!

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

      Think about the time you're doing your business and the light turned off due to no human presence detected

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

      I automated my bathroom light as well. The main reason is that I otherwise forget to turn them off and they'd stay on all day. Kitchen same.

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

    Don't like the thumbnails.

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

    The call being ChatGPT