so i tried to make template sensors that used the “place” attribute to make a new sensor that had the value of the place attribute of a life360 device tracker. for some reason only one sensor is created as an entity. am i allowed to make more than one template sensor? heres the code
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#template:
# - sensor:
# - name: "carverlocation"
# state: "{{state_attr('device_tracker.life360_carver_fell', 'place')}}"
#template:
# - sensor:
# - name: "tomlocation"
# state: "{{state_attr('device_tracker.life360_thomas_margotta', 'place')}}"
template:
- sensor:
- name: "templatesensortest"
state: "{{ state_attr('device_tracker.life360_thomas_margotta', 'place') }}"
template:
- sensor:
- name: "carverplace"
state: "{{ state_attr('device_tracker.life360_carver_fell', 'place') }}"
#template:
# - sensor:
# - name: "tomplace"
# state: "{{ state_attr('device_tracker.life360_thomas_margotta', 'place') }}"
notify:
- name: pushover
platform: pushover
api_key: !secret pushoverapikey
user_key: !secret pushoveruserkeyop6
sensor:
- platform: xbox_live
api_key: !secret xbapi
xuid:
- !secret xbusr
im not sure whats wrong but sometimes it changes which one works