device {{.D.Path}}
{{if .D.Size}}
size {{bytes .D.Size}}
{{end}}
bus {{.D.Tran}}{{if .D.Rota}} (rotational){{else}} (ssd){{end}}
{{if $sm}}
protocol {{$sm.Protocol}}
firmware {{$sm.Firmware}}
health {{if not $sm.Supported}}not supported{{else if $sm.Healthy}}PASSED{{else}}FAILED{{end}}
temperature {{if $sm.HasTemp}}{{$sm.TempC}}°C{{else}}—{{end}}{{if .D.Standby}} (standby, last read){{end}}
power-on {{hours $sm.PowerOnHrs}}
power cycles {{$sm.PowerCycles}}
last SMART read {{dt $sm.CheckedAt}}
{{with $sm.LastTest}}
self-test {{if .InProgress}}in progress, {{.Remaining}}% left{{else}}{{.Type}}: {{.Status}} at {{.Hours}} h{{end}}
{{end}}
{{if $sm.Error}}
{{$sm.Error}}
{{end}}
{{end}}
{{if .Known}}