I have a sensor called : sensor.next_departure which tells me when the next train Fridays departs. It also has some attributes which you can seen below.
What I would like to do is trigger an automation when the time for the next train departure is less that 15 minutes.how do I accomplish this trigger based on a state attribute?
the thing is that {states.next_departure.attributes.remaining_time} does not give back anything, whereas {states.next_departure.attributes.departure} gives back the right value of the attribute.
In the dev console I have tried writing remaining_time in every possbile way but i cant get the value displayed
hey @mefistofelis, after spending a LOT of time on this, it just wasn’t reliable enough for me (showing negative values close to departure) and also missing updates, I’m sending you a PM with the different components to achieve it.