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

Getting a couple errors I don't understand on automation blueprint creation

$
0
0

Hi,

Trying to create a few simple blueprints but not quite understanding the errors. Apologies if I have posted in the wrong area - feel free to move the topic if so.

The idea of the BP is just to turn off a light X time after it was turned on.

`Blueprint Light Power saver generated invalid automation with inputs OrderedDict([('light_target', OrderedDict([('entity_id', 'light.study')])), ('timer_wait', 5)]): Entity entity_id is neither a valid entity ID nor a valid UUID for dictionary value @ data['entity_id']. Got None`

The BP script currently looks like

blueprint:
  name: Light Power Saver
  description: Turn off light X time after it was turned on.
  domain: automation
  input:
    light_target:
      name: Light
      selector:
        target:
          entity:
            domain: light
    timer_wait:
      name: Wait time
      description: Time to leave the light before tunring off
      default: 120
      selector:
        number:
          min: 5
          max: 3600
          unit_of_measurement: seconds

## If state of light changes restart the script.
mode: single
#max_exceeded: silent

trigger:
  platform: state
  entity_id: !input light_target
  from: "off"
  to: "on"

action:
  - alias: "Wait the number of seconds that has been set"
    delay: !input timer_wait
  - alias: "Turn off the light"
    service: light.turn_off
    target: !input light_target

any pointers to where I am going wrong?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102819

Trending Articles



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