Included template sensors don't exist

I’m trying to setup several template sensors in a separate file and include them. My configuration checks out fine, but the sensors never appear in dev tools or lovelace.

Configuration.yaml:

#Configuration.yaml
template family: !include family.yaml

#family.yaml
- sensor:
    - name: "Day Number Even"
      state: "{{ (as_timestamp(now()) / 86400) | round(0) % 4 }}"
    - name: "Day Number Odd"
      state: "{{ (as_timestamp(now()) / 86400) | round(0) % 3 }}"

If I put them straight into configuration.yaml, they show up fine:

template:
  - sensor:
      - name: "Day Number"
        state: "{{ (as_timestamp(now()) / 86400) | round(0) % 4 }}"

Any ideas?

I think you need to include the correct platform name before the include, try …

template: !include family.yaml

I have that already:
template family: !include family.yaml

No, you don’t. The suggestion was to use this:

template: !include family.yaml

You are using this and saying it’s the same thing (but it’s not):

template family: !include family.yaml

When you put it in configuration.yaml you are using template: instead of template family: which explains why it works.

Touche! That did the trick - I’d gotten myself confused by basing it off my sensor includes, which I have multiple of, and missed that the first include doesn’t have a second word in the key. Thank you both!