Guys,
I trying to set up Weather Radar Card to show the location of a mobile phone but it isn’t working.
First I checked if I was able to get the location. Below you can find the latitude
But when I put the info into the card I get
type: custom:weather-radar-card
data_source: RainViewer-Original
center_latitude: "{{ state_attr('sensor.s23_geocoded_location','location')[0] | string }}"
center_longitude: "{{ state_attr('sensor.s23_geocoded_location','location')[1] | string }}"
map_style: Voyager
zoom_level: 10
frame_count: 20
frame_delay: 1000
restart_delay: 1
static_map: false
show_marker: false
show_scale: true
show_range: true
show_playback: true
show_zoom: true
square_map: true
show_recenter: false
extra_labels: false
What am I doing wrong here?
EDIT: If I put the latitude and longitude manually it works.