Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95372

Are template lights still a thing?

$
0
0

@Lyshco wrote:

HA 0.101.2 running on RP3+

First post. Set up HA a couple of weeks ago and very impressed. May have overestimated my technical competence but have managed to figure out everything I needed to. Until today.

Came across the idea of a template light for Alexa integration and thought “I want one of those”. I copied the code direct from https://www.home-assistant.io/integrations/light.template/

# Example configuration.yaml entry
light:
  - platform: template
    lights:
      theater_lights:
        friendly_name: "Theater Lights"
        level_template: "{{ sensor.theater_brightness.attributes.lux|int }}"
        value_template: "{{ sensor.theater_brightness.attributes.lux|int > 0 }}"
        turn_on:
          service: script.theater_lights_on
        turn_off:
          service: script.theater_lights_off
        set_level:
          service: script.theater_lights_level
          data_template:
            brightness: "{{ brightness }}"  

but I just keep getting the message:

Invalid config for [sensor.template]: [lights] is an invalid option for [sensor.template]. Check: sensor.template->lights.

which seems to suggest I can’t create the light this way anymore. Or am I being a fool? (most likely)

If anyone can point out the nature of my foolishness I’d be grateful. Ta

Posts: 11

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 95372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>