Тёмный

Integrating a Glade Air Freshener with Home Assistant Full tutorial Mod 

Home Assistant Tips By Larry
Подписаться 801
Просмотров 4,1 тыс.
50% 1

Integrating a Glade Air Freshener with Home Assistant Full tutorial
GitHub Page: github.com/HATipsByLarry/Glad...
Screw Driver Bits Link: amzn.to/4bmRnra
The 2.7 bit seems to be the right size you need for this project
Wiring Diagram: github.com/HATipsByLarry/Glad...
Parts List: www.canva.com/design/DAGIthVO...
Project Code: github.com/HATipsByLarry/Glad...
___ ☕ Buy Me A Coffee! ☕ __ www.buymeacoffee.com/hatipsby...
PayPal Tip Help the Channel: streamelements.com/larry67902...

Опубликовано:

 

6 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@HATipsByLarry
@HATipsByLarry 2 дня назад
This will be my next HA Modification Project so stay tuned ru-vid.commlos0h8tpqQ?feature=share
@metalosmrmmgtow916
@metalosmrmmgtow916 15 дней назад
Love it. Always great to see "fresh" ideas turned into functional HAss devices.
@HATipsByLarry
@HATipsByLarry 15 дней назад
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 11 дней назад
That's a world class pun!
@miguelavello7493
@miguelavello7493 4 дня назад
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 3 дня назад
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. 😀
@hshah1903
@hshah1903 14 дней назад
Good work, appreciate the efforts and a great way to fix the problem with foul smell
@HATipsByLarry
@HATipsByLarry 14 дней назад
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. 😀
@johnkoester6534
@johnkoester6534 10 дней назад
Great job! I’ve seen it done before but you made it look way easier. Thanks
@HATipsByLarry
@HATipsByLarry 10 дней назад
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.
@PatrickBulteel
@PatrickBulteel 10 дней назад
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 10 дней назад
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
@HATipsByLarry
@HATipsByLarry 15 дней назад
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. 😀
@patrickalbury8901
@patrickalbury8901 15 дней назад
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 15 дней назад
Thank You. Glad you liked the video. I will see what i can put together, once we get some others requesting it. 👍
@shawnmaker6974
@shawnmaker6974 10 дней назад
Awesome! It would be cool to put a pir sensor in there too.
@HATipsByLarry
@HATipsByLarry 10 дней назад
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
@HATipsByLarry
@HATipsByLarry 7 дней назад
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
@geoffreycoan
@geoffreycoan 9 дней назад
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 9 дней назад
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.
@3ATIVE
@3ATIVE 15 дней назад
Nice 👍👍
@HATipsByLarry
@HATipsByLarry 15 дней назад
Thanks Dave, glad you liked it. Want to see how you did yours soon 😀
@JackF1
@JackF1 14 дней назад
Awesome project, id love to see the code, new subscriber
@HATipsByLarry
@HATipsByLarry 14 дней назад
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 😀
@JonnyFix
@JonnyFix 9 дней назад
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 9 дней назад
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 9 дней назад
@@HATipsByLarry Thanks!
@HATipsByLarry
@HATipsByLarry 8 дней назад
@@JonnyFix No Problem, glad to help
@Dylan_Lanckman
@Dylan_Lanckman 14 дней назад
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 14 дней назад
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 14 дней назад
@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 14 дней назад
@@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 14 дней назад
@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 14 дней назад
@@Dylan_Lanckman Well now you know for next time 😀
@akasha1337
@akasha1337 12 дней назад
Can this powered by lithium battery it will last long?
@HATipsByLarry
@HATipsByLarry 12 дней назад
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 12 дней назад
@@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 12 дней назад
@@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.
@carljoshuasandiego8354
@carljoshuasandiego8354 День назад
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 День назад
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.
@carljoshuasandiego8354
@carljoshuasandiego8354 День назад
@@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 День назад
@@carljoshuasandiego8354 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.
@carljoshuasandiego8354
@carljoshuasandiego8354 День назад
@@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 День назад
@@carljoshuasandiego8354 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
@CrazyAngelfire
@CrazyAngelfire 6 дней назад
my bad i didnt see the list lol
@HATipsByLarry
@HATipsByLarry 6 дней назад
No problem. 👍
Далее
Home Assistant's Year of the Voice Is Over
8:24
Просмотров 85 тыс.
Макс Пэйн - ТРЕШ ОБЗОР на фильм
47:02
REFILL YOUR WALL PLUGINS! DOLLAR TREE HACK!
4:20
Просмотров 387 тыс.
FEBREZE SCENTED DOLLAR DIY PLUG-IN REFILLS
11:14
Просмотров 150 тыс.
Mailbag  Monday 193
14:08
Просмотров 5 тыс.
WLED Controller Give Away
6:16
Просмотров 224