Ignore unknown or unavailable last changed values?

Use template in automation trigger

In automation trigger and condition