If you want to learn more about Home Assistant, this series will help you out kzitem.info/news/bejne/r4er1316sHxkZWk
@chrisbird2259
Жыл бұрын
Great Video, really useful on the start of my NodeRed Journey to migrate all automation away from HA into NR. Thanks!
@TechTutorialsDavidMcKone
Жыл бұрын
Thanks for the feedback, much appreciated I've used a lot of Home Automation solutions over the years but to me, Node-RED gives HA a major advantage Franck has made a lot of contributions to HA but I think this one is just so useful
@technithusiast
Жыл бұрын
I like your approach. Im gonna try out the stop timer node
@TechTutorialsDavidMcKone
Жыл бұрын
It's a very useful node I think Seems odd that it doesn't get used much, but that's one of the reasons it was removed as a default node
@raymondsiew1696
7 ай бұрын
thanks for the video. Is the away to implement a bypass the automation if a switch is trigger until it is being reset?
@TechTutorialsDavidMcKone
7 ай бұрын
I would think there are different ways, but maybe you could place a final check in the sequence before an action is carried out If that would stop the action, you could then start a timer event which when it ends brings things back to the check node So it would keep cycling around until for instance there is a reset
@raymondsiew1696
7 ай бұрын
Thanks for getting back, I found away to bypass it by implementing set flow.active @@TechTutorialsDavidMcKone
@njord19771
Жыл бұрын
hi thanks for your video!! i have another question i work with 2 espresence 1 says if i am "home" or not another says if i am at the "gate" so my gate will open. now when I'm in the house "home" then my "gate" sometimes picks me up and opens. can I write a flow for this so that when I come from "home" the "gate" doesn't open? thank you very much
@TechTutorialsDavidMcKone
Жыл бұрын
Not sure if you're running these independently but normally the idea for espresence is for them to work in unison so you're only in one location In that situation I would suggest editing the presence device settings first and reducing the maximum distance under Filtering as an overlap results in a device bouncing from one location to another The system can be slow to react to a change of location but that filter can still help Otherwise you can add a condition to check before opening the gate E.g. the current state node can check the status of an entity That might be used in the rule to check if you're at home and only continue and open the gate if the result is false
@njord19771
Жыл бұрын
@@TechTutorialsDavidMcKone thanks for your help. when I'm inside and so "home" to walk to my gate I have to do about 30m. So the 2 espresense are far apart. The problem is that when I walk from "home" to our trash can I get into the range of "gate" and so the gate opens. So I would like to say to home assistant when I come from point "home", the gate should not open.
@TechTutorialsDavidMcKone
Жыл бұрын
@@njord19771 It sounds like you'll need a sequence to check when the state changes to "gate" As far as I'm aware, you can have that pass on previous state information to the next node So that can then check if the previous state was "home" and do nothing, otherwise it can pass on to the next node which will open the gate Having said that, I tend to record states in boolen helpers out of habit from previous controllers I used, so when something changes I "flip the switch" for the corresponding helper and use those helpers to make my decisions The last update to Home Assistant introduced Events mind so that could be something to look into
@njord19771
Жыл бұрын
super thnx!!!! i will do!!@@TechTutorialsDavidMcKone
@MorcegolasMc
Жыл бұрын
Hello! Thanks for sharing your knowledge with us. On minute 11:11 you share a list of Helpers, lets focus on this 3 David_Home, David_Kitchen and David_Study. Kitchen and Study you explained how to create in Node-Red, but David_Home you didn't explained. Can you share with me what was the rules you used for that? Thanks.
@TechTutorialsDavidMcKone
Жыл бұрын
That helper doesn't relate to this video, which is about room occupancy It's from when I was testing out Geofencing to automate things when I left the local area and to then start some rules for when I was heading home I don't really need it now so it wasn't completed
@MorcegolasMc
Жыл бұрын
@@TechTutorialsDavidMcKone thanks.
@zyghom
Жыл бұрын
adding to the occupancy/presence sensing: unless we all have sensors under the skin, nothing really works properly - everything else is ... estimation who is where - I never take my phone from the desk to any other room. or: high frequency microwave sensors in every place in the house - even PIRs are not as good to solve it or... cameras in every place with proper AI motion/person detection
@TechTutorialsDavidMcKone
Жыл бұрын
Yeah, there are just too many variables and situations to deal with I'm holding off with mm wave detectors until the big name manufactures start selling them into the country as they'll need to go through healthy & safety compliance checks Besides, I want to know who is in a room so I can direct announcements for instance to the correct speaker and those sensors can't do that But in the end it's really going to come down to cameras, facial recognition and AI
@zyghom
Жыл бұрын
@@TechTutorialsDavidMcKone with the cameras in every room I was rather joking - there are rooms in my house I would NOT like to have cameras ;-)
@TechTutorialsDavidMcKone
Жыл бұрын
@@zyghom You can put them on an isolated, internal feed so it's not that bad But I'm not fond of the latest robot vacuums since they have cameras and connect to the Internet
@zyghom
Жыл бұрын
@@TechTutorialsDavidMcKone let me clarify: I am not ok with camera being in every room - not that cameras are in my network ;-)
@zyghom
Жыл бұрын
good, I approached lights timer in a bit different way: 1- motion sensor starts the timer (when motion detected) - i.e. 3min 2- when timer starts, light is turned on 3- when timer expires, light is turned off 4- when someone left the room before 3min timer still runs to avoid that someone just moved INSIDE the room out of motion sensor zone 5- every time motion sensor detects motion, it starts/restarts timer - 3min restarts this way I avoided flickering of the light my motion sensor once motion is detected, goes to sleep for 30s, so next measurement cannot be before 30s expired (that is not the case when motion is off - then motion detection is immediate) if timer is i.e. 3min (in some rooms I have 60s only) then the longest time light is on is 3min (or 60s respectively) checking daytime is tricky - how about your curtains closed during the day? you want the light even at noon also: how about visiting the kids' room in the night to see if they are sleeping nicely? you don't want light to turn on so there are many things to consider and actually it ends up with per room rules I made automation to turn off motion detection (boolean) during the "sleep time" to avoid light on in the night when kids sleep - the automation is only as addition to the normal switch on the wall - if need be you can always turn on the light using the physical switch for the problem you describe at 10:14 - I had the same issue but adding 100ms delay before lux node is enough to have proper measurement in HA AFTER motion has been detected - 100ms delay for turning on the light is seriously speaking irrelevant to the game ;-) in my case motion and lux sensors are on the same device so both measurement are sent at the same time to HA - 100ms is only to allow HA to update its database respectively to avoid motion being updated while lux still using old value at 10:40 - I am not getting why you are checking if there is a light outside - what matters is the amount of light in the room where the light is needed, right? again: curtains or whatever - outdoor full sun, indoor complete darkness - or what am I missing here? ;-)
@TechTutorialsDavidMcKone
Жыл бұрын
Interesting feedback, thanks for sharing I'm not sure what else I can do for the LUX sensors I have I'm using the Aotec Multisensor 6 and have them mains powered otherwise they'll chew through batteries and the reporting would be too slow Even then they'll only check if the light level has changed every 10 seconds and you can't alter that You can configure them to report the light level every 1s but it makes no difference as it seems the level isn't being checked as often It's just bad luck to walk into a room just as the lights are being turned off Motion is then detected and so the rule kicks in to check the light level The problem is it's going to be another 20s or more before the light level in HA is updated As for the outdoor light sensor, I'm trying to cut the electric bill, even if it's just by 1 cent, lol My curtains are automated and open at sunrise, although some rooms just have shades which let in enough light even if closed If I go into a room and the sun isn't up yet, the lights will turn on There are times during the year when I'll still be there when the sun comes up and for some time afterwards In which case the indoor lights no longer need to be on So I use the outdoor light sensor to trigger a rule to turn the lights off once it's bright enough outside
@zyghom
Жыл бұрын
@@TechTutorialsDavidMcKone with regards to 1 cents/penny cuts I agree - my last months bills for gas and electricity are above 700 GBP ;-( with regards to light and motion sensor: all my sensor are self produced - if you are into it, you can check my project: "ESPnow-MQTT-HomeAssistant-Gateway" - all are battery powered and I am ok with 1 time charge for around 6 months - the idea is: 1- temperature/humidity/light/motion sensors provide data to HA every 3 minutes - then device goes to sleep for next 3 minutes OR next motion detected 2- in case motion is detected, all above sensors provide data to HA as well as motion sensor - then device goes to unconditional sleep for 30s - then it wakes up and provides all measurements again including motion - if no motion - next wake up in 3min or on motion, if yes motion then again sleep for 30s 3- every time motion is detected (point 2 above) the light sensors sends the data together with motion - so anytime you have motion triggered you know the real light condition the devices I am using have the time to deliver to HA around 200ms - of course if they were always ON it would be even less - around 100ms but I am ok with 200ms delay and 6 months on battery ;-)
@TechTutorialsDavidMcKone
Жыл бұрын
@@zyghom Thanks for the info. Looks like DIY is the better way to go then I could live with 6 months as I have motion sensors costing £5 per battery change and they don't last long, hence why I went wired with most of them
@zyghom
Жыл бұрын
@@TechTutorialsDavidMcKone I have seen Aqara sensors that are Zigbee and they can do long time - someone said 2 years. But, I have not seen "all in one" meaning usually these devices provide separate measurements. And as your video perfectly points this out: you need both: motion AND light sensors to provide data measured AT THE SAME time - not that light is 15s old or so. In this case you either look for the multisensor devices or DIY.
@zoldehuba1519
Жыл бұрын
Just not accurate with sunrise/sunset times
@TechTutorialsDavidMcKone
Жыл бұрын
Is the clock on the computer up to date? I haven't had any problems myself with sunrise/sunset but you can use offsets that might help
Пікірлер: 28