Waze Travel Time - Configuration of Multiple Sensors

I have seen several people post stating that they can have multiple destinations configured in the Waze Travel Time Integration. Does anyone spot what I may be doing incorrectly to achieve the same? Here is my attempt history and results:
First, installing the integration, mandatory option configuration:


That gives me a success install message:
t5
Which in turn give me a non editable sensor entity:

Following leads of other posts, I have two Sensors added to my configuration.yaml file as follows:

default_config:
sensor:
  - platform: waze_travel_time
    origin: xx.xxxxxxxxxxxxxx, -xx.xxxxxxxxxxxxxx
    destination: xx.xxxxxxxxxxxxxx, -xx.xxxxxxxxxxxxxx
    region: "US"
    name: traveltime1
    vehicle_type: car  
  - platform: waze_travel_time
    origin: xx.xxxxxxxxxxxxxx, -xx.xxxxxxxxxxxxxx
    destination: xx.xxxxxxxxxxxxxx, -xx.xxxxxxxxxxxxxx
    region: "US"
    name: traveltime2
    vehicle_type: car  

After multiple restarts and testing everything I can possibly think of…
my only clue that something is wrong in my configuration is in the error log:

Any ideas?

You need to setup the whole integration two times.
Add the first one. Configure it.
Go back to config.
Add the second one. Configure it.

No need for yaml written sensors…

Result:

Thank you for the reply. No matter how many times I go into the integration, it gives me the same result. I am not able to select, or edit the information. Previously, it was all configurable in yaml sensors using the platform interface. My understanding, this was taken away in Home Assistant 2022-2. It may only be opinion, but UI edits and configurations are nice; however, you really don’t have control until you have a chunk of yaml associated. … Just wondering what you meant by “setup the whole integration two times”

Check the document. I use the template called out in the docs and the input select. I use a card with a pulldown to get the time to any location I called out. If you have difficulties figuring this out, I can post my yaml code.

Don’t edit your existing Waze configuration.
Add another instance of the integration with the next configuration using the “Add Integration” button.

1 Like

@bschatzow, I believe the document you are referring is the same one I was referencing. I appreciate your offer to post associated yaml code. In my quest to everything I have accomplished, reviewing posted yaml has given me more information than any documentation could ever do. Yes, by all means, please post your example(s) and I will go from there. Thanks!!

Exactly that.

@bschatzow, can I talk you into posting the yaml you were talking about earlier?

My Input select yaml.

input_select:
  destination:
    name: destination
    options:
      - brandywine
      - costco
      - Gym
      - kessler
      - lidl
      - monmouth_mall
      - ShopRite
      - shoprite_shrewsbury
      - walmart_fre
      - walmart_nep

template:
  - sensor:
     - name: "Destination address"
       state: >-
          {%- elif is_state("input_select.destination", "brandywine")  -%}
            3 Meridian Circle, Colts Neck, New Jersey 07722, USA
          {%- elif is_state("input_select.destination", "costco")  -%}
            2361 NJ-66, Ocean Township, NJ 07712, USA
          {%- elif is_state("input_select.destination", "Gym")  -%}
            4 Ocean Avenue, Long Branch, NJ, 07740, USA
          {%- elif is_state("input_select.destination", "kessler")  -%}
            40.337072530877435, -74.07646272913586
          {%- elif is_state("input_select.destination", "lidl")  -%}
            136 NJ-35, Eatontown, NJ 07724, USA
          {%- elif is_state("input_select.destination", "monmouth mall")  -%}
            180 NJ-35, Eatontown, NJ 07724, USA
          {%- elif is_state("input_select.destination", "ShopRite")  -%}
            Rt 36 & 71, West Long Branch, NJ 07764, USA
          {%- elif is_state("input_select.destination", "shoprite_shrewsbury")  -%}
            1151 Shrewsbury Ave, Shrewsbury, NJ 07702, USA
          {%- elif is_state("input_select.destination", "walmart_fre")  -%}
            326 W Main St, Freehold Township, NJ 07728, USA
          {%- elif is_state("input_select.destination", "walmart_nep")  -%}
            3575 NJ-66, Neptune Township, NJ 07753, USA
          {%- else -%}
            Unknown
          {%- endif %}

These are example of businesses. I took out all of my personal address.
My script. This updates the time as soon as I click the input select to change the location

sequence:
  - service: homeassistant.update_entity
    data: {}
    target:
      entity_id:
        - sensor.waze_travel_time_2
        - sensor.brandywine_waze_travel_time
mode: single
icon: mdi:train-car
alias: waze

