Help needed. I want to reboot Raspberry Pi when entity disappears but fails

Unfortunately your formatting doesn’t allow us to see the automation correctly. Please have a look at the sticky post.

I’d expect though that the following trigger would work:

trigger:
  platform: state
  entity_id: cover.hassmart_192_168_2_76
  to: "unknown"
  for: '00:02:00'

That should require it to be unknown for two minutes before triggering, to avoid false restarts.