8-04-12 00:46:41 WARNING (MainThread) [homeassistant.config] Package lights contains invalid customize
Templet working fine in cofiguration.yaml, but not working in Package.
homeassistant:
name: Home
latitude: !secret latitude
longitude: !secret longitude
elevation: !secret elevation
unit_system: metric
time_zone: !secret time_zone
customize: !include include/customize.yaml
packages: !include_dir_named packages
frontend:
extra_html_url:
- /local/custom_ui/state-card-custom-ui.html
extra_html_url_es5:
- /local/custom_ui/state-card-custom-ui-es5.html
customizer:
custom_ui: local
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
api_password: !secret api_password
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
#restore_states:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# Tracked history is kept for 10 days
recorder:
purge_keep_days: 10
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Text to speech
tts:
- platform: google
cloud:
group: !include include/groups.yaml
input_boolean: !include include/input_boolean.yaml
input_number: !include include/input_number.yaml
Invalid config for [light.template]: required key not provided @ data['lights']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.template/
Is’t not posible put all configurations in one place e.g.- one light component and
related automation, input_number,_input_boolean,sensor tamplet. Like a
input_slider:
deck_light_time:
name: Deck light Timer
initial: 10
min: 1
max: 60
step: 5
script:
decklight_timer:
alias: "Deck light Timer"
sequence:
- delay: '00:{{ states.input_slider.deck_light_time.state | int }}:00'
- service: homeassistant.turn_off
data:
entity_id: switch.ge_12722_onoff_relay_switch_switch
#######################################
# automation
########################################
# turn off deck light if that light is on for more than 10 minutes (or specified via slider)
- alias: "Decklight: Automatically turn off"
trigger:
- platform: state
entity_id: switch.ge_12722_onoff_relay_switch_switch
to: 'on'
action:
- service: script.turn_on
entity_id: script.decklight_timer
- service: script.notify_me
data_template: {"value1":"Deck light was turned off after", "value2":"{{ states.input_slider.deck_light_time.state | int }} minutes"}
- alias: "Decklight: reset timer"
trigger:
- platform: state
entity_id: switch.ge_12722_onoff_relay_switch_switch
to: 'off'
action:
- service: script.turn_off
entity_id: script.decklight_timer
- service: script.notify_me
data: {"value1":"Deck light timer was reset!", "value2":""}
group:
Timers:
entities:
- input_slider.deck_light_time