Good day to you all !
I'm trying to get a notification when rain is about to come in my area. So I'm using the integration "météo France" it is accurate enough for my use.
The data provided looks like the first picture.
It is an array with every 5 min a "quantity" of estimated rain (like "heavy rain"). For now I've set the automation to trigger when the data changes. (See second picture)
It means every time the data is updated and a text is actually showing, so every 5 min the automation triggers (when somewhere in the array, it says "heavy rain"). It is not ideal. I would like to get a reminder at 30min and 5min and then when the rain stops (when 0min comes back to "temps sec"; dry)
Could someone help me how I can access a specific "row" from this data ? I've tried some stuff with a template but it doesn't appear to work (third picture)
P.S.1: yes the templates are disabled for now and yes currently it's not raining.
P.S.2: here is one of the trigger I use.
{% set forecast = state_attr('sensor.conchy_les_pots_next_rain', '1_hour_forecast') %}
{% if forecast %}
{% set rain_at_55min = forecast.get('55 min') %}
{{ rain_at_55min != 'Temps sec' }}
{% else %}
false
{% endif %}