Traffic sensor triggers too much

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.

To throw another wrench. If I am stopped in traffic. Make it not send me something every 5 minutes. But still know I am out not at a store or restaurant. Or maybe forget about that till I start moving over 25 mph?

You spent a lot of effort describing issues you are having but I don’t see any description of what you would like to happen. What are you trying to automate and when would you like it to trigger?

Actually, that didn’t take that long. That is everything I have tried in the past two years. This is why I am asking for someone else’s thoughts. I guess I will just keep trying at it. I am just lost. I described in the whole paragraph what I am automating and triggers I have tried. Sorry to take up your time.

Triggers tied:

when changing from stationary to in-vehicle. Triggers every couple of seconds to minutes while driving. With a condition of speed. Didn’t help. Triggered more.

I then tried Speed which was a problem. It triggered every .001 mph. So it was announcing my automation every 10 secs.

What I would like to happen, Not triggered every 10 secs to 1 minute. AKA False triggers. I am having the same with my storm coming automation. In this one. I have tried multiple triggers. Still can not get it to give reasonable times. No just go off the handle.

What is it triggering? I stated above. Traffic delay is the main concern. Unless I have been driving for while. It comes back and tells me the distance, arrival time, and such. But that is not the concern. It is making this thing trigger better and not as many announcements. A 15 minute drive, it will announce about 45 to 50 times.

I understand that you are having trouble with triggers. What I am asking is: what do you want your automation to do, and when do you want it to happen?

I’m looking for you to make a statement such as:

I want my smart speaker in my house to announce how long until I arrive home, and I want the announcement to occur when I get into my car and start driving. I only want this announcement to happen when I am at work.

I can’t figure out what you are trying to do, so the above is just an example of the information I’m looking for you to provide.

It triggers a notification. If it is for work. It tells me if I am late, arrival time, and traffic delay time if it is over 5 minutes.

The one for home tells me traffic delay, arrival time and what ever else I want to add.

When to trigger? That is the hard part. That is the real hard part. Right now it triggers every 20 to 30 secs or more. I am thinking at least 5 minutes. Maybe that will stop the tons of triggered announcements. But in that 5 minutes, if traffic gets worse. Let me know. But if I am in stop and go traffic or sitting still. I dont need to know every 5 minutes. Unless something changes. But then if I am driving at a constant speed it can wait. But if it is a long drive. Let me know a couple times. It is mainly traffic delay over 5 minute delay or a all clear once in a while on a long drive. Once I get this working. The drive is going to be expanded via gps. Police notify.

alias: "MOBILE to work "
description: ""
triggers:
  - entity_id:
      - sensor.work_sm_n950u_direction_of_travel
    from: stationary
    for:
      hours: 0
      minutes: 0
      seconds: 15
    trigger: state
    to: towards
conditions:
  - condition: state
    entity_id: input_boolean.note_8_travel
    state: "on"
  - condition: state
    entity_id: sensor.sm_n950u_detected_activity
    state: in_vehicle
actions:
  - choose:
      - conditions:
          - condition: time
            after: "06:15:00"
            before: "07:15:00"
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
        sequence:
          - metadata: {}
            data:
              message: TTS
              data:
                tts_text: >-
                  Current time is {{ now().hour }}:{{ now().minute}}. You are {{
                  states.sensor.work_sm_n950u_distance.state }} miles.
                ttl: 0
                media_stream: alarm_stream
                priority: high
            action: notify.mobile_app_sm_n950u
mode: single