Converting Sensor String to Timestamp

Hi

I have a sensor value that is supposedly a time value (example: 1:06 or 11:10 - which refers to 1:06PM and 11:10AM). Is anyone familiar on how I can convert this value to a timestamp format so that it works with Automation to trigger actions during the sensor.time1 (example) timestamp value.

I tried below functions but couldn’t get it to work. Also, since the current value does not indiciate AM or PM, how can I define the PM values? (probably by +1200hrs to the timestamp)

value_template: "{{ as_timestamp("sensor.time1", default) | timestamp_custom('%A @ %-I:%M %p') }}"
value_template: "strptime(states("sensor.time1"), "%a, %d %B %Y") }}""

Thank you!

{{ today_at(states('sensor.time1')) }}

If the time is in 12-hour format but doesn’t indicate AM/PM then there’s no way for the template to determine if the time represents AM or PM.