My Card in the dashboard:

  - 
    type: entities
    entities:
    - input_select.destination
    - entity: sensor.waze_travel_time_2
    - entity: script.w

I have no idea why my script is named script.w but it is and I have not been able to change it. It does call the correct script when I use the input select. I also have in the dashboard the option of running the script manually. Without the script I believe the time updates only every 10 minutes.

I have two waze integrations as I always need the time to Brandwine where my mother-in-law is staying.
Hope this is helpful. I tried to edit the document to add information, but it was rejected.

image

2 Likes

Thank you for the time to post that code. I will print everything and see if I can replicate behavior.
I now have hopes again. Thanks.

Let me know if you get stuck. I had issues trying to first get it working. I have a “split yaml” file so I have a file named waze.yaml that loads the input select and template. If you do not, you will need to load this in your configuration.yaml file. You should be able to load the script by adding a new script, select yaml mode and copy mine and modify the entity id: to yours. You should be able to add the card to your dashboard again with modifying the entity id. I got a lot of help trying to understand how to do it (petro was very helpful amount others).
I tried to capture all of my steps while I was doing it by modifying the waze doc to show more information and my steps but I was told this was unnecessary, wrong format, etc. If you get stuck I’ll try and help.
I asked questions in.

Waze Travel Time - UI install

maybe this can help you?

1 Like

@bschatzow I’m sorry, but where do you define waze_travel_time_2?

This is what I created based on the information that I extrapolated from your post and the Waze Travel Time page.

In my configuration.yaml I have:

input_select:
  destination:
    name: destination
    options:
      - Home
      - Work
      - Parents

template:
  - sensor:
     - name: "Destination address"
       state: >-
          {%- if is_state("input_select.destination", "Home")  -%}
            725 5th Ave, New York, NY 10022, USA
          {%- elif is_state("input_select.destination", "Work")  -%}
            767 5th Ave, New York, NY 10153, USA
          {%- elif is_state("input_select.destination", "Parents")  -%}
            178 Broadway, Brooklyn, NY 11211, USA
          {%- else -%}
            Unknown
          {%- endif %}

The helper was auto-created as “destination” with entity_id of input_select.destination

My script is

sequence:
  - service: homeassistant.update_entity
    data: {}
    target:
      entity_id:
        - sensor.waze_travel_time_2
mode: single
icon: mdi:train-car
alias: waze

My dashboard card is:

type: entities
entities:
  - entity: input_select.destination
  - entity: sensor.waze_travel_time_2
  - entity: script.#######

The ### in my script correspond to a numerical value that HA seems to have assigned to the script, but the script does come up as valid.

The problem I’m having is that I get: Entity not available: sensor.waze_travel_time_2

When I pull up my list of entities there is nothing remotely close to “waze_” listed. Did I miss a step that I should’ve completed elsewhere, or could I have done something out of order?

I also couldn’t find where I put my “origin.” Sorry again, I’m only about a month into HA and even less than that on YAML

1 Like

The sensor.waze_travel_time_2 was created in the integration. You can create as many as you want by adding new ones here.

I have changed my names and I have two now.

image

I use two as I am now testing two different trackers. When I posted earlier I had two, one for a specific destination and the second for my input select locations.

Not trying to hijack the thread but it is the same topic: I set a second sensor by adding the Waze integration a second time per BebeMischa recommendation, and the second sensor appeared but lost the time tracking for the first one.

Any suggestions how to fix this?

not having any idea. Here it looks fine…

I removed and reinstalled the integration, and now it works. Thanks

1 Like

I also have the problem that my dynamic is not working.

I suspected the coordinates because they were separated by commas and a list was always recognized in the template.

Then I added the coordinates differently. But unfortunately the sensor doesn’t get a different value when the input changes, does anyone see the problem?


template:
  trigger:
    - name: "waze_ziel_adresse"
      state: >
        {% if is_state("input_select.waze_ziel", "Home") %}
          lat=xxx lng=yyy
        {% elif is_state("input_select.waze_ziel", "Arbeit") %}
          lat=xxx lng=yyy
        {% endif %}

input_select:
  waze_ziel:
    name: waze_ziel
    options:
      - Home
      - Arbeit

Attempt 2:

template:
  trigger:
    - name: "waze_ziel_adresse"
      state: >
        {% if is_state("input_select.waze_ziel", "Home") %}
         xxx,yyy
        {% elif is_state("input_select.waze_ziel", "Arbeit") %}
          xxx,yyy
        {% endif %}

input_select:
  waze_ziel:
    name: waze_ziel
    options:
      - Home
      - Arbeit