Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107714

Traffic sensor trigggers to much

$
0
0

I don’t have anyone close to throw ideas at. Here is what I have then what I think needs to happen but can’t figure out the solution.

I am using HERE integration with my phone and my house or my work. I am using that cause it is better with no traffic and with traffic sensors. I also created a sensor that tells me what the delay time is. So I can use that in an automation. Along with voice announcements.I do have proximity running so I can make it more central towards work or towards home.

So the work automation is triggering off my phone going from stationary to in_vehicle. Condition is only during the week between 6:30 and 7:30 and if I am at a certain speed.
So the problem here is when I am in stop and go traffic. It triggers every time I stop and start. But timing is going to be hard to do. More in a minute.

So the on home automation is currently turned off cause it triggers constantly. For some reason, it keeps going from stationary to in-vehicle while you stay at a constant speed. So then I tried speed but I didn’t put a time on it. This made it worse.

So here is my idea. Not sure if I need to run this in parallel. My idea is if I am in stop and go traffic. It doesn’t trigger until after like 5 minutes. But if in that 5 minutes. The traffic delay increases, don’t care about decreasing, it will let me know. But at the same time if I can drive down the road and maintain a constant speed for a variable amount of time. So per say I am driving 35 to 70 mph for 10 minutes or more. I don’t need an update unless traffic delays changes higher. Or maybe if I am driving for hours. It comes on and tells me after 30, 45, 1 hour or may be long, that everything is good and you’re on track. I am thinking that both needs a condition that templates the last triggered of the automation for 5 minutes with an or statement that includes an increase in traffic delay. But it needs to know if it changed or if it is the same. So what would the trigger be? The speed? numeric statement with an above statement of 25 miles per hour? If I use speed and it varies, it keeps triggering. I can not use the last triggered for the automation above. That would mess that part up. But it does need to trigger often to keep things going. But then if I am in stop and go traffic (Traffic Jam) It doesn’t need to always give me information at 5 minutes. But again if traffic delay increases.
So let me throw a wrench in it. If the directions change. It could also trigger off that on trips. I don’t always use Maps because I know where I am going. But I need to know what is up ahead. It is working now, just way too many triggers. Example today, I got 5 announcements in less than 45 seconds. I hope this makes sense. I don’t want it to be annoying. But I don’t want it to miss something because of time. I think I might have the wrong trigger?

Not sure what I need. I thought I would reach out here to see if someone else could help me brainstorm this. No one here in the area does anything like this.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>