Sensor Logbooks Going Unavailable

Anyone have any idea why logbooks are going unavailable? Here is the error:

image

And here is my template yaml:

## Logbook Security
    - name: "Security Logbook"
      state: > 
        {{ value.split('triggered by service Logbook: Log')[0] }}
      icon: mdi:math-log

## Logbook Environmental
    - name: "Environmental Logbook"
      state: > 
        {{ value.split('triggered by service Logbook: Log')[0] }}
      icon: mdi:math-log