Invalid config for [light.template]

2018-02-24 23:21:07 ERROR (MainThread) [homeassistant.config] Invalid config for [light.template]: [KitchenOh_Lights] is an invalid option for [light.template]. Check: light.template->lights->KitchenOh_Lights. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.template/

light:

  • platform: template
    lights:
    KitchenOh_Lights:
    friendly_name: “Kitchen Overhead Lights”
    level_template: “{{ states.light.kitchen_74.attributes.brightness|int }}”
    value_template: “{{ states.light.kitchen_74.attributes.brightness|int > 0 }}”
    turn_on:
    service: script.KitchenOh_Lights_on
    entity_id:
    light.kitoh2_75
    turn_off:
    service: script.KitchenOh_Lights_off
    entity_id:
    light.kitoh2_75
    set_level:
    service: script.KitchenOh_Lights_level
    entity_id:
    light.kitoh2_75
    data_template:
    brightness: “{{ brightness }}”

Formatted coming…

@mf_social whistles away to himself wondering why it takes 3 hours to create a

Code block

:stuck_out_tongue_winking_eye:

Your problem is almost certainly your indenting. Compare what you wrote to the docs.

Also, watch that Home Assistant will turn KitchenOh_Lights into kitchenoh_lights for creating the entity ID. It may be that it’s complaining about that too, and you should use lowercase.

I've critiqued this to death.  :persevere:  Now getting...

 [light.template]: expected a dictionary for dictionary value @ data['lights']['kitchen_oh_lights']['set_level'][0]['data_template']. Got None
extra keys not allowed @ data['lights']['kitchen_oh_lights']['set_level'][0]['brightness']. Got None. 



light:
  - platform: template
    lights:
      kitchen_oh_lights:
        friendly_name: "Kitchen Overhead Lights"
        level_template: '{{ states.light.kitchen_74.attributes.brightness | int}}'
        value_template: '{{ states.light.kitchen_74.attributes.brightness > 0 | int }}'
        turn_on:
        #service: script.kitchen_oh_lights_on
          service: light.turn_on
          entity_id:
            light.kitoh2_75
        turn_off:
          #service: script.kitchen_oh_lights_off
          service: light.turn_off
          entity_id:
            light.kitoh2_75
        set_level:
          service: light.turn_on
          entity_id:
            light.kitoh2_75
          data_template:
          brightness: "{{ brightness }}" 
  data_template:
  brightness: "{{ brightness }}" 

Should be

  data_template:
    brightness: "{{ brightness }}"

Thank You, thank you!!