Why do I get a property error, that still works the automation?

So, I have a few automations that control our blinds at various times throughout the day.

This one below closes the blinds at sunset. The weird thing is, I get a warning in the yaml next to the position property, that says “Property position is not allowed” yet the automations do work.

If I set it to 100 it closes the blinds. 50 Sets them halfway, and 0 opens them.

Why am I getting this warning? Is there something I should be doing different?

Also, I noticed that when I create Automations in the UI it creates a long numeric string as the ID. There doesn’t seem to be a rhyme or reason for the number, in terms of how it’s generated. They don’t seem to be sequential or anything. Where is that number pulled from?

- id: '1593310321024'     <--------- WHERE DOES THIS COME FROM?
  alias: Close the blinds at sunset
  description: ''
  trigger:
  - event: sunset
    platform: sun
  condition: []
  action:
  - device_id: 2584664f97b141c388fdad81ae2ef266
    domain: cover
    entity_id: cover.heather_s_blind
    position: 100             Property position not allowed
    type: set_position
  - device_id: df287ffb17a247a29392beb3c8c9767f
    domain: cover
    entity_id: cover.mark_s_blind
    position: 100             Property position not allowed
    type: set_position

Also, the device id…

What is that? Where does it come from? How is it different than the entity_id?

I don’t use the device/automation editor so I’m not sure where that config came from but from the “cover” docs it looks like the service call is malformed:

automation:
  trigger:
    platform: time
    at: "07:15:00"
  action:
    - service: cover.set_cover_position
      data:
        entity_id: cover.demo
        position: 50

as far as the automation id it is an automatically generated number that gets created when you create the automation. you can generally ignore it.

The same for the device_id.

Thank you!

Yeah, that set.position entry is what the UI config gives you.

I’ll manually edit that and see what happens. Thanks again!