You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust the value_json.radar.past[-10:] to suit your needs. I left it at -10 even though I only animate 5 frames (for resource purposes.)
27
27
28
+
Adjust the value_json.radar.past[-10:] to suit your needs. I left it at -10 even though I only animate 5 frames (for resource purposes.)
28
29
29
30
Next, you'll need two helpers:
30
31
31
32
First, one that is the frame number index that will be changed via an automation:
33
+
32
34
{% raw %}
33
35
```
34
36
input_number.rainviewer_frame_index
@@ -38,16 +40,17 @@ Step size: 1
38
40
Display Mode: Slider
39
41
```
40
42
{% endraw %}
41
-
Second, you'll need a template sensor
42
43
43
-
sensor.rainviewer_current_frame
44
+
Second, you'll need a template sensor: `sensor.rainviewer_current_frame`:
45
+
44
46
{% raw %}
45
47
```jinja
46
48
{% set frames = states('sensor.rainviewer_frames').split(',') %}
47
49
{% set idx = states('input_number.rainviewer_frame_index')|int(0) %}
48
50
{{ frames[idx] if frames|length > idx else frames[-1] }}
49
51
```
50
52
{% endraw %}
53
+
51
54
Now, We need to create an automation to cycle the frames on the map:
52
55
53
56
{% raw %}
@@ -86,6 +89,7 @@ actions:
86
89
{% endraw %}
87
90
88
91
Lastly, the card itself. This is a stripped down anonymized version:
92
+
89
93
{% raw %}
90
94
```yaml
91
95
type: custom:map-card
@@ -132,6 +136,7 @@ Some of my lower end clients aren't super happy with the map with the animation
132
136
I'm running homeassistant OS as a VM on a healthily configured Dell R730XD running proxmox and I was still experiencing some lag on the map until I added the purge to the automation.
133
137
134
138
If you don't want or need animation, All you would need to overlay the latest radar images is the first rest sensor:
0 commit comments