Hey @lars1 I am using @jones custom component SpaceX sensors: Starman and next rocket launch for the SpaceX launches, but I can’t see the to get the notifications working for me from his script.
I have seen your setup, but I am not too good with templating. I have tried to modify it to matches the sensor and time format, but I can’t quite seem to get it right. Don’t suppose if you have a spare moment, you would might seeing where I might have gone wrong or something.
value_template: >-
{%- if (as_timestamp(now()) > (as_timestamp(strptime(states.sensor.spacex.state, ‘%M:%S’)) - 3600)) and ( as_timestamp( strptime(states.sensor.spacex.state, ‘%M:%S’) ) ) - ( as_timestamp( now() ) > 0 ) -%}
true
{%- endif -%}
It just use’s a time rather than date and year and month
although the main sensor uses this for it’s time.
Many thanks in advance if you can help out.