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.