I am having a few issues. So I have the home assistant app on my phone and my wifes phone. Which has made everything more stable. But here is what I am trying to do. But I think I am making it more difficult then it really needs to be. ( Being a nerd LOL)
When I leave. I have the house alarm set. same with my wife. But this is when I run in to trouble and normally doesnt work.
When I leave. and it is daylight. but the tv is not on and there is no motion in the house. Then alarm. If I leave and there is motion in the house don’t arm if my wife is on the network. if there is no motion but the TV is on don’t arm. But if I am home and she is away and it is above horizon. It will still arm no matter how I configure it.
I am wanting to get this figured out for my morning sleep alarms. It there is motion between two sensors. It will shut the alarm down.
So I have been trying to get all this in one automation. would it be better to have separate automations? Is more automations better then one? Is it better to do this in node-red? I am all confused cause I can not get it to work. Once I start adding my wife in it goes to the pots.
One thing I’d suggest is that you stop trying to code the complex “is the house occupied” logic in every single automation.
Have (probably two) automations that set and clear an input boolean that indicates if the house is empty, or occupied. Then you can use the state of that in your other automations.
Another thing I always suggest is to start by writing one automation per end result. Don’t try to write one automation to arm and disarm the alarm, write two. Later you can collapse that once you know more, but starting with massive complexity makes life harder
So we went out of town for the holiday. Why I bring sunrise and sunset in. We have wonderful neighbors in our area. So if there is no activity in the house and it is dark. I want the house alarmed. If there is something going on. I would love to have the house alarm going off and waking me up. versus it not being on and finding out when it is to late.
I have to put it all back together. I destroyed it when it would not work correctly. Like right now I have my wife and I as a trigger. It picks me up but not her. I will work on getting things posted.
For what I am trying to do. house occupied will not work for all automations. There is a lot of times that she is home and I am not. She will take naps. So if I the alarm is set. I have home occupied on when she is there. When I get home. It will not disarm the alarm when I come home.
So you are in town and have good neighbors, sure we can add a neighbors sensor as a condition.
Or does it matter if you are in town or in a rural area too?
My hassio crashed again. I am redoing everything again. I live in the city of Hamilton. Since covid. it has been pretty rough. I have to watch my house like fort knocks. This is kind of why the home occupied will not work. I need it to do different thing for me and my wife at different times. when one of use is not home or if both of us is home. Once I get this back up. I will re post. My nodered quit working when I reloaded. A lot of times if I have two triggers it will only detect one no both. It is very weird.