Тёмный
Home Assistant Tips By Larry
Home Assistant Tips By Larry
Home Assistant Tips By Larry
Подписаться
Комментарии
@whatamistilldoinghere
@whatamistilldoinghere 13 часов назад
I just wanna mod it to use regular air fresheners so i don't have to spend extra
@HATipsByLarry
@HATipsByLarry 12 часов назад
What is a "regular" air freshener? Also this mod will make the cans it does use last a LOT longer as it ONLY sprays when your automations tell it to not every 9,18,36 min any more.
@3ATIVE
@3ATIVE День назад
#First
@the_smart_home_maker
@the_smart_home_maker 4 дня назад
Super inspiring project! Great work, Larry!!
@HATipsByLarry
@HATipsByLarry 4 дня назад
Thank you. Glad you liked the video. 😀
@the_smart_home_maker
@the_smart_home_maker 5 дней назад
Great ! 👍🏻 looking forward to the detail video 😊
@HATipsByLarry
@HATipsByLarry 5 дней назад
Already out 😀ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fx1ibQq3BN4.html
@the_smart_home_maker
@the_smart_home_maker 5 дней назад
@@HATipsByLarry thank you! 🙏
@simongchadwick
@simongchadwick 6 дней назад
This is very cool - many thanks Larry for documenting and filming it! Slightly related: I have a Brondell swash bidet powered by a Tasmotized power monitoring plug. When the bidet air drying mode is detected by the plug (based on wattage), a HA automation turns on the extractor fan for 10 minutes.
@HATipsByLarry
@HATipsByLarry 6 дней назад
Glad you liked the video and thanks. That sounds cool you can even have the air freshener spray at the time the fan is turned on I have replaced a dumb switch with a esp32, a relay and a bme280 temp and humidity sensor. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5JBcR0OkVcw.html Also installed a VL53lox time-of-flight sensor ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2ZEIDl2Fluc.html ) that points across the seat of the toilet so the fan and the air freshener only trigger when i sit down on the seat, or when the humidity goes above a certain level.
@itscarlsanity
@itscarlsanity 9 дней назад
Won't the motor overturn and damage the gears? I see in the code that you just turn the motor forward then just delay, then reverse..
@HATipsByLarry
@HATipsByLarry 9 дней назад
No. That's why i delay exactly 300ms then break the motor so it doesn't cost and reverse for exactly 300ms then break then release the motor. I did break a few gears until i got it right testing of course, but then that's why you have me 😀So you don't have to break things getting it right. I have 5 of these around the house and they all have been working for over 3 months with no problems at all.
@itscarlsanity
@itscarlsanity 9 дней назад
@@HATipsByLarry thats great and nice to hear. I was looking to automate the same air freshner for quite some time now and it was a suprise when I saw your video haha. I'm still looking into a battery powered one and a stepper motor instead so the turns are more precise. But I guess with what you've shown, we have a proof of concept. Great job!
@HATipsByLarry
@HATipsByLarry 9 дней назад
@@itscarlsanity Thank You. A battery powered one that works with home assistant would be almost impossible to do (unless you want to recharge the battery a LOT) or had a big external battery, because the Micro-Controller can't be put to sleep and needs constant wifi (power hog) connection so it can be triggered by the automations. If your talking say a temp/humidity sensor for example then no problem as the sensor could wake the micro-controller when the temp/humidity changes then the controller could transmit the changes and go back to sleep.
@itscarlsanity
@itscarlsanity 9 дней назад
@@HATipsByLarry thats why I wasn't able to do it haha An 18650 battery could work. I hear it could last 17 hrs for an ESP with deep sleep. Not sure how could you just wake it up when a command is sent from Home Assistant. I've also seen a small solar panel that charges the battery in the day so it never runs out but I mean the air freshner is an indoor thing so you'd have to put a wire to the solar panel outside which kinda defeats the purpose haha. Some solar lights have that circuit, you have rip apart the lights and just put a voltage regulator to 3.3v and you're good to go.
@HATipsByLarry
@HATipsByLarry 9 дней назад
@@itscarlsanity If you want to discuss this more discord would be the way to go as it is easy to carry on a conversation there. I just recently opened up a channel if your interested. discord.gg/HB9fne2VDu
@HATipsByLarry
@HATipsByLarry 10 дней назад
This will be my next HA Modification Project so stay tuned ru-vid.commlos0h8tpqQ?feature=share
@miguelavello7493
@miguelavello7493 12 дней назад
Larry Thank you for making Part 2 Fantastic work and Thank you for sharing
@HATipsByLarry
@HATipsByLarry 11 дней назад
your very welcome
@miguelavello7493
@miguelavello7493 12 дней назад
Fantastic Idea. 💡 Larry thank you for sharing and PLEASE make Part 2, to see and learn from the automations you made. What an awesome project.
@HATipsByLarry
@HATipsByLarry 11 дней назад
Glad you like the video. I have made a automation video for the glade air freshener mod ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qKIG5ycUd7Q.html I plan on making more in the future. 😀
@robertosecco983
@robertosecco983 12 дней назад
Hello! The discord invite is no longer valid. Could you please post a new one?
@HATipsByLarry
@HATipsByLarry 12 дней назад
Sorry didn't know that link was still in this video. I'll remove it. I closed the discord channel as no one was using it.
@robertosecco983
@robertosecco983 12 дней назад
@@HATipsByLarry No problem. I found your GitHub. If I have any questions where can I reach you? Directly in GitHub?
@robertosecco983
@robertosecco983 12 дней назад
BTW, very good videos!
@HATipsByLarry
@HATipsByLarry 12 дней назад
@@robertosecco983 Thank You. Glad you like them :)
@CrazyAngelfire
@CrazyAngelfire 14 дней назад
my bad i didnt see the list lol
@HATipsByLarry
@HATipsByLarry 14 дней назад
No problem. 👍
@HATipsByLarry
@HATipsByLarry 15 дней назад
Working on part 2 of this video. Well be about the automations i used for the air freshener. Should be out in the next few days. This video is now out ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qKIG5ycUd7Q.html
@mmojadad
@mmojadad 15 дней назад
I am interested. Thanks
@HATipsByLarry
@HATipsByLarry 15 дней назад
Here is a like to the code i used github.com/HATipsByLarry/LD2410-Zones/blob/main/LD2410%20Code.yaml
@JonnyFix
@JonnyFix 17 дней назад
I might be missing something but the code looks like just the motor control. How does it connect with home assist and manage the comms from that?
@HATipsByLarry
@HATipsByLarry 17 дней назад
Through ESPHome via wifi.When you flash the micro-controller with esphome the first part of the code that identifies the connection information is created by esphome. The code i provided is placed after the Captive Portal line which will be the last line of the pre-made code.For example this was placed in my MCU after i added it to esphome esphome: name: air-freshener-bathroom friendly_name: Air Freshener Bathroom esp32: board: esp32-c3-devkitm-1 framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: encryption: key: "ppnXxOvsUOrTTY8hwuqQIVd1F0MazM+9zQulhUpz8I4=" ota: password: "87fa8773048c73f0ebb27acf663198e4" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Air-Freshener-Bathroom" password: "zejxypP0Iw9R" captive_portal:
@JonnyFix
@JonnyFix 17 дней назад
@@HATipsByLarry Thanks!
@HATipsByLarry
@HATipsByLarry 16 дней назад
@@JonnyFix No Problem, glad to help
@geoffreycoan
@geoffreycoan 17 дней назад
Neat project. I understand why you made it USB powered but it loses the portability of batteries, plus in the UK you are very limited about electrical sockets in bathrooms / toilets so other than a double insulated shaver socket we tend not to have any sockets. Wonder if you could fit a larger battery pack inside and if so how long it would last? Might be a non starter
@HATipsByLarry
@HATipsByLarry 17 дней назад
Yep i'm afraid so. The MCU needs to be constantly connected to HA via wifi so it can listen for commands to know when to spray. So the MCU can not be put to sleep like say a temp sensor could be, and wifi is a power hog.
@PatrickBulteel
@PatrickBulteel 18 дней назад
That was a great video. Also, I like that now the air freshener is powered instead of needing batteries, though those batteries do tend to last long. I suppose you could modify what controller you use so you could include something like PIR or other sensors. Anyway, great idea.
@HATipsByLarry
@HATipsByLarry 18 дней назад
Thank You. The MCU needs to be listening to HA to know when to spray so it needed to be powered instead of running off of batteries anyway. I thought of putting a PIR or mmWave sensor inside it but i like most others already have PIR and mmWave sensors in most rooms anyway so decided not to. I will be putting out a part 2 showing how i used those sensors and others to make the air freshener spray when i wanted. So stay tuned for that
@shawnmaker6974
@shawnmaker6974 18 дней назад
Awesome! It would be cool to put a pir sensor in there too.
@HATipsByLarry
@HATipsByLarry 18 дней назад
Thanks You. 😀i thought of that but it is now connected to HA already and i already have mmWave sensors everywhere, as i'm sure most people do. So decided against it. I will be coming out with a part 2 to this video showing how i use those sensors and others to make it spray when i want. Stay tuned
@johnkoester6534
@johnkoester6534 18 дней назад
Great job! I’ve seen it done before but you made it look way easier. Thanks
@HATipsByLarry
@HATipsByLarry 18 дней назад
Thank You. I made the decision to replace the original PCB to make it easier, instead of having to cut traces and solder tiny wires to tiny points on a tiny PCB. For a $1.50 USD for the motor controller, i figured it was worth it.
@akasha1337
@akasha1337 20 дней назад
Can this powered by lithium battery it will last long?
@HATipsByLarry
@HATipsByLarry 20 дней назад
Good Question. Yes and no, to answer your questions in order. The micro controller i picked, (although i didn't pick it for this reason) has battery connections on the back of it (as you can see in my wiring diagram github.com/HATipsByLarry/Glade-Air-Freshener-Mod/blob/main/Glade%20Air%20Freshener%20Wiring%20Diagram.jpg ) that would allow a battery to be connected and recharged, but because the micro controller needs constant wifi connection, (to know when to run the motor controller) you could not put it to sleep, so the drain on the battery would be constant and high.
@akasha1337
@akasha1337 20 дней назад
@@HATipsByLarry thank you alot is any alternative controller can be used for 24/7 usage or any other way to make it more efficient
@HATipsByLarry
@HATipsByLarry 20 дней назад
@@akasha1337 No because of the need for any controller to have constant wifi connection to home assistant so it knows when to spray, the draw on the battery will be high. If we were talking about say a temperature and humidity sensor then things would be different as the sensor could wake the controller up from sleep, when the temp or humidity changed, then the controller could transmit the changes and go back to sleep. But in this situation we need to constantly listen to HA to know when to spray.
@JackF1
@JackF1 22 дня назад
Awesome project, id love to see the code, new subscriber
@HATipsByLarry
@HATipsByLarry 22 дня назад
Glad you like the video and thanks for subscribing. Code is in the video description. But I'll post the link to it here as well for you github.com/HATipsByLarry/Glade-Air-Freshener-Mod/blob/main/ESPHome%20Code 😀
@Dylan_Lanckman
@Dylan_Lanckman 22 дня назад
I did this as a college project, last year. Worked great until my gears broke. How did you solve the timing problem on the motor?
@HATipsByLarry
@HATipsByLarry 22 дня назад
If you check out my code you can see where i start the motor forward then wait for 300 ms then break the motor. Then reverse the motor for another 300 ms. The timing was trail and error, slowly rising the value until i got it right. switch: - platform: gpio id: fwd name: Motor Forward pin: 9 - platform: gpio id: rvs name: Motor Reverse pin: 10 button: - platform: template id: btn_spray name: "Spray" on_press: - switch.turn_on: fwd - delay: 300ms - switch.turn_on: rvs - delay: 500ms - switch.turn_off: fwd - delay: 300ms - switch.turn_on: fwd - delay: 500ms - switch.turn_off: fwd - switch.turn_off: rvs
@Dylan_Lanckman
@Dylan_Lanckman 22 дня назад
@HATipsByLarry I had an older model (20 years). I figured out indeed it was trial and error. I landed at 500ms but alas it lived only 2 weeks until it broke. I was lucky I had footage of it working or I wouldn't have had a project to submit. 😬
@HATipsByLarry
@HATipsByLarry 22 дня назад
@@Dylan_Lanckman I've had mine going for over a month now. So far no problems with it at all and gears look brand new. 😀 A friend of mine did try driving the motor with 5vdc (didn't use a buck converter to bring the voltage down) and ended up damaging the teeth on the gears.
@Dylan_Lanckman
@Dylan_Lanckman 22 дня назад
@HATipsByLarry exactly what happened with me. My electronics professor warned me for this but I didn't understand the logic at the moment so my contraption ground it's own gears apart.
@HATipsByLarry
@HATipsByLarry 22 дня назад
@@Dylan_Lanckman Well now you know for next time 😀
@hshah1903
@hshah1903 22 дня назад
Good work, appreciate the efforts and a great way to fix the problem with foul smell
@HATipsByLarry
@HATipsByLarry 22 дня назад
Glad you liked the video. It has great wife approval factor also. Wanted to find a way to make it better., as the way it was you could only have it spray on a schedule, either 9, 18 or 36 minutes. Very wasteful IMO. This should make the cans of spray last a LOT longer. Plus it sprays when you really need it now. 😀
@patrickalbury8901
@patrickalbury8901 23 дня назад
Another great video. I like these type ideas alot. Yes i would like to see the automation ideas, if you get a chance.
@HATipsByLarry
@HATipsByLarry 23 дня назад
Thank You. Glad you liked the video. I will see what i can put together, once we get some others requesting it. 👍
@HATipsByLarry
@HATipsByLarry 23 дня назад
Forgot to mention this in the video but you can also control the air freshener with your voice assistant (google, alexa, etc.) now that it's intergraded with Home Assistant. 😀
@3ATIVE
@3ATIVE 23 дня назад
Nice 👍👍
@HATipsByLarry
@HATipsByLarry 23 дня назад
Thanks Dave, glad you liked it. Want to see how you did yours soon 😀
@metalosmrmmgtow916
@metalosmrmmgtow916 23 дня назад
Love it. Always great to see "fresh" ideas turned into functional HAss devices.
@HATipsByLarry
@HATipsByLarry 23 дня назад
Thank you. Glad you like the video. I plan on making more of these type video's in the future. Like modifying devices to make them smarter and work in home assistant
@whatsmyname4165
@whatsmyname4165 19 дней назад
That's a world class pun!
@JussAren812
@JussAren812 27 дней назад
Please do make that video, no more shitty bathrooms..
@HATipsByLarry
@HATipsByLarry 27 дней назад
I was planning on making it before this, but life got in the way. Have recorded the videos, but as any video creator can tell you it's the editing of the video that takes all the time. Hope to have it out soon.
@Sehil-InnovationEngineer
@Sehil-InnovationEngineer Месяц назад
wow...its really nice.. pls upload how you made
@HATipsByLarry
@HATipsByLarry Месяц назад
Will upload soon
@geoffreycoan
@geoffreycoan Месяц назад
oh wow, my wife loves those air fresheners, be great to make them smarter
@HATipsByLarry
@HATipsByLarry Месяц назад
Yes WAF (wife approval Factor) was a key reason why i did this project 😀
@clairerovic
@clairerovic 2 месяца назад
Thanks Enjoyed, Maybe limit the prize to your country as Postage $$$ can be expensive 😁.
@HATipsByLarry
@HATipsByLarry 2 месяца назад
I did, that's why the give away rules say you must live in the US to be eligible. 😀Thanks for the comment and glad you enjoyed the video.
@clairerovic
@clairerovic 2 месяца назад
@@HATipsByLarry Oh, GitHub perfect. Enjoy
@shannonbreaux8442
@shannonbreaux8442 2 месяца назад
Can this be used for a entry and exit point as a person counter ?! Or have 2 ToF sensors ?!
@HATipsByLarry
@HATipsByLarry 2 месяца назад
Yes, the sensor will only change states when you are directly in front of it. It can detect up to around 6 feet in front of it. It reports as unknown when detecting nothing then starts reporting the distance to the object in real time. I use it in my bed occupancy sensor to detect when i'm setting in bed vs laying down. Also use it at the entrance to my foyer to automatically unlock my smart lock on my front door. You could use it to count people also, just create a HA counter helper. You would need 2 TOF sensors for that to know weather to increase or decrease the counter.
@homeautomatorza
@homeautomatorza 2 месяца назад
Hey Larry, I watched all your videos, some interesting stuff in there. -- Pascal
@HATipsByLarry
@HATipsByLarry 2 месяца назад
Thanks. I try to think of ideas people would be interested in.😀
@HATipsByLarry
@HATipsByLarry 3 месяца назад
I often get asked about how to set the zones up in home assistant for this project, so i have created a github page to help answer those questions. github.com/HATipsByLarry/LD2410-Zones/tree/main If anyone still has questions after reading this then please ask here or on my discord channel. The ESPHome code is also there as well.
@makbart
@makbart 3 месяца назад
how to change the code to make the temperature work in Celsius?
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Here you go i2c: sda: 21 scl: 22 scan: true id: bus_a sensor: - platform: bme280_i2c temperature: name: "WorkBench Temperature" oversampling: 16x filters: - offset: 3.0 humidity: name: "WorkBench Humidity" filters: - offset: 6.0 address: 0x76 update_interval: 5s Just change the numbers after offset: to adjust the temp and humidity readings to make them more accurate
@AustinLambe
@AustinLambe 3 месяца назад
I'm starting my research on setting up a smart home. Thanks for the information.
@HATipsByLarry
@HATipsByLarry 3 месяца назад
You are most welcome
@avri210984
@avri210984 3 месяца назад
Great tutorial !! Parts ordered !!
@HATipsByLarry
@HATipsByLarry 3 месяца назад
let us know how it goes. 😀
@3ATIVE
@3ATIVE 3 месяца назад
Sitting vs Laying detection - Nice 👍
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Thank You for the kind words 😀
@RandomTorok
@RandomTorok 3 месяца назад
I've been playing with temperature sensors for the last couple weeks and I've learned that there is a difference between BME and BMP. The BME 280 will do temperature, humidity, pressure and altitude. While the BMP 280 only does Temperature and pressure.
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Yes you are correct. The BME280 is definitely the best one to go with as it gives you the humidity reading.
@tulpenboom6738
@tulpenboom6738 3 месяца назад
In the next video could you spend some time on explaining why you chose this particular combination? For example why have both PIR and mmWave sensors? What to use a ToF sensor for? Also - since temp & hum sensor are often influenced by the PCB circuitry heat (and using an offset is often just a stopgap) how you will account for that? Thanks.
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Yes was planning on that. 😀
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Updated the Github repository for the mega sensor project hardware to reflect using the ESP32C3 micro controller instead of the D1 mini ESP32. github.com/HATipsByLarry/Mega-Sensor/tree/main (edited)
@HATipsByLarry
@HATipsByLarry 3 месяца назад
Starting with this video i have added a Github repository for all future videos Here is the link for this video github.com/HATipsByLarry/Mega-Sensor It's also in the video description as well.
@mahajana13
@mahajana13 3 месяца назад
thx
@HATipsByLarry
@HATipsByLarry 3 месяца назад
No Problem
@ItsMeThinkering
@ItsMeThinkering 3 месяца назад
Great, thanks a lot. Looking forward to see the next step.
@HATipsByLarry
@HATipsByLarry 3 месяца назад
No problem, I am looking forward to getting this installed myself as i think it will help greatly with my bedroom/bed automations. 😀
@sygad1
@sygad1 3 месяца назад
fake bot crap content
@kevinw925
@kevinw925 4 месяца назад
Keep up the great work!
@HATipsByLarry
@HATipsByLarry 4 месяца назад
I have modified the ESPHome code for the mmWave sensor to allow for Radar zones. The code is to long to put in the description of this video so if you want the updated code please visit my Github Page github.com/HATipsByLarry/LD2410-Zones/blob/main/LD2410%20Code.yaml
@wjn777
@wjn777 3 месяца назад
Thanks for sharing your project. Do you have any details on how to go about configuring the zones on the LD2410C?
@HATipsByLarry
@HATipsByLarry 3 месяца назад
It's not to difficult to do, but I get ask this question often so I'm going to set up a github page to explain how to do this. There are a few steps involved if you want to do it right so give me a couple of days to take pictures and set it up and I'll add a link here for you and everyone else to access it 😂
@wjn777
@wjn777 3 месяца назад
@@HATipsByLarry Thank you
@HATipsByLarry
@HATipsByLarry 3 месяца назад
@@wjn777 Here is the github page as promised. github.com/HATipsByLarry/LD2410-Zones/tree/main If you still have questions after reading through the page then you can come back here and ask them or my discord channel 😀
@wjn777
@wjn777 3 месяца назад
@@HATipsByLarry Thank you very much
@HATipsByLarry
@HATipsByLarry 4 месяца назад
The automations and setup for the Rotary Encoder and button are to long to put in the video description. You will find those in my discord channel. discord.com/invite/9EkA5rFyCE
@LaTonghuali
@LaTonghuali Месяц назад
The link is not working (anymore) :\
@3ATIVE
@3ATIVE 4 месяца назад
Nice setup. 👍👍 Also... What!!! Actual voice-over! 😊😊
@HATipsByLarry
@HATipsByLarry 4 месяца назад
Yea my real voice lol
@indikaudayasaranga988
@indikaudayasaranga988 4 месяца назад
Thank you for the idea. Great
@HATipsByLarry
@HATipsByLarry 4 месяца назад
Your most welcome
@HATipsByLarry
@HATipsByLarry 4 месяца назад
As of the date of this post updates to the automations for the upgraded bed occupancy sensor system has been make. Check out my discord channel to get the new updated code discord.com/invite/9EkA5rFyCE Just as a FYI the new updated code now can tell when you are making your bed, this can trigger the sleeping helper to turn off as you are done sleeping which can in turn trigger your lights to turn on and any other task that you might want.