Тёмный

One simple automation. One epic creative battle. 

Technithusiast
Подписаться 14 тыс.
Просмотров 3,3 тыс.
50% 1

In my smart home, I implemented the Wasp in a box automation using Node Red in #homeassistant and now i'm going to test it against the battle-harden version from AlexanderBabel. If you would like to see me battle other Smart-Home Creators let me know in the comment 😁
You can find all the automations here: technithusiast.com/chaperone/...
You can also check out Ben Jone's OXRS Project: oxrs.io
Enjoying the content? Buy me a ☕️: bmc.link/mmontaque
Get access to exclusive videos and Discord
/ @technithusiast
Special Thanks to:
AlexanderBabel and Ben Jones
Gear I used for this video
- Sony A7S iii: www.amazon.com/Sony-Mirrorles...
- Aputure Light Dome: www.amazon.com/gp/product/B08...
- Aputure Amaran 200X S: www.amazon.com/gp/product/B0B...
- Neewer Heavy Duty Light Stand: www.amazon.com/gp/product/B08...
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting me so I can continue to provide you with dope free content!

Наука

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

 

23 апр 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@technithusiast
@technithusiast 2 месяца назад
Which creator would you like to see me showdown?
@Dqrnan
@Dqrnan 2 месяца назад
The Hook Up
@MartinHiggs84
@MartinHiggs84 2 месяца назад
Paul Hibbert
@Hollaback_Youngn
@Hollaback_Youngn Месяц назад
Here’s how I implemented the “Wasp in a box” automation in HomeKit using the Aqara FP2. When bathroom door opens turn on bathroom light When the bathroom FP2 detects occupancy turn on bathroom light (For when the bathroom door is open and someone walks inside) When no occupancy detected in bathroom turn off bathroom light When bathroom door closes and no occupancy detected turn off bathroom light
@technithusiast
@technithusiast Месяц назад
lol it’s true that this automation become so much easier when you use the Aqara FP2. The the device requires an outlet/constant power which isn’t available in closets or sparse in bathrooms.
@tedev
@tedev 2 месяца назад
well i prefer Alexander's solution because the simplicity is 100% for anyone, but i like the flexibility of node-red. what i love is the fact that there are instructions for the actual script of your node-red example which means that we can finally replicate and i have to say that your video editing skills are getting better and better
@technithusiast
@technithusiast 2 месяца назад
Thank you! I agree that Alexander's solution is very accessible for everyone. For anyone not familiar with node-red i would suggest it. The only thing I wish could change is that fact you have to make 2 helpers for every room you want to use this automation for (but this may be more of a flaw of home assistant rather than the blueprint).
@SumnerBoy12
@SumnerBoy12 2 месяца назад
Thanks for the shout out Michael! Glad you got some value from my little sub-flow. Loving your content, keep up the great work.
@technithusiast
@technithusiast 2 месяца назад
Glad you like it and thanks for the great automation!
@FabiiFK94
@FabiiFK94 2 месяца назад
Hey dude I realy like your Channel because it is diffrent to all the other Smarthome Channels. In a positiv sense! I like a lot of the others to, but you going like the extra mile. :) Furthermore I always thought I am the only one who is thinking about PIR + Doorsensors. Turns out there is a term for that :D. I will use that for sure when I move over to my new house.
@technithusiast
@technithusiast 2 месяца назад
Hey I’m really stoked you enjoy my content. I’m just doing what I find interesting and taking viewers along for the ride 😁 I have quite a few more exciting videos in progress so check back often 👌🏾
@1983yuval
@1983yuval 2 месяца назад
Amazing - thanks to you I am improving my system
@technithusiast
@technithusiast 2 месяца назад
I’m glad you enjoyed the content! I hope this helps!
@shiPham0705
@shiPham0705 2 месяца назад
Love it. I'm starting with HA this week and am trying this wasp in the box here.
@technithusiast
@technithusiast 2 месяца назад
Good luck! HA has a slightly higher learning curve that HomeKit and other solutions but its extremely flexible and fun 😁
@fw1engineer
@fw1engineer 2 месяца назад
I just use mmWave - have never had issues after tuning
@technithusiast
@technithusiast 2 месяца назад
mmwave will offer superior results. It is essentially the right tool for the job. This technique is for those who want to maximize the PIR sensors they own or would like to automate areas where mmwave sensors can't go.
@zsqduke
@zsqduke Месяц назад
which one do you recommend?
@CamiloSperberg
@CamiloSperberg 2 месяца назад
Simplicity is relative? I mean: I didn't understand how node red does what it does (as in I couldn't understand the flow at a glance) but I did like how HA's blueprint simplified everything to helpers, makes it much more easy to understand and it just makes a lot more sense to me since they're basically working as flags, and they make it more adaptable and more dynamic. As for the idea itself, I like it. I did some similar stuff before I discovered presence sensors such as the hlk-ld2450 and alike, which simplifies it a lot since there are less devices needed, but for a bathroom it is perfect: turn on the light when door is open and set the flag based on pir trigger based on when the door was closed. Build in a failsafe (might be 15 or 30 minutes depending on environment and typical usage) and you're all set :) now I can use a single ESP32 device which uses presence detection outside the bathroom and pir + magnetic switch inside it. 1 phone cable (4 wires) to conceal will be very easy!
@technithusiast
@technithusiast 2 месяца назад
Simplicity is relative! I definitely agree with you on that. I would love to get my tinkering skills up to build custom sensors like that. I know I could, I just don’t have the time at the moment 😪 But i totally get where you’re coming from for simplicity. I didn’t explicitly mention it in the video but the way we would rate these depends on which automation system you’re familiar with (NR vs HA). To be a bit more objective I treated it like I would at work during our Architect Office Hours. The biggest thing holding the HA Blueprint back was that at scale I found it cumbersome to maintain. Image you have 5 rooms you want to implement this in. For every room you need to create two helpers ( date and the Boolean) and 2 automations (one from the blueprint and one to actually change the lights based on the toggle. That mean you would need 10 helpers and 10 automations compared to NodeRed which would only need 5 nodes (1 for each room). One could possibly reduce the HA automations down to 6 with clever scripting but you would always need the 10 helpers and at that point the simplicity train is long gone.😆 I would recommend this script if you’re in a small apartment or a 3/2 starter home.
@MAMDAVEM
@MAMDAVEM 2 месяца назад
Very interesting I presume that this problem is solvable, and simply, by using an occupancy sensor (milimeter wave) rather than motion sensors?
@technithusiast
@technithusiast 2 месяца назад
Yup! Astute observation. mmWave is the best tool for controlling lights based on occupancy. it’s not always possible though as it typically requires constant power (like an outlet). This automation helps you squeeze better utility and user experience from cheaper standard sensors like PIR and contact sensors which can easily go in areas like bathrooms and closets
@DennisSchmitz
@DennisSchmitz 2 месяца назад
Maybe I'm getting the whole concept wrong? What I did in my bathrooms is: Motion detected -> Lights on No more motion detected for a minute: -> Lights off but only if door is opened. Works fine here, since my bathrooms don't have any windows and I keep the door slightly open for ventilation after using (also lets the extractor which is automated using motion/door and humidity sensors, catch more fresh air that way). Still wondering what the advantage of the Wasp in a Box Automation would be for me?
@PatrickBulteel
@PatrickBulteel 2 месяца назад
That is basically the concept of wasp in a box.
@andersonimes1892
@andersonimes1892 2 месяца назад
Your confusion is reasonable. When coming up with automations, lots of people kind of start from scratch with how to implement it with the sensors they have. You backed into a similar implementation with your two sensors, but you probably had to think about it a bunch and maybe had some trial and error to get there. Once enough people do the same thing, it's useful for someone to give that strategy a name and have people use the best practice. That's what you are seeing here.
@technithusiast
@technithusiast 2 месяца назад
Yup. there's nothing wrong with your implementation and just as @andersonimes mentioned, it's just a name for a general pattern of behavior. For my use-case, I have a 3-year old that will leave lights on with doors open or closed so having the lights turn off even when doors are closed was necessary for me. In the majority of cases, most people won't close the door to an empty bathroom with the lights on so what i have could be considered over-engineering.
@DennisSchmitz
@DennisSchmitz 2 месяца назад
​@@technithusiast That makes perfect sense, definitely have to think about a solution for the lights to turn off again even if the door was closed outside the room.
@mhaka621
@mhaka621 2 месяца назад
Great video.... I'm currently Doing battle with a wasp-in-a-box solution for a room where the heat vent can trigger the motion sensor espicially when door is closed... Going to try your solution to see if the edge-case is captured.
@technithusiast
@technithusiast 2 месяца назад
Very interesting. Is there a way to point the motion sensor more towards the center of the room or closer to the door? If the heating vents trigger the motion sensor then you may require a different sensor like the mmwave. The downside is that the FP2 requires constant power so it makes it harder to use in smaller bathrooms
@mhaka621
@mhaka621 2 месяца назад
@@technithusiast I’m currently playing with the idea of building a sensor based on a “moded” smart light switch that can incorporate a mmWave sensor. The low voltage circuit should be able to power the mmWave sensor. The goal would be for everything to fit into a standard decora sized outlet… and it will be positioned at the ideal height for someone standing or sitting.
@danbemowski3014
@danbemowski3014 2 месяца назад
Couldn't you do something like this with a Bayesian sensor?
@technithusiast
@technithusiast 2 месяца назад
I haven't tried the bayesian sensor, I guess you could use it but it seems like its trending into over-engineering-territory. I would be curious to see how someone implements this and explain their experience using sensor for this use case.
@N1ghtR1der666
@N1ghtR1der666 2 месяца назад
I feel like the wasp edge case would be reduced if it only considered you in there permanently if it dects movement for some customizable amount of time, then if hte door is closed then the normal assumption can be made
@technithusiast
@technithusiast 2 месяца назад
Can you elaborate further?
@N1ghtR1der666
@N1ghtR1der666 2 месяца назад
@@technithusiast well note I am coming into this very late in the game and you've been working with automation systems a long time so apologies if am talking about or missing things obvious to you, but as a programmer I would consider a logical arguments of importance pyramid, for example. (assuming control of things like pet ownership or false positives in the sensors) 1: IF movementDetected THEN roomSystems ON for X seconds (this ensures that it will be noticed in the room at some point not matter what), 2: IF doorClosedDuration >= X seconds AND movementDetected then roomOcupied is TRUE, 3: if DoorOpen then roomOcupied is FALSE, With this logic if you enter a room, firstly the system will turn on as soon as you enter as that is primary logic and each time you move it will reset its timer that you can customize, now if you leave before the door closes or don't move in the room after it's closed then the system will turn off due to the timer running out and the second check not being true. the second check rules out false OCUPATION of a room with the dooClosedDuration check where it wont be true untill movement is detected AND the door has been closed for X time, because movement cannot occur in a closed room (assuming no false positives). there will be cases where you somehow manage to stay perfectly and permanently still in the room immediately after entering but I think if your sensors are well placed then this is unlikely, if you leave the door open then there is no way to determine permanent Occupation of a room so you must configure the movementDected system ON duration accordingly. All that said you could compress that logic a lot but I think it covers the edge cases you mentioned, correct me if I am missing something important
@N1ghtR1der666
@N1ghtR1der666 2 месяца назад
​@@technithusiast (Sorry if these replies double up but RU-vid lost my reply I think) I am coming into this late and you have been working with automation a long time it seems so forgive me if I miss or talk about things obvious to you but as a programmer I would break the problem down into a logical hierarchy of importance to solve first, such as what MUST be true, like if there is movement then someone is in the room and the system must turn on, the wasp in a box logic and its edge case always come secondary to this. Below is some rough sudocode to cover what I think is all of the cases, and hopefully its written plainly enough to get the gist : ###START # System always on when motion detected and starts a runtime timer called "systemOnTimer" IF movementDetected THEN systemOnTimer.Reset AND systemOn = True; # Starts the doorClosedTimer ONLY if the timer isn't already running (so only once when the door is first closed) IF doorClosed AND doorClosedTimer.Running == False THEN doorClosedTimer.Start; IF doorClosed == False THEN doorClosedTimer.Stop; # Stops the timer when the door opens # This sets the room to occupied if there is movement after the doorClosedTimer exceeds the buffer allowed IF doorClosed AND doorClosedTimer.Time >= doorClosedBuffer AND movementDetected THEN roomOcupied = True; # The room cannot handle full occupation with the door open as there are too many problems IF doorClosed == False THEN roomOccupied = False; # Turns off system ONLY if the room is unoccupied AND the systemOnTimer exceeds the buffer time allowed IF systemOnTimer.Time >= systemOnBufferTime AND roomOccupied == False THEN systemOn = False; ###END The edge case of someone quickly entering and exiting is covered by the door closed buffer where movement must be detected after some determined buffer duration of the door being closed to assure the room is occupied. With this logic the light will always turn on when detection is triggered and if you sitting in a closed room then after detection with the door closed it will leave the light on untill you open the door and no detection is present for X duration. the "systemOnBufferTime" and "doorClosedBuffer" would need to be tweaked to match your real world conditions but if you sensors are good and placed well, then I cant think of many reasonable situations where this would fail. basically the only fail point I can think of is if you stand completely and permanently still in a room with the door open, but that goes against the wasp in a box thing anyway and you can just adjust the "systemOnBufferTime" to a value that matches your needs and likely sensor positives.
@N1ghtR1der666
@N1ghtR1der666 2 месяца назад
​ @technithusiast (Sorry if these replies double up but RU-vid lost my reply I think) I am coming into this late and you have been working with automation a long time it seems so forgive me if I miss or talk about things obvious to you but as a programmer I would break the problem down into a logical hierarchy of importance to solve first, such as what MUST be true, like if there is movement then someone is in the room and the system must turn on, the wasp in a box logic and its edge case always come secondary to this. Below is some rough sudocode to cover what I think is all of the cases, and hopefully its written plainly enough to get the gist : ###START # System always on when motion detected and starts a runtime timer called "systemOnTimer" IF movementDetected THEN systemOnTimer.Reset AND systemOn = True; # Starts the doorClosedTimer ONLY if the timer isn't already running (so only once when the door is first closed) IF doorClosed AND doorClosedTimer.Running == False THEN doorClosedTimer.Start; IF doorClosed == False THEN doorClosedTimer.Stop; # Stops the timer when the door opens # This sets the room to occupied if there is movement after the doorClosedTimer exceeds the buffer allowed IF doorClosed AND doorClosedTimer.Time >= doorClosedBuffer AND movementDetected THEN roomOcupied = True; # The room cannot handle full occupation with the door open as there are too many problems IF doorClosed == False THEN roomOccupied = False; # Turns off system ONLY if the room is unoccupied AND the systemOnTimer exceeds the buffer time allowed IF systemOnTimer.Time >= systemOnBufferTime AND roomOccupied == False THEN systemOn = False; ###END The edge case of someone quickly entering and exiting is covered by the door closed buffer where movement must be detected after some determined buffer duration of the door being closed to assure the room is occupied. With this logic the light will always turn on when detection is triggered and if you sitting in a closed room then after detection with the door closed it will leave the light on untill you open the door and no detection is present for X duration. the "systemOnBufferTime" and "doorClosedBuffer" would need to be tweaked to match your real world conditions but if you sensors are good and placed well, then I cant think of many reasonable situations where this would fail. basically the only fail point I can think of is if you stand completely and permanently still in a room with the door open, but that goes against the wasp in a box thing anyway and you can just adjust the "systemOnBufferTime" to a value that matches your needs and likely sensor positives.
@PetervanHofwegen
@PetervanHofwegen 2 месяца назад
Did you ever consider the HACS intergration related to this? It just creates a wasp sensor. Which should score rather high on the flexibility score.
@technithusiast
@technithusiast 2 месяца назад
Nope never considered looking in HACS 🤔. I'll take a look.
@PetervanHofwegen
@PetervanHofwegen 2 месяца назад
@@technithusiast I really like it since it just creates a binary sensor for the "Wasp". The repository hasn't been updated in 3 years but to pull a "Hibbert"... "it just works!"
@technithusiast
@technithusiast 2 месяца назад
lolol 😂
@fredamn76
@fredamn76 2 месяца назад
What is it called?
@PetervanHofwegen
@PetervanHofwegen 2 месяца назад
@@fredamn76 wasp sensor (because what else)
@N1ghtR1der666
@N1ghtR1der666 2 месяца назад
why do you have to use all aquara sensors for node red? or did I misunderstand?
@technithusiast
@technithusiast 2 месяца назад
Thanks for the question and I’m happy to clear it up! Aqara’s app allow you to create automation but it only care about its own product. So even though I can very easily create the WIAB automation in Aqara’s app it’s not helpful if I have sensors from other brands.
@fredamn76
@fredamn76 2 месяца назад
Any idea on why i get the error "msg : error "ConfigError: Entity ID is required" then using your Node-RED subflow? I change entity-ids to mine in the configuration.
@technithusiast
@technithusiast 2 месяца назад
Nope. Node Red errors are a bit cryptic. You will have to do some manual debugging to narrow it down. ConfigError sounds like you may have a problem with your HA integration with NR.
@JesseG2573
@JesseG2573 2 месяца назад
Thank you Thank you Thank you!!!! my spare bath had just a motion sensor with a 2-minute delay... I've implemented this and now the WAF has me in boss mode. 🤣🤣
@technithusiast
@technithusiast 2 месяца назад
Noice 😎😎 Glad this helps out! 😁
@JesseG2573
@JesseG2573 2 месяца назад
@@technithusiast subscribed
Далее
Aqara M3: What went wrong?
17:28
Просмотров 7 тыс.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
A NEW kind of Smart Home Dashboard 🥶
20:49
Просмотров 5 тыс.
You’ve Never Seen WiFi Like This
20:43
Просмотров 620 тыс.
Why Home Assistant is the FUTURE of Smart Homes
11:31
Просмотров 163 тыс.
It’s Been a Good Run, Phone Providers.
26:31
Просмотров 4,2 млн
Adobe is horrible. So I tried the alternative
25:30
Просмотров 570 тыс.
12 Of The Best Smart Home Automation Ideas!
20:14
Просмотров 308 тыс.
Rabbit R1: Barely Reviewable
19:53
Просмотров 8 млн
23 AI Tools You Won't Believe are Free
25:19
Просмотров 1,9 млн
I Built a PC that Makes Coffee
23:16
Просмотров 1,6 млн
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 115 тыс.